man-pages-es/man-pages-es.spec

78 lines
2.2 KiB
RPMSpec

%define extra_ver 0.8a
Name: man-pages-es
Version: 1.55
Release: 4mamba
Summary: Spanish version of the Linux man-pages
Group: System/Internationalization
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.ditec.um.es/~piernas/manpages-es/
Source0: http://ditec.um.es/~piernas/manpages-es/man-pages-es-%{version}.tar.bz2
Source1: http://ditec.um.es/~piernas/manpages-es/man-pages-es-extra-%{extra_ver}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildArch: noarch
Requires: man
Requires: man-pages
Provides: man-pages-i18n-es
Obsoletes: man-pages-i18n-es <= 1.55-3mamba
Supplements: (man-pages and langpacks-es)
%description
Spanish version of the Linux man-pages.
%prep
%setup -q -n man-pages-es-%{version} -a1
chmod 644 man-pages-es-extra-%{extra_ver}/man1/modprobe.1
for i in man-pages-1.55.Announce man7/iso_8859-7.7; do
iconv -f ISO8859-15 -t UTF-8 $i -o $i.utf8
mv $i.utf8 $i
done
for j in 1 1x 2 3 4 5 6 7 8 9; do
for i in `find man-pages-es-extra-%{extra_ver} -type f -name \*.$j`; do
iconv -f ISO8859-15 -t UTF-8 $i -o $i.utf8
mv $i.utf8 $i
done
done
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%make install MANDIR=%{buildroot}%{_mandir}/es
%make -C man-pages-es-extra-%{extra_ver} MANDIR=%{buildroot}%{_mandir}/es
# remove unpackaged files
rm -f %{buildroot}%{_mandir}/es/LEEME.extra
rm -f %{buildroot}%{_mandir}/es/PAQUETES
rm -f %{buildroot}%{_mandir}/es/PROYECTO
# remove manpages already provided by other packages
rm -f %{buildroot}%{_mandir}/es/man1/mc.1
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_mandir}/es/man*/*
%changelog
* Wed Jul 21 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 1.55-4mamba
- renamed from man-pages-i18n-es
* Wed Jun 30 2021 Automatic Build System <autodist@mambasoft.it> 1.55-3mamba
- automatic rebuild by autodist
* Wed Jun 30 2021 Automatic Build System <autodist@mambasoft.it> 1.55-2mamba
- automatic rebuild by autodist
* Sat Sep 25 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.55-1mamba
- new package