|
|
45c5bd |
Name: leatherman
|
|
|
45c5bd |
Version: 1.12.0
|
|
|
45c5bd |
Release: 6%{?dist}
|
|
|
45c5bd |
Summary: Collection of C++ and CMake utility libraries
|
|
|
45c5bd |
|
|
|
45c5bd |
# leatherman is ASL 2.0
|
|
|
45c5bd |
# bundled rapidjson is MIT
|
|
|
45c5bd |
License: ASL 2.0 and MIT
|
|
|
45c5bd |
URL: https://github.com/puppetlabs/leatherman
|
|
|
45c5bd |
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|
|
45c5bd |
|
|
|
45c5bd |
# This unbundles boost-nowide and the boost libraries do not need
|
|
|
45c5bd |
# to have the path to nowide added as it's included already
|
|
|
45c5bd |
Patch0: shared_nowide.patch
|
|
|
45c5bd |
# Add missing include for <stdexcept>, no longer indirectly included in GCC 10
|
|
|
45c5bd |
Patch1: leatherman-gcc10.patch
|
|
|
45c5bd |
# Similar for cstddef and gcc-11
|
|
|
45c5bd |
Patch2: %{name}-gcc11.patch
|
|
|
45c5bd |
|
|
|
45c5bd |
BuildRequires: cmake >= 3.2.2
|
|
|
45c5bd |
BuildRequires: make
|
|
|
45c5bd |
BuildRequires: gcc-c++
|
|
|
45c5bd |
BuildRequires: boost-devel >= 1.73
|
|
|
45c5bd |
BuildRequires: libcurl-devel
|
|
|
45c5bd |
BuildRequires: gettext
|
|
|
45c5bd |
Provides: bundled(rapidjson) = 1.0.2
|
|
|
45c5bd |
|
|
|
45c5bd |
%description
|
|
|
45c5bd |
%{summary}.
|
|
|
45c5bd |
|
|
|
45c5bd |
%package devel
|
|
|
45c5bd |
Summary: Development files for %{name}
|
|
|
45c5bd |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
45c5bd |
# Building against leatherman requires the boost nowide headers present
|
|
|
45c5bd |
Requires: boost-devel
|
|
|
45c5bd |
# Strictly speaking, it is needed only if curl feature is activated
|
|
|
45c5bd |
Requires: libcurl-devel%{?_isa}
|
|
|
45c5bd |
|
|
|
45c5bd |
%description devel
|
|
|
45c5bd |
The %{name}-devel package contains libraries and header files for
|
|
|
45c5bd |
developing applications that use %{name}.
|
|
|
45c5bd |
|
|
|
45c5bd |
%prep
|
|
|
45c5bd |
%autosetup -p1
|
|
|
45c5bd |
# leatherman isn't compatible with rapidjson 1.1.0 yet so that has to be left bundled for now
|
|
|
45c5bd |
# https://tickets.puppetlabs.com/browse/LTH-130
|
|
|
45c5bd |
# catch is only used in testing so can be ignored
|
|
|
45c5bd |
|
|
|
45c5bd |
# Treating warnings as errors is pretty bad idea.
|
|
|
45c5bd |
sed -i -e "s/\s*-Werror\s*//g" cmake/cflags.cmake
|
|
|
45c5bd |
|
|
|
45c5bd |
%build
|
|
|
45c5bd |
%cmake . -B%{_target_platform} \
|
|
|
45c5bd |
-DLEATHERMAN_SHARED=ON \
|
|
|
45c5bd |
-DLEATHERMAN_DEBUG=ON \
|
|
|
45c5bd |
%{nil}
|
|
|
45c5bd |
%make_build -C %{_target_platform}
|
|
|
45c5bd |
|
|
|
45c5bd |
%install
|
|
|
45c5bd |
%make_install -C %{_target_platform}
|
|
|
45c5bd |
%find_lang %{name}_logging
|
|
|
45c5bd |
%find_lang %{name}_locale
|
|
|
45c5bd |
|
|
|
45c5bd |
%ldconfig_scriptlets
|
|
|
45c5bd |
|
|
|
45c5bd |
%files -f %{name}_logging.lang -f %{name}_locale.lang
|
|
|
45c5bd |
%license LICENSE
|
|
|
45c5bd |
%{_libdir}/%{name}*.so.*
|
|
|
45c5bd |
|
|
|
45c5bd |
%files devel
|
|
|
45c5bd |
%{_includedir}/%{name}
|
|
|
45c5bd |
%{_libdir}/%{name}*.so
|
|
|
45c5bd |
%dir %{_libdir}/cmake
|
|
|
45c5bd |
%{_libdir}/cmake/%{name}/
|
|
|
45c5bd |
|
|
|
45c5bd |
%changelog
|
|
|
45c5bd |
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-6
|
|
|
45c5bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
45c5bd |
|
|
|
45c5bd |
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 1.12.0-5
|
|
|
45c5bd |
- Rebuilt for Boost 1.75
|
|
|
45c5bd |
|
|
|
45c5bd |
* Wed Nov 04 2020 Jeff Law <law@redhat.com> - 1.12.0-4
|
|
|
45c5bd |
- Fix missing #includes for gcc-11
|
|
|
45c5bd |
|
|
|
45c5bd |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
|
|
|
45c5bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
45c5bd |
|
|
|
45c5bd |
* Wed Jun 03 2020 Jonathan Wakely <jwakely@redhat.com> - 1.12.0-2
|
|
|
45c5bd |
- Link libraries to libboost_nowide.so
|
|
|
45c5bd |
|
|
|
45c5bd |
* Wed Jun 03 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.12.0-1
|
|
|
45c5bd |
- Update to 1.12.0
|
|
|
45c5bd |
|
|
|
45c5bd |
* Tue Jun 02 2020 Jonathan Wakely <jwakely@redhat.com> - 1.10.0-2
|
|
|
45c5bd |
- Rebuilt and patched for Boost 1.73
|
|
|
45c5bd |
|
|
|
45c5bd |
* Tue Jan 28 2020 Adam Tkac <vonsch@gmail.com> - 1.10.1-1
|
|
|
45c5bd |
- update to 1.10.0
|
|
|
45c5bd |
|
|
|
45c5bd |
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-2
|
|
|
45c5bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
45c5bd |
|
|
|
45c5bd |
* Wed Jul 24 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.6.1-1
|
|
|
45c5bd |
- Update to 1.6.1
|
|
|
45c5bd |
|
|
|
45c5bd |
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
|
|
|
45c5bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
45c5bd |
|
|
|
45c5bd |
* Thu Jan 24 2019 Jonathan Wakely <jwakely@redhat.com> - 1.3.0-8
|
|
|
45c5bd |
- Rebuilt for Boost 1.69
|
|
|
45c5bd |
|
|
|
45c5bd |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-7
|
|
|
45c5bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
45c5bd |
|
|
|
45c5bd |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
|
|
|
45c5bd |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
45c5bd |
|
|
|
45c5bd |
* Tue Jan 23 2018 Jonathan Wakely <jwakely@redhat.com> - 1.3.0-5
|
|
|
45c5bd |
- Rebuilt for Boost 1.66
|
|
|
45c5bd |
|
|
|
45c5bd |
* Tue Nov 07 2017 James Hogarth <james.hogarth@gmail.com> - 1.3.0-4
|
|
|
45c5bd |
- Restore catch to devel build (bz#1510392)
|
|
|
45c5bd |
- Use make_build macro as per review
|
|
|
45c5bd |
|
|
|
45c5bd |
* Sun Oct 29 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 1.3.0-3
|
|
|
45c5bd |
- Merge with James spec + keep compatibility with CentOS SIGs
|
|
|
45c5bd |
|
|
|
45c5bd |
* Thu Oct 19 2017 James Hogarth <james.hogarth@gmail.com> - 1.3.0-2
|
|
|
45c5bd |
- rebuilt
|
|
|
45c5bd |
|
|
|
45c5bd |
* Wed Oct 04 2017 James Hogarth <james.hogarth@gmail.com> - 1.3.0-1
|
|
|
45c5bd |
- Upstream update
|
|
|
45c5bd |
- unbundle nowide
|
|
|
45c5bd |
|
|
|
45c5bd |
* Thu Aug 31 2017 James Hogarth <james.hogarth@gmail.com> - 1.2.0-1
|
|
|
45c5bd |
- Upstream update
|
|
|
45c5bd |
|
|
|
45c5bd |
* Sat Feb 4 2017 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.2-1
|
|
|
45c5bd |
- Upstream 0.10.2
|
|
|
45c5bd |
- Add Fedora support
|
|
|
45c5bd |
|
|
|
45c5bd |
* Thu Oct 27 2016 Haïkel Guémar <hguemar@fedoraproject.org> - 0.9.2-1
|
|
|
45c5bd |
- Initial package on EL7
|
|
|
45c5bd |
|