|
|
22ae666 |
%if 0%{?rhel} && 0%{?rhel} <= 7
|
|
|
22ae666 |
%global boost_suffix 169
|
|
|
22ae666 |
%global cmake_suffix 3
|
|
|
22ae666 |
%global cmake %%cmake%{?cmake_suffix}
|
|
|
22ae666 |
%endif
|
|
|
22ae666 |
|
|
|
2b93a22 |
Name: cpp-hocon
|
|
|
22ae666 |
Version: 0.2.1
|
|
|
6a73a04 |
Release: 5%{?dist}
|
|
|
22ae666 |
Summary: C++ support for the HOCON configuration file format
|
|
|
2b93a22 |
|
|
|
2b93a22 |
License: ASL 2.0
|
|
|
22ae666 |
URL: https://github.com/puppetlabs/cpp-hocon
|
|
|
22ae666 |
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
2b93a22 |
Source1: cpphocon.pc.in
|
|
|
af1a7d6 |
# https://github.com/puppetlabs/cpp-hocon/pull/124
|
|
|
c9f4720 |
Patch0: %{name}-missing-headers.patch
|
|
|
156aaf3 |
Patch1: %{name}-boost-filesystem-link.patch
|
|
|
2b93a22 |
|
|
|
22ae666 |
BuildRequires: cmake%{?cmake_suffix} >= 3.2.2
|
|
|
22ae666 |
BuildRequires: make
|
|
Igor Gnatenko |
8a70170 |
BuildRequires: gcc-c++
|
|
|
22ae666 |
BuildRequires: boost%{?boost_suffix}-devel >= 1.54
|
|
|
22ae666 |
BuildRequires: leatherman-devel
|
|
|
22ae666 |
BuildRequires: gettext
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%description
|
|
|
2b93a22 |
This is a port of the TypesafeConfig library to C++.
|
|
|
2b93a22 |
|
|
|
2b93a22 |
The library provides C++ support for the HOCON configuration file format.
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%package devel
|
|
|
2b93a22 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
2b93a22 |
Summary: Development files for the cpp-hocon library
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%description devel
|
|
|
22ae666 |
Libraries and headers to links against cpp-hocon.
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%prep
|
|
|
c9f4720 |
%autosetup -p1
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%build
|
|
|
22ae666 |
%cmake . -B%{_target_platform} \
|
|
|
22ae666 |
-DBOOST_INCLUDEDIR=%{_includedir}/boost%{?boost_suffix} \
|
|
|
22ae666 |
-DBOOST_LIBRARYDIR=%{_libdir}/boost%{?boost_suffix} \
|
|
|
22ae666 |
-DLeatherman_DIR=%{_libdir}/cmake%{?cmake_suffix}/leatherman \
|
|
|
22ae666 |
-DBUILD_SHARED_LIBS=ON \
|
|
|
22ae666 |
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
22ae666 |
%{nil}
|
|
|
22ae666 |
%make_build -C %{_target_platform}
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%install
|
|
|
22ae666 |
%make_install -C %{_target_platform}
|
|
|
2b93a22 |
|
|
|
2b93a22 |
# upstream doesn't provide a cmake or pkgconfig file so write one ourselves
|
|
|
2b93a22 |
mkdir -p %{buildroot}%{_libdir}/pkgconfig
|
|
|
2b93a22 |
cp -p %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/cpphocon.pc
|
|
|
2b93a22 |
sed -i 's#@@PREFIX@@#%{_prefix}#' %{buildroot}%{_libdir}/pkgconfig/cpphocon.pc
|
|
|
2b93a22 |
sed -i 's#@@VERSION@@#%{version}#' %{buildroot}%{_libdir}/pkgconfig/cpphocon.pc
|
|
|
2b93a22 |
sed -i 's#@@LIBDIR@@#%{_lib}#' %{buildroot}%{_libdir}/pkgconfig/cpphocon.pc
|
|
|
2b93a22 |
|
|
|
cc9a569 |
%ldconfig_scriptlets
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%files
|
|
|
2b93a22 |
%license LICENSE
|
|
|
2b93a22 |
%{_libdir}/lib%{name}.so.*
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%files devel
|
|
|
2b93a22 |
%{_libdir}/lib%{name}.so
|
|
|
22ae666 |
%{_includedir}/hocon/
|
|
|
2b93a22 |
%{_libdir}/pkgconfig/cpphocon.pc
|
|
|
2b93a22 |
|
|
|
2b93a22 |
%changelog
|
|
|
6a73a04 |
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-5
|
|
|
6a73a04 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
6a73a04 |
|
|
|
156aaf3 |
* Wed Jun 03 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-4
|
|
|
156aaf3 |
- Rebuilt for leatherman-1.12.0
|
|
|
156aaf3 |
- Link tests to libboost_filesystem
|
|
|
156aaf3 |
|
|
|
c9f4720 |
* Wed Jun 03 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-3
|
|
|
c9f4720 |
- Rebuild for Boost 1.73.0
|
|
|
c9f4720 |
|
|
|
a3bcda9 |
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
|
|
|
a3bcda9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
a3bcda9 |
|
|
|
22ae666 |
* Wed Jul 24 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-1
|
|
|
22ae666 |
- Update to 0.2.1
|
|
|
22ae666 |
|
|
|
7e3238c |
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-10
|
|
|
7e3238c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
7e3238c |
|
|
|
da334ff |
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-9
|
|
|
da334ff |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
da334ff |
|
|
|
ef19042 |
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-8
|
|
|
ef19042 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
ef19042 |
|
|
|
602f08e |
* Fri Feb 23 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.1.6-7
|
|
|
602f08e |
- Disable tests (fails on x86)
|
|
|
602f08e |
|
|
|
cc9a569 |
* Thu Feb 15 2018 Filipe Rosset <rosset.filipe@gmail.com> - 0.1.6-6
|
|
|
cc9a569 |
- fix FTBFS
|
|
|
cc9a569 |
|
|
|
7bd207f |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-5
|
|
|
7bd207f |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
7bd207f |
|
|
|
a67caa3 |
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.1.6-4
|
|
|
a67caa3 |
- Rebuilt for Boost 1.66
|
|
|
a67caa3 |
|
|
|
2b93a22 |
* Wed Oct 25 2017 James Hogarth <james.hogarth@gmail.com> - 0.1.6-3
|
|
|
2b93a22 |
- Point to correct location on epel7 for leatherman cmake3 files
|
|
|
2b93a22 |
|
|
|
2b93a22 |
* Thu Oct 19 2017 James Hogarth <james.hogarth@gmail.com> - 0.1.6-2
|
|
|
2b93a22 |
- rebuilt
|
|
|
2b93a22 |
|
|
|
2b93a22 |
* Wed Oct 04 2017 James Hogarth <james.hogarth@gmail.com> - 0.1.6-1
|
|
|
2b93a22 |
- Initial packaging
|
|
|
2b93a22 |
|