5cd1d43
Summary: Conversion between character sets and surfaces.
5cd1d43
Name: recode
5cd1d43
Version: 3.6
4131346
Release: 17
5cd1d43
License: GPL
5cd1d43
Group: Applications/File
5cd1d43
Source: ftp://ftp.iro.umontreal.ca/pub/recode/recode-%{version}.tar.gz
5cd1d43
Patch: recode.patch
5cd1d43
Patch1: recode-3.6-getcwd.patch
5cd1d43
Url: http://www.iro.umontreal.ca/contrib/recode/HTML/
5cd1d43
Prereq: /sbin/install-info /sbin/ldconfig
5cd1d43
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
5cd1d43
5cd1d43
%description
5cd1d43
The `recode' converts files between character sets and usages.
5cd1d43
It recognises or produces nearly 150 different character sets
5cd1d43
and is able to transliterate files between almost any pair. When exact
5cd1d43
transliteration are not possible, it may get rid of the offending
5cd1d43
characters or fall back on approximations.  Most RFC 1345 character sets
5cd1d43
are supported.
5cd1d43
5cd1d43
%package devel
5cd1d43
Summary: Header files and static libraries for development using recode.
5cd1d43
Group: Development/Libraries
5cd1d43
Requires: %{name} = %{version}
5cd1d43
5cd1d43
%description devel
5cd1d43
The `recode' library converts files between character sets and usages.
5cd1d43
The library recognises or produces nearly 150 different character sets
5cd1d43
and is able to transliterate files between almost any pair. When exact
5cd1d43
transliteration are not possible, it may get rid of the offending
5cd1d43
characters or fall back on approximations. Most RFC 1345 character sets
5cd1d43
are supported.
5cd1d43
5cd1d43
%prep
5cd1d43
%setup -q
5cd1d43
%patch -p1
5cd1d43
%patch1 -p1 -b .getcwd
5cd1d43
5cd1d43
%build
5cd1d43
%configure
5cd1d43
make
5cd1d43
5cd1d43
%install
5cd1d43
rm -rf $RPM_BUILD_ROOT
5cd1d43
5cd1d43
%makeinstall
5cd1d43
%find_lang %{name}
5cd1d43
5cd1d43
gzip -9nf ${RPM_BUILD_ROOT}%{_infodir}/recode.info*
5cd1d43
5cd1d43
# remove unpackaged file from the buildroot
5cd1d43
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
5cd1d43
5cd1d43
%post
5cd1d43
/sbin/ldconfig
5cd1d43
/sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode).                        Conversion between character sets and surfaces."
5cd1d43
exit 0
5cd1d43
5cd1d43
%preun
5cd1d43
if [ $1 = 0 ]; then
5cd1d43
  /sbin/install-info --delete %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode).                        Conversion between character sets and surfaces."
5cd1d43
fi
5cd1d43
exit 0
5cd1d43
5cd1d43
%postun -p /sbin/ldconfig
5cd1d43
5cd1d43
%clean
5cd1d43
rm -rf $RPM_BUILD_ROOT
5cd1d43
5cd1d43
%files -f %{name}.lang
5cd1d43
%defattr(-,root,root)
5cd1d43
%{_mandir}/*/*
5cd1d43
%{_infodir}/recode.info*
5cd1d43
%{_bindir}/*
5cd1d43
%{_libdir}/*.so.0*
5cd1d43
5cd1d43
%files devel
5cd1d43
%defattr(-,root,root)
5cd1d43
%{_libdir}/*.a
5cd1d43
%{_libdir}/*.la
5cd1d43
%{_libdir}/*.so
5cd1d43
%{_includedir}/*
5cd1d43
5cd1d43
%changelog
4131346
* Thu May 26 2005 Bill Nottingham <notting@redhat.com> 3.6-17
4131346
- rebuild for Extras
4131346
5cd1d43
* Mon Mar 07 2005 Than Ngo <than@redhat.com> 3.6-16
5cd1d43
- cleanup
5cd1d43
5cd1d43
* Sat Mar 05 2005 Than Ngo <than@redhat.com> 3.6-15
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 3.6-14
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Fri Feb 13 2004 Than Ngo <than@redhat.com> 3.6-11 
5cd1d43
- add a patch file from kota@szbk.u-szeged.hu (bug #115524)
5cd1d43
5cd1d43
* Thu Nov 20 2003 Thomas Woerner <twoerner@redhat.com> 3.6-10
5cd1d43
- Fixed RPATH (missing make in %%build)
5cd1d43
5cd1d43
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
5cd1d43
- rebuilt
5cd1d43
5cd1d43
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 3.6-7
5cd1d43
- rebuild on all arches
5cd1d43
- remove unpackaged file from the buildroot
5cd1d43
5cd1d43
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
5cd1d43
- automated rebuild
5cd1d43
5cd1d43
* Thu May 23 2002 Tim Powers <timp@redhat.com>
5cd1d43
- automated rebuild
5cd1d43
5cd1d43
* Mon Apr 15 2002 Bill Nottingham <notting@redhat.com> 3.6-4
5cd1d43
- add ldconfig %post/%postun
5cd1d43
5cd1d43
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 3.6-3
5cd1d43
- rebuild
5cd1d43
5cd1d43
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
5cd1d43
- automated rebuild
5cd1d43
5cd1d43
* Tue Nov 13 2001 Than Ngo <than@redhat.com> 3.6-1
5cd1d43
- initial RPM for 8.0