Compare commits

...

29 Commits

Author SHA1 Message Date
Gwyn Ciesla ac981c4c34 1.12.11 2023-10-24 15:24:36 -05:00
Gwyn Ciesla 7ace1caee1 1.12.10 2023-10-17 09:42:05 -05:00
Fedora Release Engineering e349a8d008 Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-07-20 10:02:45 +00:00
Gwyn Ciesla 204f5b754b migrated to SPDX license 2023-03-04 16:52:52 -06:00
Jonathan Wakely 0da1d119f2 Rebuilt for Boost 1.81 2023-02-20 21:51:15 +00:00
Fedora Release Engineering 5edb1df078 Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-19 15:36:23 +00:00
Gwyn Ciesla 80b881f325 1.12.9 2022-10-17 14:17:40 -05:00
Gwyn Ciesla 598efb2e52 1.12.8 2022-07-22 10:12:57 -05:00
Fedora Release Engineering e8f28e03f2 Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-21 17:05:33 +00:00
Thomas Rodgers 42b37ffe45 Rebuilt for Boost 1.78 2022-05-04 11:39:32 +02:00
Fedora Release Engineering 78af738e8a - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-20 15:33:18 +00:00
Gwyn Ciesla 44e6870767 1.12.7 2022-01-19 09:22:24 -06:00
Jonathan Wakely cc1b529928 Rebuilt for Boost 1.76 2021-08-06 22:49:46 +01:00
Fedora Release Engineering ca56dc205e - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-22 10:45:55 +00:00
Gwyn Ciesla e522a6d1be 1.12.6 2021-07-13 15:04:41 -05:00
Gwyn Ciesla 47b114c656 1.12.5 2021-06-11 10:04:02 -05:00
Gwyn Ciesla 9961c45e61 Link leatherman_util against boost_nowide. 2021-03-18 09:49:38 -05:00
Gwyn Ciesla 83882dc510 Patches. 2021-03-09 10:15:26 -06:00
Gwyn Ciesla 1892a58ee9 1.12.4, use system catch1 for tests. 2021-03-09 10:14:54 -06:00
Fedora Release Engineering 4d31d974d5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-26 16:28:16 +00:00
Jonathan Wakely 3f52c045d7 Rebuilt for Boost 1.75 2021-01-22 21:02:13 +00:00
Jeff Law 0e22de8b1b Fix missing #includes for gcc-11 2020-11-04 16:01:07 -07:00
Fedora Release Engineering d24984012a - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2020-07-28 04:02:42 +00:00
Jonathan Wakely d32134d9f5 Link libraries to libboost_nowide.so 2020-06-03 10:50:33 +01:00
Igor Raits ee701e9d46
Update to 1.12.0
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-06-03 11:16:54 +02:00
Jonathan Wakely 629b826aa4 Rebuilt and patched for Boost 1.73
Upstream Boost.Nowide doesn't have cenv.hpp, use cstdlib.hpp instead.

It also isn't header-only, so requires linking to libboost_nowide.
2020-06-02 23:40:04 +01:00
Igor Raits 70ead984a3
Fixup changelog
Signed-off-by: Igor Raits <ignatenkobrain@fedoraproject.org>
2020-01-28 12:39:42 +01:00
Adam Tkac 1f5114816a Update .gitignore + sources
Signed-off-by: Adam Tkac <vonsch@gmail.com>
2020-01-28 12:37:56 +01:00
Adam Tkac 8dd6230b6d Update to 1.10.0
Signed-off-by: Adam Tkac <vonsch@gmail.com>
2020-01-28 12:24:54 +01:00
7 changed files with 252 additions and 36 deletions

10
.gitignore vendored
View File

@ -1,2 +1,12 @@
/leatherman-1.3.0.tar.gz
/leatherman-1.6.1.tar.gz
/leatherman-1.10.0.tar.gz
/leatherman-1.12.0.tar.gz
/leatherman-1.12.4.tar.gz
/leatherman-1.12.5.tar.gz
/leatherman-1.12.6.tar.gz
/leatherman-1.12.7.tar.gz
/leatherman-1.12.8.tar.gz
/leatherman-1.12.9.tar.gz
/leatherman-1.12.10.tar.gz
/leatherman-1.12.11.tar.gz

View File

