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