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