1 Star 0 Fork 12

huanghaitao/opencc

forked from src-openEuler/opencc 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
opencc.spec 1.82 KB
一键复制 编辑 原始数据 按行查看 历史
hht8 提交于 2020-06-29 16:41 . fix build error
Name: opencc
Version: 1.0.5
Release: 5
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: opencc-fixes-cmake.patch
Patch0002: opencc-check-bounds.patch
Patch0003: opencc-stop-copy.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
%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%files help
%{_datadir}/opencc/doc
%changelog
* 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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hht8/opencc.git
git@gitee.com:hht8/opencc.git
hht8
opencc
opencc
master

搜索帮助