0b16df5
Summary: Conversion between character sets and surfaces
5cd1d43
Name: recode
5cd1d43
Version: 3.6
e58f9e1
Release: 23%{?dist}
4f1a346
License: GPLv2+
5cd1d43
Group: Applications/File
0b16df5
Source: http://recode.progiciels-bpi.ca/archives/recode-%{version}.tar.gz
0b16df5
Patch0: recode.patch
5cd1d43
Patch1: recode-3.6-getcwd.patch
0b16df5
Url: http://recode.progiciels-bpi.ca/
0b16df5
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5cd1d43
2b1fe13
Requires(post): /sbin/install-info
2b1fe13
Requires(post): /sbin/ldconfig
2b1fe13
Requires(preun): /sbin/install-info
2b1fe13
Requires(postun): /sbin/ldconfig
2b1fe13
2b1fe13
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
0b16df5
Summary: Header files and static libraries for development using recode
5cd1d43
Group: Development/Libraries
2b1fe13
Requires: %{name} = %{version}-%{release}
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
0b16df5
%patch0 -p1
5cd1d43
%patch1 -p1 -b .getcwd
5cd1d43
5cd1d43
%build
2b1fe13
%configure --disable-static
0b16df5
make %{?_smp_mflags}
5cd1d43
5cd1d43
%install
5cd1d43
rm -rf $RPM_BUILD_ROOT
5cd1d43
5cd1d43
%makeinstall
5cd1d43
%find_lang %{name}
5cd1d43
5cd1d43
# remove unpackaged file from the buildroot
5cd1d43
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
5cd1d43
2b1fe13
# remove libtool archives
2b1fe13
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
2b1fe13
2b1fe13
5cd1d43
%post
5cd1d43
/sbin/ldconfig
2748950
/sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode).                        Conversion between character sets and surfaces." || :
5cd1d43
5cd1d43
%preun
5cd1d43
if [ $1 = 0 ]; then
2748950
  /sbin/install-info --delete %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode).                        Conversion between character sets and surfaces." || :
5cd1d43
fi
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)
2748950
%doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO
5cd1d43
%{_mandir}/*/*
5cd1d43
%{_infodir}/recode.info*
5cd1d43
%{_bindir}/*
5cd1d43
%{_libdir}/*.so.0*
5cd1d43
5cd1d43
%files devel
5cd1d43
%defattr(-,root,root)
5cd1d43
%{_libdir}/*.so
5cd1d43
%{_includedir}/*
5cd1d43
5cd1d43
%changelog
e58f9e1
* Tue Apr 03 2007 Zoltan Kota <z.kota[AT]gmx.net> 3.6-23
e58f9e1
- rebuild
e58f9e1
37d0000
* Fri Sep 01 2006 Zoltan Kota <z.kota[AT]gmx.net> 3.6-22
37d0000
- rebuild
37d0000
46a6a45
* Mon Feb 13 2006 Zoltan Kota <z.kota[AT]gmx.net> 3.6-21
46a6a45
- rebuild
46a6a45
dbf0e44
* Thu Dec 22 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-20
dbf0e44
- rebuild
dbf0e44
2b1fe13
* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-19
2b1fe13
- fix requires
2b1fe13
- disable static libs and remove libtool archives
2748950
- add %%doc
2b1fe13
0b16df5
* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-18
0b16df5
- add dist tag
0b16df5
- specfile cleanup
0b16df5
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