Blame SPECS/cpp-hocon.spec

d24bb1
# Makes sure an SONAME bump does not catch us by surprise. Currently, there is
d24bb1
# no ABI stability even across patch releases, and the SONAME comes from the
d24bb1
# complete version number.
d24bb1
%global so_version 0.3.0
d24bb1
d24bb1
%global min_boost 1.54
d24bb1
%global min_cmake 3.2.2
d24bb1
d24bb1
Name:           cpp-hocon
d24bb1
Version:        0.3.0
d24bb1
Release:        4%{?dist}
d24bb1
Summary:        C++ support for the HOCON configuration file format
d24bb1
d24bb1
License:        ASL 2.0
d24bb1
URL:            https://github.com/puppetlabs/%{name}
d24bb1
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
d24bb1
d24bb1
BuildRequires:  cmake >= %{min_cmake}
d24bb1
BuildRequires:  make
d24bb1
BuildRequires:  gcc-c++
d24bb1
BuildRequires:  boost-devel >= %{min_boost}
d24bb1
BuildRequires:  leatherman-devel
d24bb1
BuildRequires:  gettext
d24bb1
d24bb1
# Tests
d24bb1
BuildRequires:  catch1-devel
d24bb1
d24bb1
# Documentation
d24bb1
BuildRequires:  doxygen
d24bb1
d24bb1
# See facter, which has the same workaround.
d24bb1
# autoreq is not picking this one up so be specific
d24bb1
Requires:       leatherman%{?_isa}
d24bb1
d24bb1
%description
d24bb1
This is a port of the TypesafeConfig library to C++.
d24bb1
d24bb1
The library provides C++ support for the HOCON configuration file format.
d24bb1
d24bb1
d24bb1
%package devel
d24bb1
Summary:        Development files for the %{name} library
d24bb1
Requires:       %{name}%{?_isa} = %{version}-%{release}
d24bb1
Requires:       boost-devel%{?_isa} >= %{min_boost}
d24bb1
Requires:       leatherman-devel%{?_isa}
d24bb1
d24bb1
%description devel
d24bb1
Libraries and headers to link against %{name}.
d24bb1
d24bb1
d24bb1
%package doc
d24bb1
Summary:    Documentation for the %{name} library
d24bb1
d24bb1
%description doc
d24bb1
Documentation for the %{name} library.
d24bb1
d24bb1
d24bb1
%prep
d24bb1
%autosetup
d24bb1
d24bb1
# Do not use the obsolete vendored copy of the Catch unit testing library
d24bb1
# included with leatherman.
d24bb1
sed -r -i 's/(LEATHERMAN_COMPONENTS)(\b.+)?(\bcatch\b)/\1\2/' CMakeLists.txt
d24bb1
sed -r -i 's|\$\{LEATHERMAN_CATCH_INCLUDE\}|"%{_includedir}/catch"|' \
d24bb1
    lib/tests/CMakeLists.txt
d24bb1
d24bb1
d24bb1
%build
d24bb1
%set_build_flags
d24bb1
d24bb1
%cmake \
d24bb1
    -DLeatherman_DIR=%{_libdir}/cmake/leatherman \
d24bb1
    -DCMAKE_BUILD_TYPE=RelWithDebInfo
d24bb1
%cmake_build
d24bb1
d24bb1
cd lib
d24bb1
doxygen Doxyfile
d24bb1
d24bb1
d24bb1
%install
d24bb1
%cmake_install
d24bb1
d24bb1
d24bb1
%check
d24bb1
%ctest
d24bb1
d24bb1
d24bb1
%files
d24bb1
%license LICENSE
d24bb1
%{_libdir}/lib%{name}.so.%{so_version}
d24bb1
d24bb1
d24bb1
%files devel
d24bb1
%{_libdir}/lib%{name}.so
d24bb1
%{_includedir}/hocon
d24bb1
d24bb1
d24bb1
%files doc
d24bb1
%license LICENSE
d24bb1
%doc CONTRIBUTING.md
d24bb1
%doc README.md
d24bb1
%doc lib/html
d24bb1
d24bb1
d24bb1
%changelog
d24bb1
* Tue Mar 09 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3.0-4
d24bb1
- Trivial simplification in the %%build section
d24bb1
- BR catch1-devel, and patch the build system to use it instead of the vendored
d24bb1
  copy in leatherman-devel; this fixes FTBFS due to SIGSTKSZ no longer being a
