summaryrefslogtreecommitdiff
path: root/leatherman.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-12-12 15:43:30 +0000
committerCoprDistGit <infra@openeuler.org>2024-12-12 15:43:30 +0000
commit8828e3e1d66d0e1386cd2c7f50fca751d93c25e8 (patch)
tree955cd482fc06d44b38ec7acc523a0d64459840ad /leatherman.spec
parentcdb4fe650c43f93856591d00152288cff891f8d4 (diff)
automatic import of leathermanopeneuler24.03_LTS
Diffstat (limited to 'leatherman.spec')
-rw-r--r--leatherman.spec57
1 files changed, 57 insertions, 0 deletions
diff --git a/leatherman.spec b/leatherman.spec
new file mode 100644
index 0000000..e589ba0
--- /dev/null
+++ b/leatherman.spec
@@ -0,0 +1,57 @@
+Name: leatherman
+Version: 1.12.13
+Release: 2
+Summary: Collection of C++ and CMake utility libraries
+License: Apache-2.0 and MIT
+URL: https://github.com/puppetlabs/leatherman
+Source: https://github.com/puppetlabs/leatherman/archive/%{version}/leatherman-%{version}.tar.gz
+Patch0: shared_nowide.patch
+Patch1: system-catch.patch
+Patch2: leatherman-gcc11.patch
+BuildRequires: cmake >= 3.2.2 make gcc-c++ boost-devel >= 1.73 libcurl-devel gettext catch1-devel
+Provides: bundled(rapidjson) = 1.0.2
+%description
+%{summary}.
+
+%package devel
+Summary: Development files for leatherman
+Requires: leatherman%{?_isa} = %{version}-%{release} boost-devel libcurl-devel%{?_isa}
+%description devel
+The leatherman-devel package contains libraries and header files for
+developing applications that use leatherman.
+
+%prep
+%autosetup -p1
+sed -i -e "s/\s*-Werror\s*//g" cmake/cflags.cmake
+
+%build
+%cmake \
+ -DLEATHERMAN_SHARED=ON \
+ -DLEATHERMAN_DEBUG=ON \
+ -DLEATHERMAN_CATCH_INCLUDE=%{_includedir}/catch \
+ %{nil}
+%cmake_build
+
+%install
+%cmake_install
+%find_lang leatherman_logging
+%find_lang leatherman_locale
+
+%files -f leatherman_logging.lang -f leatherman_locale.lang
+%license LICENSE
+%{_libdir}/leatherman*.so.*
+
+%files devel
+%{_includedir}/leatherman
+%{_libdir}/leatherman*.so
+%{_libdir}/cmake/leatherman
+
+%changelog
+* Thu Dec 12 2024 Funda Wang <fundawang@yeah.net> - 1.12.13-2
+- adopt to new cmake macro
+
+* Fri May 24 2024 wulei <wu_lei@hoperun.com> - 1.12.13-1
+- Upgrade package
+
+* Fri Aug 14 2020 yaokai <yaokai13@huawei.com> - 1.12.0-1
+- package init