a0b3ba
Summary: Conversion between character sets and surfaces
a0b3ba
Name: recode
a0b3ba
Version: 3.6
a0b3ba
Release: 47%{?dist}
a0b3ba
License: GPLv2+
a0b3ba
Group: Applications/File
a0b3ba
Url:    http://recode.progiciels-bpi.ca/
a0b3ba
Source: http://recode.progiciels-bpi.ca/archives/recode-%{version}.tar.gz
a0b3ba
Patch0: recode.patch
a0b3ba
Patch1: recode-3.6-getcwd.patch
a0b3ba
Patch2: recode-bool-bitfield.patch
a0b3ba
Patch3: recode-flex-m4.patch
a0b3ba
Patch4: recode-automake.patch
a0b3ba
Patch5: recode-format-security.patch
a0b3ba
Patch6: recode-longfilename.patch
a0b3ba
a0b3ba
Requires(post): /sbin/install-info
a0b3ba
Requires(post): /sbin/ldconfig
a0b3ba
Requires(preun): /sbin/install-info
a0b3ba
Requires(postun): /sbin/ldconfig
a0b3ba
a0b3ba
BuildRequires: libtool
a0b3ba
BuildRequires: texinfo
a0b3ba
a0b3ba
a0b3ba
%description
a0b3ba
The `recode' converts files between character sets and usages.
a0b3ba
It recognizes or produces nearly 150 different character sets
a0b3ba
and is able to transliterate files between almost any pair. When exact
a0b3ba
transliteration are not possible, it may get rid of the offending
a0b3ba
characters or fall back on approximations.  Most RFC 1345 character sets
a0b3ba
are supported.
a0b3ba
a0b3ba
%package devel
a0b3ba
Summary: Header files for development using recode
a0b3ba
Group: Development/Libraries
a0b3ba
Requires: %{name}%{?_isa} = %{version}-%{release}
a0b3ba
a0b3ba
%description devel
a0b3ba
The `recode' library converts files between character sets and usages.
a0b3ba
The library recognizes or produces nearly 150 different character sets
a0b3ba
and is able to transliterate files between almost any pair. When exact
a0b3ba
transliteration are not possible, it may get rid of the offending
a0b3ba
characters or fall back on approximations. Most RFC 1345 character sets
a0b3ba
are supported.
a0b3ba
a0b3ba
%prep
a0b3ba
%setup -q
a0b3ba
%patch0 -p1
a0b3ba
%patch1 -p1 -b .getcwd
a0b3ba
%patch2 -p0
a0b3ba
%patch3 -p1
a0b3ba
%patch4 -p1
a0b3ba
%patch5 -p1
a0b3ba
%patch6 -p1
a0b3ba
rm m4/libtool.m4
a0b3ba
rm acinclude.m4
a0b3ba
a0b3ba
%build
a0b3ba
autoreconf -fiv
a0b3ba
%configure --disable-static
a0b3ba
make %{?_smp_mflags}
a0b3ba
a0b3ba
%check
a0b3ba
make check
a0b3ba
a0b3ba
%install
a0b3ba
%makeinstall
a0b3ba
%find_lang %{name}
a0b3ba
a0b3ba
# remove unpackaged file from the buildroot
a0b3ba
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
a0b3ba
a0b3ba
# remove libtool archives
a0b3ba
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
a0b3ba
a0b3ba
a0b3ba
%post
a0b3ba
/sbin/ldconfig
a0b3ba
/sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode).                        Conversion between character sets and surfaces." || :
a0b3ba
a0b3ba
%preun
a0b3ba
if [ $1 = 0 ]; then
a0b3ba
  /sbin/install-info --delete %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode).                        Conversion between character sets and surfaces." || :
