opencc/opencc.spec

84 lines
2.0 KiB
RPMSpec
Raw Normal View History

2019-12-14 14:13:54 +08:00
Name: opencc
2023-10-17 16:13:01 +08:00
Version: 1.1.7
Release: 1
2019-12-14 14:13:54 +08:00
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
2019-12-14 14:13:54 +08:00
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
2023-10-17 16:13:01 +08:00
%exclude %{_libdir}/cmake/opencc
2019-12-14 14:13:54 +08:00
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files help
%{_datadir}/opencc/doc
%changelog
2023-10-17 16:13:01 +08:00
* 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
2021-12-31 11:12:48 +08:00
* Fri Dec 31 2021 houyingchao <houyingchao@huawei.com> - 1.1.3-1
- Upgrade to 1.1.3 version
2020-06-29 16:41:43 +08:00
* Mon Jun 29 2020 huanghaitao <huanghaitao8@huawei.com> - 1.0.5-5
- Fix build error
2019-12-14 14:13:54 +08:00
* Thu Dec 12 2019 fengbing <fengbing7@huawei.com> - 1.0.5-4
- Package init