[packages/opencc] - updated to 1.1.7 (new soname)
qboosh
qboosh at pld-linux.org
Fri Jul 19 07:00:59 CEST 2024
commit 1fcb0d99fc507c0989a84e873e84a64531213f93
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Fri Jul 19 05:33:53 2024 +0200
- updated to 1.1.7 (new soname)
opencc.spec | 33 ++++++++++++++++++++++++---------
1 file changed, 24 insertions(+), 9 deletions(-)
---
diff --git a/opencc.spec b/opencc.spec
index 5cfaada..d647c5c 100644
--- a/opencc.spec
+++ b/opencc.spec
@@ -1,22 +1,30 @@
#
# Conditional build:
%bcond_without static_libs # static library
+%bcond_with python # Python module (not installed)
Summary: Open Chinese Convert library
Summary(pl.UTF-8): Biblioteka Open Chinese Convert do konwersji między wariantami języka chińskiego
Name: opencc
-Version: 1.0.6
-Release: 3
+Version: 1.1.7
+Release: 1
License: Apache v2.0
Group: Libraries
#Source0Download: https://github.com/BYVoid/OpenCC/releases
Source0: https://github.com/BYVoid/OpenCC/archive/ver.%{version}/%{name}-%{version}.tar.gz
-# Source0-md5: bcb6d42f6f0eedabaf95c71627f725a9
+# Source0-md5: f1f1f71722ae9e107a2ec4fc29c69619
Patch0: %{name}-paths.patch
URL: https://github.com/BYVoid/OpenCC
-BuildRequires: cmake >= 2.8
-BuildRequires: libstdc++-devel >= 6:4.7
+BuildRequires: cmake >= 3.5
+BuildRequires: libstdc++-devel >= 6:5
+BuildRequires: marisa-devel >= 0.2.6
+BuildRequires: rapidjson-devel >= 1.1.0
BuildRequires: rpmbuild(macros) >= 1.605
+%if %{with python}
+BuildRequires: python3-devel >= 1:3.2
+BuildRequires: python3-pybind11 >= 2.10.0
+%endif
+Requires: marisa >= 0.2.6
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -36,7 +44,7 @@ Summary: Header files for OpenCC library
Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenCC
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: libstdc++-devel >= 6:4.7
+Requires: libstdc++-devel >= 6:5
%description devel
Header files for OpenCC library.
@@ -65,7 +73,9 @@ Statyczna biblioteka OpenCC.
install -d build-static
cd build-static
%cmake .. \
- -DBUILD_SHARED_LIBS=OFF
+ -DBUILD_SHARED_LIBS=OFF \
+ -DUSE_SYSTEM_MARISA=ON \
+ -DUSE_SYSTEM_RAPIDJSON=ON
%{__make} -j1
cd ..
@@ -73,7 +83,11 @@ cd ..
install -d build
cd build
-%cmake ..
+%cmake .. \
+ %{?with_python:-DBUILD_PYTHON=ON} \
+ -DUSE_SYSTEM_MARISA=ON \
+ -DUSE_SYSTEM_PYBIND11=ON \
+ -DUSE_SYSTEM_RAPIDJSON=ON
%{__make} -j1
@@ -101,7 +115,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_bindir}/opencc_dict
%attr(755,root,root) %{_bindir}/opencc_phrase_extract
%attr(755,root,root) %{_libdir}/libopencc.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libopencc.so.2
+%attr(755,root,root) %ghost %{_libdir}/libopencc.so.1.1
%{_datadir}/%{name}
%files devel
@@ -109,6 +123,7 @@ rm -rf $RPM_BUILD_ROOT
%attr(755,root,root) %{_libdir}/libopencc.so
%{_includedir}/opencc
%{_pkgconfigdir}/opencc.pc
+%{_libdir}/cmake/opencc
%if %{with static_libs}
%files static
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/opencc.git/commitdiff/1fcb0d99fc507c0989a84e873e84a64531213f93
More information about the pld-cvs-commit
mailing list