12 Star 0 Fork 3

src-openEuler / enca

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
enca.spec 2.20 KB
一键复制 编辑 Web IDE 原始数据 按行查看 历史
weidongkl 提交于 2020-08-21 09:07 . format spec
Name: enca
Summary: Character set analyzer and detector
Version: 1.19
Release: 1
License: GPLv2
Source: http://dl.cihar.com/enca/enca-%{version}.tar.xz
URL: http://cihar.com/software/enca
BuildRequires: gcc
%description
Enca is an Extremely Naive Charset Analyser. It detects character set and
encoding of text files and can also convert them to other encodings using
either a built-in converter or external libraries and tools like libiconv,
librecode, or cstocs.
Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, Ukrainian,
Chinese and some multibyte encodings (mostly variants of Unicode)
independent on the language.
This package also contains shared Enca library other programs can make use of.
Install %{name} if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.
%package devel
Summary: Header files and libraries for %{name} charset analyzer
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
The %{name}-devel package contains the header files for writing
programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install %{name}-devel if you are going to create applications using the Enca
library.
%prep
%setup -q
%build
%configure \
--disable-dependency-tracking \
--disable-rpath \
--without-librecode \
--disable-external \
--disable-static \
--disable-gtk-doc
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT HTML_DIR=/tmp/html
rm -rf $RPM_BUILD_ROOT/tmp/html
rm -rf $RPM_BUILD_ROOT/%{_libexecdir}
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.la
%check
make check LD_LIBRARY_PATH=$RPM_BUILD_ROOT/%{_libdir}
%ldconfig_scriptlets
%files
%{_bindir}/*
%{_libdir}/libenca.so.*
%{_mandir}/*/*
%doc AUTHORS COPYING FAQ README THANKS TODO
%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%doc DEVELOP.md
%changelog
* Fri Aug 7 2020 weidong <weidong@uniontech.com> - 1.19-1
- Initial release for OpenEuler
1
https://gitee.com/src-openeuler/enca.git
git@gitee.com:src-openeuler/enca.git
src-openeuler
enca
enca
openEuler-22.03-LTS

搜索帮助