Name: utrac Version: 0.3.0 Release: 4%{?dist} Summary: Universal Text Recognizer and Converter Summary(fr): Reconnaisseur et convertisseur universel de texte Group: Applications/File License: GPL Url: http://utrac.sourceforge.net Source: http://utrac.sourceforge.net/download/utrac-0.3.0.tar.gz Patch0: utrac-destdir.patch Patch1: utrac.h.utf8 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Utrac is a command line tool and a library that recognize the encoding of an input file (ex: UTF-8, ISO-8859-1, CP437...) and its end-of-line type (CR, LF, CRLF). It has three main features: - Automatic recognition (depending on the file and on the system's locale), reliable in most cases; - Assistance for verification or manual recognition; - Conversion to an other charset and/or end-of-line type. %description -l fr Utrac est un outil en ligne de commande et une bibliothèque qui reconnait l'encodage d'un fichier d'entrée (par ex: UTF-8, ISO-8859-1, CP437...) et son type de fin de ligne (CR, LF, CRLF). Ses trois fonctionnalités principales sont : - reconnaissance automatique (suivant le fichier et la localisation du système) fiable dans la plupart des cas ; - assistance à la vérification ou à la reconnaissance manuelle ; - conversion dans un autre jeu de caractères et/ou type de fin de ligne. %package devel Summary: Library and file header for utrac Summary(fr): Bibliothèque et fichier d'en-têtes pour utrac Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package includes the static library and the header files for compiling programs that use the utrac library. %description -l fr devel Le paquetage %{name}-devel contient la bibliothèque statique et le fichier d'en-têtes nécessaires à la compilation des programmes qui utilisent la bibliothèque utrac. %prep %setup -q %patch0 %patch1 -p1 %build make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT \ PREFIX_PATH=%{_prefix} \ BIN_PATH=%{_bindir} \ LIB_PATH=%{_libdir} \ INC_PATH=%{_includedir} \ MAN_PATH=%{_mandir}/man1 \ SHARE_PATH=%{_datadir}/%{name} make install-lib DESTDIR=$RPM_BUILD_ROOT \ PREFIX_PATH=%{_prefix} \ BIN_PATH=%{_bindir} \ LIB_PATH=%{_libdir} \ INC_PATH=%{_includedir} \ MAN_PATH=%{_mandir}/man1 \ SHARE_PATH=%{_datadir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc CHANGES COPYING README TODO %{_bindir}/* %dir %{_datadir}/%{name} %{_datadir}/%{name}/* %{_mandir}/man1/* %files devel %defattr(-,root,root,-) %{_libdir}/*.a %{_includedir}/* %changelog * Tue Sep 27 2005 Alain Portal 0.3.0-4 - Change Source tag to allow direct download * Tue Sep 27 2005 Alain Portal 0.3.0-3 - Change Source tag to allow direct download - Update and rename Makefile patch - Override utrac variables in install section - Add "-l fr" forgotten option in french description - Remove "rm -rf $RPM_BUILD_DIR/%{name}-%{version}" statement in %clean section - Remove useless INSTALL file - Package don't own /usr/share/man/man1 - Contribution of Aurélien Bompard Thanks to him * Tue Sep 13 2005 Alain Portal 0.3.0-2 - Add french summary and description * Mon Sep 12 2005 Alain Portal 0.3.0-1 - New version - Patch0 to easy installation - Patch1 to set default encoding recognition as utf8 * Thu Jan 20 2005 Alain Portal 0:0.2-0.fdr.1 - Initial Fedora RPM