version 9.01 color man page files with %lang()

This commit is contained in:
Nils Philippsen 2010-06-02 15:41:44 +00:00
parent 2529aa0e0f
commit 939bedbced
3 changed files with 11 additions and 5 deletions

View File

@ -1 +1 @@
dcraw-8.99.tar.gz dcraw-9.01.tar.gz

View File

@ -1,6 +1,6 @@
Summary: Tool for decoding raw image data from digital cameras Summary: Tool for decoding raw image data from digital cameras
Name: dcraw Name: dcraw
Version: 8.99 Version: 9.01
Release: 1%{?dist} Release: 1%{?dist}
Group: Applications/Multimedia Group: Applications/Multimedia
License: GPLv2+ License: GPLv2+
@ -43,11 +43,14 @@ done
install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1 install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1
# localized manpages # localized manpages
rm -f %{name}-man-files
touch %{name}-man-files
for manpage in dcraw_*.1; do for manpage in dcraw_*.1; do
lang="${manpage%.1}" lang="${manpage%.1}"
lang="${lang#dcraw_}" lang="${lang#dcraw_}"
install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1" install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1"
install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1" install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1"
echo "%%lang($lang) %%{_mandir}/${lang}/man1/*" >> %{name}-man-files
done done
%find_lang %{name} %find_lang %{name}
@ -55,13 +58,16 @@ done
%clean %clean
rm -rf %buildroot rm -rf %buildroot
%files -f %{name}.lang %files -f %{name}.lang -f %{name}-man-files
%defattr(-, root, root) %defattr(-, root, root)
%{_bindir}/dcraw %{_bindir}/dcraw
%{_mandir}/man1/* %{_mandir}/man1/*
%{_mandir}/*/man1/*
%changelog %changelog
* Wed Jun 02 2010 Nils Philippsen <nils@redhat.com> - 9.01-1
- version 9.01
- color man page files with %%lang()
* Fri Feb 12 2010 Nils Philippsen <nils@redhat.com> - 8.99-1 * Fri Feb 12 2010 Nils Philippsen <nils@redhat.com> - 8.99-1
- version 8.99 - version 8.99

View File

@ -1 +1 @@
b6469a5ac64ac6e974022b00f09fb465 dcraw-8.99.tar.gz 87fe9393f8d9d65971169920f8b78cda dcraw-9.01.tar.gz