d24bb1
  preprocessor macro constant in glibc 2.34
d24bb1
d24bb1
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
d24bb1
d24bb1
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 0.3.0-2
d24bb1
- Rebuilt for Boost 1.75
d24bb1
d24bb1
* Sat Jan  9 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.3.0-1
d24bb1
- Update to 0.3.0 (SONAME bump)
d24bb1
- Drop EPEL7 conditionals in Fedora spec file
d24bb1
- Drop missing header patch, now upstreamed
d24bb1
  (https://github.com/puppetlabs/cpp-hocon/pull/124)
d24bb1
d24bb1
* Sat Jan  9 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.2-1
d24bb1
- Update to 0.2.2 (SONAME bump)
d24bb1
- Drop patch for upstream commit caab275509826dc5fe5ab2632582abb8f83ea2b3, now
d24bb1
  released
d24bb1
d24bb1
* Sat Jan  9 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.1-7
d24bb1
- Drop downstream pkg-config support (no .pc file)
d24bb1
d24bb1
* Fri Jan  8 2021 Benjamin A. Beasley <code@musicinmybrain.net> - 0.2.1-6
d24bb1
- Use %%{name} macro in several places
d24bb1
- Use %%cmake_* macros consistently
d24bb1
- Add a %%check section to run the tests
d24bb1
- Build HTML documentation with Doxygen, and add a new -doc subpackage
d24bb1
- Add top-level documentation files (README.md etc.)
d24bb1
- Try to add necessary libs to the .pc file, and remove unnecessary -I
d24bb1
d24bb1
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-5
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
d24bb1
d24bb1
* Wed Jun 03 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-4
d24bb1
- Rebuilt for leatherman-1.12.0
d24bb1
- Link tests to libboost_filesystem
d24bb1
d24bb1
* Wed Jun 03 2020 Jonathan Wakely <jwakely@redhat.com> - 0.2.1-3
d24bb1
- Rebuild for Boost 1.73.0
d24bb1
d24bb1
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-2
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
d24bb1
d24bb1
* Wed Jul 24 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.2.1-1
d24bb1
- Update to 0.2.1
d24bb1
d24bb1
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-10
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
d24bb1
d24bb1
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-9
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
d24bb1
d24bb1
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-8
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
d24bb1
d24bb1
* Fri Feb 23 2018 Peter Robinson <pbrobinson@fedoraproject.org> 0.1.6-7
d24bb1
- Disable tests (fails on x86)
d24bb1
d24bb1
* Thu Feb 15 2018 Filipe Rosset <rosset.filipe@gmail.com> - 0.1.6-6
d24bb1
- fix FTBFS
d24bb1
d24bb1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.6-5
d24bb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
d24bb1
d24bb1
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 0.1.6-4
d24bb1
- Rebuilt for Boost 1.66
d24bb1
d24bb1
* Wed Oct 25 2017 James Hogarth <james.hogarth@gmail.com> - 0.1.6-3
d24bb1
- Point to correct location on epel7 for leatherman cmake3 files
d24bb1
d24bb1
* Thu Oct 19 2017 James Hogarth <james.hogarth@gmail.com> - 0.1.6-2
d24bb1
- rebuilt
d24bb1
d24bb1
* Wed Oct 04 2017 James Hogarth <james.hogarth@gmail.com> - 0.1.6-1
d24bb1
- Initial packaging
d24bb1