enca/enca.spec
Sascha Peilicke 7994d1ce95 Accepting request 76586 from Education
- added 32bit compatibility libraries
- removed tests for obsolete openSUSE versions

OBS-URL: https://build.opensuse.org/request/show/76586
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/enca?expand=0&rev=8
2011-07-21 09:42:36 +00:00

121 lines
3.6 KiB
RPMSpec

#
# spec file for package enca (Version 1.13)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: enca
Summary: Detects encoding of text files
Group: Productivity/Other
Version: 1.13
Release: 1
License: GPLv2
Url: http://gitorious.org/enca
Source: %{name}-%{version}.tar.bz2
Source1: baselibs.conf
Requires: sed
%define gtk_doc %{_datadir}/gtk-doc
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: pkgconfig
%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 Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.
%package -n libenca0
License: GPLv2
Group: System/Libraries
Summary: Header files and libraries for Enca development
%description -n libenca0
The enca-devel package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install enca-devel if you are going to create applications using the Enca
library.
%package devel
License: GPLv2
Requires: libenca0 = %{version}
Requires: glibc-devel
Group: Development/Libraries/C and C++
Summary: Header files and libraries for Enca development
%description devel
The enca-devel package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.
Install enca-devel if you are going to create applications using the Enca
library.
%prep
%setup -q
%build
%configure --disable-static --without-librecode
# %make %{?jobs:-j%jobs}
make
%install
%makeinstall HTML_DIR=%{gtk_doc}/html
# the .la file is not needed without static libs
rm %{buildroot}/%{_libdir}/libenca.la
%post -n libenca0 -p /sbin/ldconfig
%postun -n libenca0 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog ChangeLog.prelib FAQ ChangeLog.old README THANKS TODO
%{_bindir}/enc*
%{_libexecdir}/enca
%{_mandir}/man1/enc*.1*
%files -n libenca0
%defattr(-,root,root)
%{_libdir}/libenca.so.0*
%files devel
%defattr(-,root,root)
%doc README.devel
%{_datadir}/gtk-doc/html/*
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_includedir}/enca.h
%{_libdir}/libenca.so
%{_libdir}/pkgconfig/enca.pc
%changelog