a0b3ba
fi
a0b3ba
a0b3ba
%postun -p /sbin/ldconfig
a0b3ba
a0b3ba
%files -f %{name}.lang
a0b3ba
%doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO
a0b3ba
%{_mandir}/*/*
a0b3ba
%{_infodir}/recode.info*
a0b3ba
%{_bindir}/*
a0b3ba
%{_libdir}/*.so.0*
a0b3ba
a0b3ba
%files devel
a0b3ba
%{_libdir}/*.so
a0b3ba
%{_includedir}/*
a0b3ba
a0b3ba
%changelog
a0b3ba
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6-47
a0b3ba
- Escape macros in %%changelog
a0b3ba
a0b3ba
* Tue Oct 03 2017 Zoltan Kota <zoltank[AT]gmail.com> - 3.6-46
a0b3ba
- Apply patch to fix bug #1422550
a0b3ba
a0b3ba
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-45
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
a0b3ba
a0b3ba
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-44
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a0b3ba
a0b3ba
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-43
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a0b3ba
a0b3ba
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.6-42
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a0b3ba
a0b3ba
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-41
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a0b3ba
a0b3ba
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-40
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a0b3ba
a0b3ba
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-39
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
a0b3ba
a0b3ba
* Wed Dec 18 2013 Jiri Popelka <jpopelka@redhat.com> - 3.6-38
a0b3ba
- Fix FTBFS if "-Werror=format-security" flag is used (#1037305).
a0b3ba
a0b3ba
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-37
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
a0b3ba
a0b3ba
* Mon Feb 25 2013 Zoltan Kota <zoltank[AT]gmail.com> 3.6-36
a0b3ba
- Fix failed Fedora_19_Mass_Rebuild [bug #914431].
a0b3ba
a0b3ba
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-35
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
a0b3ba
a0b3ba
* Mon Jul 23 2012 Zoltan Kota <zoltank[AT]gmail.com> 3.6-34
a0b3ba
- Add patch for fixing build with new automake.
a0b3ba
  (Fixes failed Fedora_18_Mass_Rebuild.)
a0b3ba
a0b3ba
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-33
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
a0b3ba
a0b3ba
* Mon May 21 2012 Zoltan Kota <zoltank[AT]gmail.com> 3.6-32
a0b3ba
- Corrected summary of the devel subpackage. Fixing bug #817947.
a0b3ba
a0b3ba
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-31
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a0b3ba
a0b3ba
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-30
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
a0b3ba
a0b3ba
* Wed Jul 7 2010 Zoltan Kota <z.kota[AT]gmx.net> 3.6-29
a0b3ba
- Fix build on x86_64. Run autoreconf to update config files.
a0b3ba
  autoconf >= 2.64 needs to patch the flex.m4 file.
a0b3ba
  Fixing FTBFS bug #564601.
a0b3ba
a0b3ba
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-28
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
a0b3ba
a0b3ba
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6-27
a0b3ba
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a0b3ba
a0b3ba
* Wed Feb 20 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 3.6-26
a0b3ba
- Autorebuild for GCC 4.3
a0b3ba
a0b3ba
* Wed Jan 16 2008 Zoltan Kota <z.kota[AT]gmx.net> 3.6-25
a0b3ba
- add patch for gcc43
a0b3ba
a0b3ba
* Wed Aug 22 2007 Zoltan Kota <z.kota[AT]gmx.net> 3.6-24
a0b3ba
- update license tag
a0b3ba
- rebuild
a0b3ba
a0b3ba
* Tue Apr 03 2007 Zoltan Kota <z.kota[AT]gmx.net> 3.6-23
a0b3ba
- rebuild
a0b3ba
a0b3ba
* Fri Sep 01 2006 Zoltan Kota <z.kota[AT]gmx.net> 3.6-22
a0b3ba
- rebuild
a0b3ba
a0b3ba
* Mon Feb 13 2006 Zoltan Kota <z.kota[AT]gmx.net> 3.6-21
a0b3ba
- rebuild
a0b3ba
a0b3ba
* Thu Dec 22 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-20
a0b3ba
- rebuild
a0b3ba
a0b3ba
* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-19
a0b3ba
- fix requires
a0b3ba
- disable static libs and remove libtool archives
a0b3ba
- add %%doc
a0b3ba
a0b3ba
* Fri Aug 26 2005 Zoltan Kota <z.kota[AT]gmx.net> 3.6-18
a0b3ba
- add dist tag
a0b3ba
- specfile cleanup
a0b3ba
a0b3ba
* Thu May 26 2005 Bill Nottingham <notting@redhat.com> 3.6-17
a0b3ba
- rebuild for Extras
a0b3ba
a0b3ba
* Mon Mar 07 2005 Than Ngo <than@redhat.com> 3.6-16
a0b3ba
- cleanup
a0b3ba
a0b3ba
* Sat Mar 05 2005 Than Ngo <than@redhat.com> 3.6-15
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Wed Feb 09 2005 Than Ngo <than@redhat.com> 3.6-14
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Fri Feb 13 2004 Than Ngo <than@redhat.com> 3.6-11 
a0b3ba
- add a patch file from kota@szbk.u-szeged.hu (bug #115524)
a0b3ba
a0b3ba
* Thu Nov 20 2003 Thomas Woerner <twoerner@redhat.com> 3.6-10
a0b3ba
- Fixed RPATH (missing make in %%build)
a0b3ba
a0b3ba
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
a0b3ba
- rebuilt
a0b3ba
a0b3ba
* Wed Dec 11 2002 Tim Powers <timp@redhat.com> 3.6-7
a0b3ba
- rebuild on all arches
a0b3ba
- remove unpackaged file from the buildroot
a0b3ba
a0b3ba
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
a0b3ba
- automated rebuild
a0b3ba
a0b3ba
* Thu May 23 2002 Tim Powers <timp@redhat.com>
a0b3ba
- automated rebuild
a0b3ba
a0b3ba
* Mon Apr 15 2002 Bill Nottingham <notting@redhat.com> 3.6-4
a0b3ba
- add ldconfig %%post/%%postun
a0b3ba
a0b3ba
* Tue Feb 26 2002 Than Ngo <than@redhat.com> 3.6-3
a0b3ba
- rebuild
a0b3ba
a0b3ba
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
a0b3ba
- automated rebuild
a0b3ba
a0b3ba
* Tue Nov 13 2001 Than Ngo <than@redhat.com> 3.6-1
a0b3ba
- initial RPM for 8.0