# help2man is executed from ./src/Makefile if main.c or configure.ac is newer
# than recode.1.
BuildRequires: make
BuildRequires: libtool
BuildRequires: texinfo
# Tests:
BuildRequires: python3-Cython
BuildRequires: python3-devel >= 3.7.5
%description
%description
The `recode' converts files between character sets and usages.
The recode tool and library convert files between character sets and surfaces.
It recognizes or produces nearly 150 different character sets
It recognizes or produces over 200 different character sets (or about 300 if
and is able to transliterate files between almost any pair. When exact
combined with an iconv library) and transliterates files between almost any
transliteration are not possible, it may get rid of the offending
pair. When exact transliteration is not possible, it gets rid of the offending
characters or fall back on approximations. Most RFC 1345 character sets
character or falls back on an approximations.
are supported.
%package devel
%package devel
Summary: Header files for development using recode
Summary: Header files for development using recode library
Group: Development/Libraries
# Header files are LGPLv3+
Requires: %{name}%{?_isa} = %{version}-%{release}
License: LGPLv3+
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
%description devel
The `recode' library converts files between character sets and usages.
This package provides the header files for a recode library.
The library recognizes or produces nearly 150 different character sets
and is able to transliterate files between almost any pair. When exact
transliteration are not possible, it may get rid of the offending
characters or fall back on approximations. Most RFC 1345 character sets
are supported.
%prep
%prep
%setup -q
%setup -q
%patch0 -p1
%patch0 -p1
%patch1 -p1 -b .getcwd
autoreconf -fi
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
rm m4/libtool.m4
rm acinclude.m4
%build
%build
autoreconf -fiv
export PYTHON=%{__python3}
%configure --disable-static
%configure \
make %{?_smp_mflags}
--without-dmalloc \
--disable-gcc-warnings \
--enable-largefile \
--enable-nls \
--disable-rpath \
--enable-shared \
--disable-static
%{make_build}
%check
%check
make check
make check
%install
%install
%makeinstall
%{make_install}
%find_lang %{name}
%find_lang %{name}
# remove unpackaged file from the buildroot
# remove unpackaged file from the buildroot
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
rm -r $RPM_BUILD_ROOT%{_infodir}/dir
# remove libtool archives
# remove libtool archives
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
rm $RPM_BUILD_ROOT%{_libdir}/*.la
%post
/sbin/ldconfig
/sbin/install-info %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode). Conversion between character sets and surfaces." || :
%preun
if [ $1 = 0 ]; then
/sbin/install-info --delete %{_infodir}/recode.info.gz %{_infodir}/dir --entry="* recode: (recode). Conversion between character sets and surfaces." || :
fi
%postun -p /sbin/ldconfig
%files -f %{name}.lang
%files -f %{name}.lang
%doc AUTHORS COPYING* ChangeLog NEWS README THANKS TODO
%license COPYING COPYING-LIB
# Changelog is not helpful
%doc AUTHORS NEWS README THANKS TODO
%{_mandir}/*/*
%{_mandir}/*/*
%{_infodir}/recode.info*
%{_infodir}/recode.info*
%{_bindir}/*
%{_bindir}/*
%{_libdir}/*.so.0*
%{_libdir}/librecode.so.3
%{_libdir}/librecode.so.3.*
%files devel
%files devel
%{_libdir}/*.so
%{_libdir}/*.so
%{_includedir}/*
%{_includedir}/*
%changelog
%changelog
* Tue Jan 16 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 3.7.11-1
- Rebuilt for MSVSphere 9.3
* Tue Feb 08 2022 Ondrej Pohorelsky <opohorel@redhat.com> - 3.7.11-1