!2 package init

Merge pull request !2 from weidongkl/master
This commit is contained in:
openeuler-ci-bot 2020-08-21 09:45:06 +08:00 committed by Gitee
commit 29b9218378
3 changed files with 99 additions and 0 deletions

BIN
enca-1.19.tar.xz Normal file

Binary file not shown.

94
enca.spec Normal file
View File

@ -0,0 +1,94 @@
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

5
enca.yaml Normal file
View File

@ -0,0 +1,5 @@
version_control: github
src_repo: nijel/enca
tag_prefix: ""
seperator: "."