84 lines
2.0 KiB
RPMSpec
84 lines
2.0 KiB
RPMSpec
Name: opencc
|
|
Version: 1.1.7
|
|
Release: 1
|
|
Summary: Simplified Chinese Traditional Conversion Library
|
|
License: ASL 2.0
|
|
URL: https://github.com/BYVoid/OpenCC
|
|
Source0: https://github.com/BYVoid/OpenCC/archive/ver.%{version}.tar.gz#/OpenCC-ver.%{version}.tar.gz
|
|
Patch0001: modify-some-trans-error.patch
|
|
|
|
Provides: %{name}-tools = %{version}-%{release}
|
|
Obsoletes: %{name}-tools < %{version}-%{release}
|
|
BuildRequires: gcc-c++ gettext cmake doxygen python3
|
|
|
|
%description
|
|
Opencc is for between Traditional Chinese and Simplified Chinese characters and phrases conversion library.
|
|
|
|
%package devel
|
|
Summary: Development files for OpenCC
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
%description devel
|
|
This package contains libraries and header files for developing applications that use opencc.
|
|
|
|
%package help
|
|
Summary: Documentation for opencc
|
|
Requires: %{name} = %{version}-%{release}
|
|
Provides: %{name}-doc = %{version}-%{release}
|
|
Obsoletes: %{name}-doc < %{version}-%{release}
|
|
|
|
%description help
|
|
This package provides documentation for opencc.
|
|
|
|
%prep
|
|
%autosetup -n OpenCC-ver.%{version} -p1
|
|
|
|
%build
|
|
%cmake . -DENABLE_GETTEXT:BOOL=ON -DBUILD_DOCUMENTATION:BOOL=ON
|
|
%make_build VERBOSE=1
|
|
|
|
%install
|
|
%make_install
|
|
|
|
%check
|
|
ctest
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%doc AUTHORS LICENSE README.md
|
|
%{_libdir}/lib*.so.*
|
|
%{_datadir}/opencc/
|
|
%{_bindir}/*
|
|
%exclude %{_datadir}/opencc/doc
|
|
%exclude %{_libdir}/*.a
|
|
%exclude %{_libdir}/cmake/opencc
|
|
|
|
%files devel
|
|
%{_includedir}/*
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%files help
|
|
%{_datadir}/opencc/doc
|
|
|
|
%changelog
|
|
* Tue Oct 17 2023 wangkai <13474090681@163.com> - 1.1.7-1
|
|
- Update to 1.1.7
|
|
|
|
* Tue Aug 29 2023 wulei <wu_lei@hoperun.com> - 1.1.3-2
|
|
- Modify some trans error
|
|
|
|
* Fri Dec 31 2021 houyingchao <houyingchao@huawei.com> - 1.1.3-1
|
|
- Upgrade to 1.1.3 version
|
|
|
|
* Mon Jun 29 2020 huanghaitao <huanghaitao8@huawei.com> - 1.0.5-5
|
|
- Fix build error
|
|
|
|
* Thu Dec 12 2019 fengbing <fengbing7@huawei.com> - 1.0.5-4
|
|
- Package init
|