#1 Update to 0.2.1
Merged 4 years ago by ignatenkobrain. Opened 4 years ago by ignatenkobrain.
rpms/ ignatenkobrain/cpp-hocon upgrade  into  master

file modified
+1
@@ -1,1 +1,2 @@ 

  /cpp-hocon-0.1.6.tar.gz

+ /cpp-hocon-0.2.1.tar.gz

file modified
+30 -37
@@ -1,25 +1,25 @@ 

+ %if 0%{?rhel} && 0%{?rhel} <= 7

+ %global boost_suffix 169

+ %global cmake_suffix 3

+ %global cmake %%cmake%{?cmake_suffix}

+ %endif

+ 

  Name:       cpp-hocon

- Version:    0.1.6

- Release:    10%{?dist}

- Summary:    The library provides C++ support for the HOCON configuration file format

+ Version:    0.2.1

+ Release:    1%{?dist}

+ Summary:    C++ support for the HOCON configuration file format

  

  License:    ASL 2.0

- URL:        https://github.com/puppetlabs/%{name}

- Source0:    https://github.com/puppetlabs/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

+ URL:        https://github.com/puppetlabs/cpp-hocon

+ Source0:    %{url}/archive/%{version}/%{name}-%{version}.tar.gz

  Source1:    cpphocon.pc.in

  

- %if 0%{?fedora}

+ BuildRequires:  cmake%{?cmake_suffix} >= 3.2.2

+ BuildRequires:  make

  BuildRequires:  gcc-c++

- BuildRequires:    cmake

- BuildRequires:    boost-devel

- %else

- BuildRequires:    cmake3

- BuildRequires:    boost157-devel

- %endif

- 

- BuildRequires:    leatherman-devel

- BuildRequires:    curl-devel

- BuildRequires:    gettext

+ BuildRequires:  boost%{?boost_suffix}-devel >= 1.54

+ BuildRequires:  leatherman-devel

+ BuildRequires:  gettext

  

  %description

  This is a port of the TypesafeConfig library to C++.
@@ -31,28 +31,23 @@ 

  Summary:    Development files for the cpp-hocon library

  

  %description devel

- Libraries and headers to links against cpp-hocon

+ Libraries and headers to links against cpp-hocon.

  

  %prep

  %autosetup

  

  %build

- %if 0%{?fedora}

- %cmake -DBUILD_SHARED_LIBS=ON \

-        -DCMAKE_BUILD_TYPE=Debug \

-        -DCMAKE_INSTALL_PREFIX=%{_prefix}

- %else

- %cmake3 -DBOOST_INCLUDEDIR=/usr/include/boost157 \

-         -DBOOST_LIBRARYDIR=%{_libdir}/boost157 \

-         -DBUILD_SHARED_LIBS=ON \

-         -DCMAKE_BUILD_TYPE=Debug \

-         -DCMAKE_INSTALL_PREFIX=%{_prefix} \

-         -DLeatherman_DIR=%{_libdir}/cmake3/leatherman

- %endif

- %__make

+ %cmake . -B%{_target_platform} \

+   -DBOOST_INCLUDEDIR=%{_includedir}/boost%{?boost_suffix} \

+   -DBOOST_LIBRARYDIR=%{_libdir}/boost%{?boost_suffix} \

+   -DLeatherman_DIR=%{_libdir}/cmake%{?cmake_suffix}/leatherman \

+   -DBUILD_SHARED_LIBS=ON \

+   -DCMAKE_BUILD_TYPE=RelWithDebInfo \

+   %{nil}

+ %make_build -C %{_target_platform}

  

  %install

- %make_install

+ %make_install -C %{_target_platform}

  

  # upstream doesn't provide a cmake or pkgconfig file so write one ourselves

  mkdir -p %{buildroot}%{_libdir}/pkgconfig
@@ -61,10 +56,6 @@ 

  sed -i 's#@@VERSION@@#%{version}#' %{buildroot}%{_libdir}/pkgconfig/cpphocon.pc

  sed -i 's#@@LIBDIR@@#%{_lib}#' %{buildroot}%{_libdir}/pkgconfig/cpphocon.pc

  

- 

- %check

- # %__make test

- 

  %ldconfig_scriptlets

  

  %files
@@ -73,11 +64,13 @@ 

  

  %files devel

  %{_libdir}/lib%{name}.so

- %{_includedir}/hocon

+ %{_includedir}/hocon/

  %{_libdir}/pkgconfig/cpphocon.pc

  

- 

  %changelog

+ * Wed Jul 24 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-1

+ - Update to 0.2.1

+ 

  * Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-10

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (cpp-hocon-0.1.6.tar.gz) = 38d11f749958108f8b8448c95f722287e82ced9d2b96bfc79d4b378770f10d28f0608545bfcdbb16be7ccf8e1cb07b5e235e4c2917879a0573c09822b0932410

+ SHA512 (cpp-hocon-0.2.1.tar.gz) = fcc377da7923b77436a6f2787d5b8b1b573f239de4f059c4a5949cbb1a755fd12024b9155f5e44cf60141181942f3e9a2a8fad07ee0b1d516fe2cd4a88d4ac8b

rebased onto 22ae666

4 years ago

Pull-Request has been merged by ignatenkobrain

4 years ago