packages: dcraw/dcraw.spec - updated to 9.05 - autodetect included translat...

qboosh qboosh at pld-linux.org
Sun Nov 14 07:44:32 CET 2010


Author: qboosh                       Date: Sun Nov 14 06:44:32 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- updated to 9.05
- autodetect included translations

---- Files affected:
packages/dcraw:
   dcraw.spec (1.47 -> 1.48) 

---- Diffs:

================================================================
Index: packages/dcraw/dcraw.spec
diff -u packages/dcraw/dcraw.spec:1.47 packages/dcraw/dcraw.spec:1.48
--- packages/dcraw/dcraw.spec:1.47	Wed Aug 25 16:12:51 2010
+++ packages/dcraw/dcraw.spec	Sun Nov 14 07:44:27 2010
@@ -5,13 +5,13 @@
 Summary:	Raw Digital Photo Decoder
 Summary(pl.UTF-8):	Dekoder zdjęć cyfrowych w formacie raw
 Name:		dcraw
-Version:	9.04
+Version:	9.05
 Release:	1
 Epoch:		1
-License:	Free + GPL (for some parts of code)
+License:	Free + GPL v2+ (for some parts of code)
 Group:		Applications/Graphics
 Source0:	http://www.cybercom.net/~dcoffin/dcraw/archive/%{name}-%{version}.tar.gz
-# Source0-md5:	b7052ef5ffe912730ad0ebe4db26e70e
+# Source0-md5:	b06ad99909ede5f1a129fa4b53d32e04
 Source1:	http://www.cybercom.net/~dcoffin/dcraw/clean_crw.c
 # NoSource1-md5:	37b386fef86eef8768965e91ea0be9e6
 Source2:	http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
@@ -30,8 +30,9 @@
 produces portable pixel map (PPM).
 
 %description -l pl.UTF-8
-Dcraw jest programem, który dekoduje zdjęcia z aparatów cyfrowych
-zapisanych w formacie raw i produkuje przenośną mapę pikseli (PPM).
+Dcraw jest programem, który dekoduje zapisane w formacie surowym (raw)
+zdjęcia z aparatów cyfrowych i tworzy z nich pliki w formacie PPM 
+(Portable Pixel Map - przenośna mapa pikseli).
 
 %prep
 %setup -q -n %{name}
@@ -40,7 +41,7 @@
 cp %{SOURCE3} .
 
 %build
-%{__cc} %{rpmldflags} -o dcraw %{rpmcflags} -Wall -DLOCALEDIR=\"%{_datadir}/locale/\" dcraw.c -lm -ljpeg -llcms
+%{__cc} %{rpmldflags} -o dcraw/dcraw %{rpmcflags} -Wall -DLOCALEDIR=\"%{_datadir}/locale/\" dcraw/dcraw.c -lm -ljpeg -llcms
 %{__cc} %{rpmldflags} -o clean_crw %{rpmcflags} -Wall clean_crw.c
 %{__cc} %{rpmldflags} -o fujiturn %{rpmcflags} -Wall fujiturn.c -D_16BIT
 %{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} -Wall fuji_green.c -lm
@@ -49,28 +50,22 @@
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 
-install dcraw clean_crw fujiturn fuji_green $RPM_BUILD_ROOT%{_bindir}
+install dcraw/dcraw clean_crw fujiturn fuji_green $RPM_BUILD_ROOT%{_bindir}
 install dcraw.1 $RPM_BUILD_ROOT%{_mandir}/man1
 
-# Some fancy way for making this list automagically is needed, maybe:
-for lang in ca cs de eo es fr hu it pl pt ru sv zh_TW ; do
-	install -d $RPM_BUILD_ROOT%{_mandir}/$lang/man1
-	cp dcraw_$lang.1 $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1
+for lpo in dcraw_*.po ; do
+	bname=$(basename $lpo .po)
+	lang=${bname#dcraw_}
 	install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
-	msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
+	msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo $lpo
 done
-
-# For this language there is only manual:
-for lang in zh_CN; do
+for lman in dcraw_*.1 ; do
+	bname=$(basename $lman .1)
+	lang=${bname#dcraw_}
 	install -d $RPM_BUILD_ROOT%{_mandir}/$lang/man1
-	cp dcraw_$lang.1 $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1
-done
-# For this language there is only translation:
-for lang in nl; do
-	install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
-	msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
+	cp -p $lman $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1
 done
-
+	
 %find_lang %{name}
 
 %clean
@@ -78,22 +73,26 @@
 
 %files -f %{name}.lang
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%{_mandir}/man1/*
-%lang(ca) %{_mandir}/ca/man1/*
-%lang(cs) %{_mandir}/cs/man1/*
-%lang(de) %{_mandir}/de/man1/*
-%lang(eo) %{_mandir}/eo/man1/*
-%lang(es) %{_mandir}/es/man1/*
-%lang(fr) %{_mandir}/fr/man1/*
-%lang(hu) %{_mandir}/hu/man1/*
-%lang(it) %{_mandir}/it/man1/*
-%lang(pl) %{_mandir}/pl/man1/*
-%lang(pt) %{_mandir}/pt/man1/*
-%lang(ru) %{_mandir}/ru/man1/*
-%lang(sv) %{_mandir}/sv/man1/*
-%lang(zh_CN) %{_mandir}/zh_CN/man1/*
-%lang(zh_TW) %{_mandir}/zh_TW/man1/*
+%attr(755,root,root) %{_bindir}/dcraw
+%attr(755,root,root) %{_bindir}/clean_crw
+%attr(755,root,root) %{_bindir}/fujiturn
+%attr(755,root,root) %{_bindir}/fuji_green
+%{_mandir}/man1/dcraw.1*
+%lang(ca) %{_mandir}/ca/man1/dcraw.1*
+%lang(cs) %{_mandir}/cs/man1/dcraw.1*
+%lang(cs) %{_mandir}/da/man1/dcraw.1*
+%lang(de) %{_mandir}/de/man1/dcraw.1*
+%lang(eo) %{_mandir}/eo/man1/dcraw.1*
+%lang(es) %{_mandir}/es/man1/dcraw.1*
+%lang(fr) %{_mandir}/fr/man1/dcraw.1*
+%lang(hu) %{_mandir}/hu/man1/dcraw.1*
+%lang(it) %{_mandir}/it/man1/dcraw.1*
+%lang(pl) %{_mandir}/pl/man1/dcraw.1*
+%lang(pt) %{_mandir}/pt/man1/dcraw.1*
+%lang(ru) %{_mandir}/ru/man1/dcraw.1*
+%lang(sv) %{_mandir}/sv/man1/dcraw.1*
+%lang(zh_CN) %{_mandir}/zh_CN/man1/dcraw.1*
+%lang(zh_TW) %{_mandir}/zh_TW/man1/dcraw.1*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -101,6 +100,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.48  2010/11/14 06:44:27  qboosh
+- updated to 9.05
+- autodetect included translations
+
 Revision 1.47  2010/08/25 14:12:51  gotar
 - upgraded to 9.04
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/dcraw/dcraw.spec?r1=1.47&r2=1.48&f=u



More information about the pld-cvs-commit mailing list