Name : recode Version : 3.6 Release : 1rh71 Group : Applications/Text Summary : GNU utility for converting text files according to RFC 1345. Copyright : GPL BuildRoot : /tmp/%{name}-%{version} Prefix : /usr Source: ftp://ftp.gnu.org/pub/gnu/recode/recode-%{version}.tar.gz %Description GNU `recode' converts files between character sets and usages. When exact transliterations are not possible, it may get rid of the offending characters or fall back on approximations. This program recognizes or produces nearly 150 different character sets and is able to transliterate files between almost any pair. Most RFC 1345 character sets are supported. %package devel Summary: Gnu library for converting text according to RFC 1345. Requires: recode Group: Development/Libraries %Description devel GNU `recode' converts files between character sets and usages. When exact transliterations are not possible, it may get rid of the offending characters or fall back on approximations. This program recognizes or produces nearly 150 different character sets and is able to transliterate between almost any pair. Most RFC 1345 character sets are supported. %Prep %setup -q %Build %configure --enable-nls --mandir=%{_mandir} --infodir=%{_infodir} make %Install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/usr make prefix=$RPM_BUILD_ROOT/usr install # this ugly hack, somebody should fix recode package to install all stuff # to the prefix dir mkdir -p $RPM_BUILD_ROOT/usr/share/info \ $RPM_BUILD_ROOT/usr/lib \ $RPM_BUILD_ROOT/usr/share/man/man1 \ $RPM_BUILD_ROOT/usr/include \ $RPM_BUILD_ROOT/usr/bin mv /usr/share/info/recode.info $RPM_BUILD_ROOT/usr/share/info for i in 1 2 3 4 5 6 7; do mv /usr/share/info/recode.info-$i $RPM_BUILD_ROOT/usr/share/info done mv /usr/lib/librecode.so.0.0.0 $RPM_BUILD_ROOT/usr/lib mv /usr/lib/librecode.la /usr/lib/librecode.a $RPM_BUILD_ROOT/usr/lib mv /usr/bin/recode $RPM_BUILD_ROOT/usr/bin mv /usr/share/man/man1/recode.1 $RPM_BUILD_ROOT/usr/share/man/man1 mv /usr/include/recode.h $RPM_BUILD_ROOT/usr/include mv /usr/include/recodext.h $RPM_BUILD_ROOT/usr/include ldconfig %Clean rm -rf $RPM_BUILD_ROOT %Post /sbin/ldconfig /sbin/install-info /usr/info/cvs.info.gz /usr/info/dir --entry="* recode: (recode). Conversion between character sets and surfaces." %PostUn /sbin/ldconfig if [ $1 = 0 ]; then /sbin/install-info --delete /usr/info/cvs.info.gz /usr/info/dir --entry="* recode: (recode). Conversion between character sets and surfaces." fi %Files %defattr(-,root,root) %doc BACKLOG COPYING COPYING-LIB AUTHORS ChangeLog ABOUT-NLS NEWS %doc TODO README THANKS doc/File-Latin1 /usr/bin/recode %{_infodir}/recode.info* %{_mandir}/man*/recode.* /usr/lib/librecode.so.0.0.0 /usr/share/locale/*/LC_MESSAGES/recode.mo %Files devel %defattr(-,root,root) /usr/lib/librecode.la /usr/lib/librecode.a /usr/include/recode.h /usr/include/recodext.h %ChangeLog * Mon Apr 23 2001 Milan Kerslager - update to version 3.6, rebuild for RH 7.1 - man pages and info are gziped automagicaly - recode install scripts are broken thus we have to use ugly hack * Fri Jan 28 2000 Alexey Nogin - Upgrded to recode-3.5c * Mon Nov 29 1999 Alexey Nogin - Took OpenLinux Spec file from recode-3.5-1 - Split into recode and recode-devel - Replaced OpenLinux macros with RedHat macros