File recode.spec of Package recode
#
# spec file for package recode
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: recode
BuildRequires: libtool
# it looks like automake-1.13.1 now also needs makeinfo installed...
BuildRequires: makeinfo
# bug437293
%ifarch ppc64
Obsoletes: recode-64bit
%endif
#
Version: 3.6
Release: 0
Summary: Character Set Converter
License: GPL-2.0+ and LGPL-2.1+
Group: Productivity/Text/Convertors
Url: http://recode.progiciels-bpi.ca/
Source: ftp://ftp.gnu.org/pub/old-gnu/recode/recode-%{version}.tar.gz
Source1: cs_recode.po
Source2: baselibs.conf
Patch0: recode-%{version}.patch
Patch1: recode-%{version}-locale.patch
Patch2: recode-%{version}-task.patch
Patch3: recode-%{version}-gettext.patch
Patch4: recode-gcc43.patch
Patch5: recode-%{version}-memleak.patch
Patch6: recode-3.6-fix-flex-m4.patch
Patch7: recode-3.6-segfault.patch
Patch8: recode-3.6-automake.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %install_info_prereq
%description
This package converts various character sets.
Authors:
--------
Francois Pinard <pinard@iro.umontreal.ca>
%package devel
Summary: Character Set Converter
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
# bug437293
%ifarch ppc64
Obsoletes: recode-devel-64bit
%endif
#
%description devel
This package converts various character sets.
Authors:
--------
Francois Pinard <pinard@iro.umontreal.ca>
%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5 -p1
%patch6 -p1
%patch7 -p0
%patch8 -p1
cp -v %{S:1} i18n/cs.po
rm m4/{lcmessage.m4,libtool.m4}
rm acinclude.m4
# new autoconf-1.13.1 removed old macro
sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/' configure.in
%build
autoreconf -fiv
%configure --with-pic --disable-static --without-included-gettext
%{__make} %{?_smp_mflags}
%check
make check
%install
make install DESTDIR=$RPM_BUILD_ROOT
#found empty dependency_libs variable. please remove
rm -f %{buildroot}%{_libdir}/librecode.la
%find_lang %{name}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
/sbin/ldconfig
%postun
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
/sbin/ldconfig
%files -f %{name}.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS BACKLOG COPYING COPYING-LIB NEWS README THANKS TODO ChangeLog
%{_mandir}/man1/*
%{_infodir}/recode*
%{_bindir}/recode
%{_libdir}/librecode.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/librecode.so
%changelog