@ -0,0 +1,101 @@
--- a/nowide/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/nowide/CMakeLists.txt 2021-03-09 08:57:57.469391575 -0600
@@ -1,7 +1,5 @@
find_package(Boost 1.54 REQUIRED)
-add_leatherman_includes(${Boost_INCLUDE_DIRS} "${CMAKE_CURRENT_SOURCE_DIR}/../vendor/nowide/include")
-add_leatherman_headers(../vendor/nowide/include/boost)
if(WIN32)
add_leatherman_library(../vendor/nowide/src/iostream.cpp)
endif()
--- a/execution/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/execution/CMakeLists.txt 2021-03-09 08:59:46.136860198 -0600
@@ -1,4 +1,4 @@
-find_package(Boost 1.54 REQUIRED COMPONENTS regex filesystem system)
+find_package(Boost 1.73 REQUIRED COMPONENTS regex filesystem system nowide)
add_leatherman_deps("${Boost_LIBRARIES}")
if ("${CMAKE_SYSTEM_NAME}" MATCHES "SunOS")
@@ -10,7 +10,6 @@
add_leatherman_includes("${Boost_INCLUDE_DIRS}")
leatherman_dependency(util)
-leatherman_dependency(nowide)
leatherman_dependency(locale)
leatherman_dependency(logging)
leatherman_dependency(file_util)
--- a/file_util/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/file_util/CMakeLists.txt 2021-03-09 09:00:26.641683668 -0600
@@ -1,9 +1,8 @@
-find_package(Boost 1.54 REQUIRED COMPONENTS regex filesystem system)
+find_package(Boost 1.54 REQUIRED COMPONENTS regex filesystem system nowide)
add_leatherman_deps("${Boost_LIBRARIES}")
add_leatherman_includes("${Boost_INCLUDE_DIRS}")
-leatherman_dependency(nowide)
leatherman_dependency(locale)
leatherman_dependency(logging)
leatherman_dependency(util)
--- a/logging/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/logging/CMakeLists.txt 2021-03-09 09:01:03.565522737 -0600
@@ -4,7 +4,6 @@
add_leatherman_deps(${Boost_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
add_leatherman_includes("${Boost_INCLUDE_DIRS}")
-leatherman_dependency(nowide)
leatherman_dependency(locale)
if (CMAKE_SYSTEM_NAME MATCHES "Linux" OR CMAKE_SYSTEM_NAME MATCHES "SunOS")
--- a/tests/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/tests/CMakeLists.txt 2021-03-09 09:01:47.352331908 -0600
@@ -1,8 +1,8 @@
-set(BOOST_REQUIRED_COMPONENTS system date_time chrono log log_setup thread filesystem regex)
+set(BOOST_REQUIRED_COMPONENTS system date_time chrono log log_setup thread filesystem regex nowide)
if (LEATHERMAN_USE_LOCALES)
set(BOOST_REQUIRED_COMPONENTS ${BOOST_REQUIRED_COMPONENTS} locale)
endif()
-find_package(Boost "1.54" REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
+find_package(Boost "1.73" REQUIRED COMPONENTS ${BOOST_REQUIRED_COMPONENTS})
include_directories(BEFORE ${LEATHERMAN_CATCH_INCLUDE} ${LEATHERMAN_INCLUDE_DIRS})
add_executable(leatherman_test main.cc ${LEATHERMAN_TEST_SRCS})
--- a/file_util/src/file.cc~ 2020-12-09 04:17:13.000000000 -0600
+++ b/file_util/src/file.cc 2021-03-09 09:02:58.297022731 -0600
@@ -1,6 +1,6 @@
#include <leatherman/file_util/file.hpp>
#include <boost/nowide/fstream.hpp>
-#include <boost/nowide/cenv.hpp>
+#include <boost/nowide/cstdlib.hpp>
#include <boost/filesystem.hpp>
#include <sstream>
#include <leatherman/logging/logging.hpp>
--- a/util/src/environment.cc~ 2020-12-09 04:17:13.000000000 -0600
+++ b/util/src/environment.cc 2021-03-09 09:03:39.013845293 -0600
@@ -1,5 +1,5 @@
#include <leatherman/util/environment.hpp>
-#include <boost/nowide/cenv.hpp>
+#include <boost/nowide/cstdlib.hpp>
#include <stdexcept>
using namespace std;
--- a/util/tests/environment.cc~ 2020-12-09 04:17:13.000000000 -0600
+++ b/util/tests/environment.cc 2021-03-09 09:04:22.487655817 -0600
@@ -1,6 +1,6 @@
#include <catch.hpp>
#include <leatherman/util/environment.hpp>
-#include <boost/nowide/cenv.hpp>
+#include <boost/nowide/cstdlib.hpp>
using namespace std;
using namespace leatherman::util;
--- a/util/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/util/CMakeLists.txt 2021-03-18 09:40:55.004699613 -0500
@@ -1,6 +1,6 @@
find_package(Boost 1.54 REQUIRED date_time chrono system)
-add_leatherman_deps(${Boost_LIBRARIES})
+add_leatherman_deps(${Boost_LIBRARIES} -lboost_nowide)
add_leatherman_includes("${Boost_INCLUDE_DIRS}")
leatherman_dependency(nowide)

38
leatherman-gcc11.patch Normal file
View File

@ -0,0 +1,38 @@
diff --git a/curl/src/client.cc b/curl/src/client.cc
index 558db6d..d27bb36 100644
--- a/curl/src/client.cc
+++ b/curl/src/client.cc
@@ -1,3 +1,4 @@
+#include <cstddef>
#include <leatherman/curl/client.hpp>
#include <leatherman/curl/request.hpp>
#include <leatherman/curl/response.hpp>
diff --git a/util/src/posix/scoped_descriptor.cc b/util/src/posix/scoped_descriptor.cc
index 6fd1495..8294d0b 100644
--- a/util/src/posix/scoped_descriptor.cc
+++ b/util/src/posix/scoped_descriptor.cc
@@ -1,3 +1,5 @@
+#include <cstddef>
+
#include <leatherman/util/posix/scoped_descriptor.hpp>
using namespace std;
diff --git a/util/src/scope_exit.cc b/util/src/scope_exit.cc
index 764c2fb..441855a 100644
--- a/util/src/scope_exit.cc
+++ b/util/src/scope_exit.cc
@@ -1,3 +1,4 @@
+#include <cstddef>
#include <leatherman/util/scope_exit.hpp>
using namespace std;
diff --git a/util/src/scoped_env.cc b/util/src/scoped_env.cc
index 6c6a041..df26645 100644
--- a/util/src/scoped_env.cc
+++ b/util/src/scoped_env.cc
@@ -1,3 +1,5 @@
+#include <cstddef>
+
#include <leatherman/util/scoped_env.hpp>
#include <leatherman/util/environment.hpp>

View File

@ -1,31 +1,27 @@
%if 0%{?rhel} && 0%{?rhel} <= 7
%global boost_suffix 169
%global cmake_suffix 3
%global cmake %%cmake%{?cmake_suffix}
%endif
Name: leatherman
Version: 1.6.1
Release: 2%{?dist}
Version: 1.12.11
Release: 1%{?dist}
Summary: Collection of C++ and CMake utility libraries
# leatherman is ASL 2.0
# bundled rapidjson is MIT
License: ASL 2.0 and MIT
License: Apache-2.0 AND MIT
URL: https://github.com/puppetlabs/leatherman
Source: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# This unbundles boost-nowide and the boost libraries do not need
# to have the path to nowide added as it's included already
Patch0: shared_nowide.patch
Patch0: leatherman-1.12.4-shared_nowide.patch
Patch1: system-catch.patch
Patch2: %{name}-gcc11.patch
BuildRequires: cmake%{?cmake_suffix} >= 3.2.2
BuildRequires: cmake >= 3.2.2
BuildRequires: make
BuildRequires: gcc-c++
BuildRequires: boost%{?boost_suffix}-devel >= 1.54
BuildRequires: boost-nowide-devel
BuildRequires: boost-devel >= 1.73
BuildRequires: libcurl-devel
BuildRequires: gettext
BuildRequires: catch1-devel
Provides: bundled(rapidjson) = 1.0.2
%description
@ -34,8 +30,8 @@ Provides: bundled(rapidjson) = 1.0.2
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
# Building againse leatherman requires the boost nowide headers present
Requires: boost-nowide-devel
# Building against leatherman requires the boost nowide headers present
Requires: boost-devel
# Strictly speaking, it is needed only if curl feature is activated
Requires: libcurl-devel%{?_isa}
@ -54,19 +50,14 @@ sed -i -e "s/\s*-Werror\s*//g" cmake/cflags.cmake
%build
%cmake . -B%{_target_platform} \
-DBOOST_INCLUDEDIR=%{_includedir}/boost%{?boost_suffix} \
-DBOOST_LIBRARYDIR=%{_libdir}/boost%{?boost_suffix} \
-DLEATHERMAN_SHARED=ON \
-DLEATHERMAN_DEBUG=ON \
-DLEATHERMAN_CATCH_INCLUDE=%{_includedir}/catch \
%{nil}
%make_build -C %{_target_platform}
%install
%make_install -C %{_target_platform}
%if %{defined cmake_suffix}
mkdir -p %{buildroot}%{_libdir}/cmake%{cmake_suffix}
mv %{buildroot}%{_libdir}/cmake/%{name} %{buildroot}%{_libdir}/cmake%{cmake_suffix}/
%endif
%find_lang %{name}_logging
%find_lang %{name}_locale
@ -79,10 +70,88 @@ mv %{buildroot}%{_libdir}/cmake/%{name} %{buildroot}%{_libdir}/cmake%{cmake_suff
%files devel
%{_includedir}/%{name}
%{_libdir}/%{name}*.so
%dir %{_libdir}/cmake%{?cmake_suffix}
%{_libdir}/cmake%{?cmake_suffix}/%{name}/
%dir %{_libdir}/cmake
%{_libdir}/cmake/%{name}/
%changelog
* Tue Oct 24 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.12.11-1
- 1.12.11
* Tue Oct 17 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.12.10-1
- 1.12.10
* Thu Jul 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
* Sat Mar 04 2023 Gwyn Ciesla <gwync@protonmail.com> - 1.12.9-4
- migrated to SPDX license
* Mon Feb 20 2023 Jonathan Wakely <jwakely@redhat.com> - 1.12.9-3
- Rebuilt for Boost 1.81
* Thu Jan 19 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
* Mon Oct 17 2022 Gwyn Ciesla <gwync@protonmail.com> - 1.12.9-1
- 1.12.9
* Fri Jul 22 2022 Gwyn Ciesla <gwync@protonmail.com> - 1.12.8-1
- 1.12.8
* Thu Jul 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.7-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
* Wed May 04 2022 Thomas Rodgers <trodgers@redhat.com> - 1.12.7-3
- Rebuilt for Boost 1.78
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
* Wed Jan 19 2022 Gwyn Ciesla <gwync@protonmail.com> - 1.12.7-1
- 1.12.7
* Fri Aug 06 2021 Jonathan Wakely <jwakely@redhat.com> - 1.12.6-3
- Rebuilt for Boost 1.76
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
* Tue Jul 13 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.12.6-1
- 1.12.6
* Fri Jun 11 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.12.5-1
- 1.12.5
* Thu Mar 18 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.12.4-2
- Link leatherman_util against boost_nowide.
* Tue Mar 09 2021 Gwyn Ciesla <gwync@protonmail.com> - 1.12.4-1
- 1.12.4
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
* Fri Jan 22 2021 Jonathan Wakely <jwakely@redhat.com> - 1.12.0-5
- Rebuilt for Boost 1.75
* Wed Nov 04 2020 Jeff Law <law@redhat.com> - 1.12.0-4
- Fix missing #includes for gcc-11
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
* Wed Jun 03 2020 Jonathan Wakely <jwakely@redhat.com> - 1.12.0-2
- Link libraries to libboost_nowide.so
* Wed Jun 03 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.12.0-1
- Update to 1.12.0
* Tue Jun 02 2020 Jonathan Wakely <jwakely@redhat.com> - 1.10.0-2
- Rebuilt and patched for Boost 1.73
* Tue Jan 28 2020 Adam Tkac <vonsch@gmail.com> - 1.10.1-1
- update to 1.10.0
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

View File

@ -1,12 +0,0 @@
diff --git a/nowide/CMakeLists.txt b/nowide/CMakeLists.txt
index ff9dba6..5d1b9ce 100644
--- a/nowide/CMakeLists.txt
+++ b/nowide/CMakeLists.txt
@@ -1,7 +1,5 @@
find_package(Boost 1.54 REQUIRED)
-add_leatherman_includes(${Boost_INCLUDE_DIRS} "${CMAKE_CURRENT_SOURCE_DIR}/../vendor/nowide/include")
-add_leatherman_headers(../vendor/nowide/include/boost)
if(WIN32)
add_leatherman_library(../vendor/nowide/src/iostream.cpp)
endif()

View File

@ -1 +1 @@
SHA512 (leatherman-1.6.1.tar.gz) = 0803b985b57bd5e34ba31137b31fdfece53cb545dffb6a9447aa3de0353c9300e2d9e41b2b4f761b7683e02ed6577decfb1938d238314fd8439eccb16aa9475a
SHA512 (leatherman-1.12.11.tar.gz) = 26fb96a2f8bb34efe4df1220db18f9816ecd3b34d3ef1e84ecfda8833318f7e4f3dcd93535034669110e62fa69bbf9c43599d84739321c6d0075475cd2de7671

10
system-catch.patch Normal file
View File

@ -0,0 +1,10 @@
--- a/CMakeLists.txt~ 2020-12-09 04:17:13.000000000 -0600
+++ b/CMakeLists.txt 2021-03-09 09:33:46.038471009 -0600
@@ -65,7 +65,6 @@
file(GLOB_RECURSE ALL_LEATHERMAN_SOURCES */src/*.cc */inc/*.hpp)
add_subdirectory(locales)
-add_leatherman_dir(catch EXCLUDE_FROM_VARS)
add_leatherman_dir(nowide)
add_leatherman_dir(util)
add_leatherman_dir(locale)