2009-08-13 23:15:39 +02:00
|
|
|
#
|
2011-07-21 11:42:47 +02:00
|
|
|
# spec file for package enca
|
2009-08-13 23:15:39 +02:00
|
|
|
#
|
2014-08-12 14:01:10 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2009-08-13 23:15:39 +02:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2014-08-12 14:01:10 +02:00
|
|
|
%define gtk_doc %{_datadir}/gtk-doc
|
2009-08-13 23:15:39 +02:00
|
|
|
Name: enca
|
2014-08-12 14:01:10 +02:00
|
|
|
Version: 1.15
|
|
|
|
Release: 0
|
2009-08-13 23:15:39 +02:00
|
|
|
Summary: Detects encoding of text files
|
2012-02-15 21:17:34 +01:00
|
|
|
License: GPL-2.0
|
2012-12-16 04:00:36 +01:00
|
|
|
Group: Productivity/Other
|
2013-10-03 09:37:12 +02:00
|
|
|
Url: http://cihar.com/software/enca/
|
2013-03-26 14:22:32 +01:00
|
|
|
Source: http://dl.cihar.com/%{name}/%{name}-%{version}.tar.bz2
|
2011-07-21 11:42:36 +02:00
|
|
|
Source1: baselibs.conf
|
2014-08-12 14:01:10 +02:00
|
|
|
BuildRequires: pkgconfig
|
2009-08-13 23:15:39 +02:00
|
|
|
Requires: sed
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: Header files and libraries for Enca development
|
2012-12-16 04:00:36 +01:00
|
|
|
Group: System/Libraries
|
2009-08-13 23:15:39 +02:00
|
|
|
|
|
|
|
%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
|
|
|
|
Summary: Header files and libraries for Enca development
|
2012-12-16 04:00:36 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2014-08-12 14:01:10 +02:00
|
|
|
Requires: glibc-devel
|
|
|
|
Requires: libenca0 = %{version}
|
2009-08-13 23:15:39 +02:00
|
|
|
|
|
|
|
%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
|
2010-05-07 16:00:42 +02:00
|
|
|
%configure --disable-static --without-librecode
|
2011-09-19 11:10:14 +02:00
|
|
|
make %{?_smp_mflags}
|
2009-08-13 23:15:39 +02:00
|
|
|
|
|
|
|
%install
|
2014-08-12 14:01:10 +02:00
|
|
|
make DESTDIR=%{buildroot} install %{?_smp_mflags} HTML_DIR=%{gtk_doc}/html
|
2009-08-13 23:15:39 +02:00
|
|
|
# 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
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2012-12-16 04:00:36 +01:00
|
|
|
%doc AUTHORS COPYING ChangeLog* FAQ README THANKS TODO
|
2009-08-13 23:15:39 +02:00
|
|
|
%{_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
|