Sophie

Sophie

distrib > Mageia > 2 > i586 > by-pkgid > 711f0c3999697c76c5e56aba591a3c66 > files > 2

enca-1.13-2.mga2.src.rpm

%define name 		enca
%define major 		0
%define	libname		%mklibname %name %major
%define develname	%mklibname %name -d

Summary:		A program that can detect and convert between character sets
Name: 			enca
Version: 		1.13
Release: 		%mkrel 2
License: 		GPLv2+
Group: 			Text tools
Source: 		http://dl.cihar.com/%{name}/%{name}-%{version}.tar.lzma
URL: 			http://gitorious.org/enca
BuildRoot: 		%{_tmppath}/%{name}-%{version}
BuildRequires: 		recode-devel

%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, and
Ukrainian and some multibyte encodings (mostly variants of Unicode)
independently on the language.

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 %libname
Summary: A library detecting encoding of text files
Group: System/Libraries

%description -n %libname
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, and
Ukrainian and some multibyte encodings (mostly variants of Unicode)
independently on the language.

This package contains shared Enca library other programs can make use of.


%package -n %develname
Summary: Header files and libraries for Enca development
Group: Development/C
Requires: %{libname} = %{version}-%{release}
Provides: libenca-devel = %{version}-%{release}
Provides: enca-devel = %{version}-%{release}
Obsoletes: %{mklibname enca 0 -d}

%description -n %develname
The %develname package contains the static libraries and header files
for writing programs using the Extremely Naive Charset Analyser library,
and its API documentation.

Install %develname if you are going to create applications using the Enca
library.

%prep
%setup -q

%build
%configure2_5x
%make

%install
rm -rf %{buildroot}
%makeinstall HTML_DIR=%{buildroot}/%{_datadir}/gtk-doc/html

%clean
rm -rf %{buildroot}

%files
%defattr(755,root,root)
%doc AUTHORS ChangeLog ChangeLog.prelib FAQ README README.devel THANKS TODO
%{_bindir}/enca
%{_bindir}/enconv
%{_libexecdir}/%{name}/extconv/*
%dir %{_libexecdir}/%{name}/extconv
%dir %{_libexecdir}/%{name}
%{_mandir}/man1/*

%files -n %libname
%defattr(-,root,root)
%{_libdir}/libenca.so.%{major}*

%files -n %develname
%defattr(-,root,root)
%{_includedir}/enca.h
%{_libdir}/pkgconfig/enca.pc
%{_libdir}/libenca.a
%{_libdir}/libenca.la
%{_libdir}/libenca.so
%doc %{_datadir}/gtk-doc/html/libenca/*
%doc %dir %{_datadir}/gtk-doc/html/libenca





%changelog

* Tue Jan 11 2011 supp <supp> 1.13-2.mga1
+ Revision: 6336
- imported package enca