]>
Commit | Line | Data |
---|---|---|
69e14f7e PG |
1 | # TODO: |
2 | # - gimp plugin | |
3 | # | |
611e7bb3 | 4 | Summary: Raw Digital Photo Decoder |
1e3b3c44 | 5 | Summary(pl.UTF-8): Dekoder zdjęć cyfrowych w formacie raw |
611e7bb3 | 6 | Name: dcraw |
914f015e | 7 | Version: 8.87 |
69e14f7e | 8 | Epoch: 1 |
f2663493 | 9 | Release: 2 |
5001d85a | 10 | License: Free + GPL (for some parts of code) |
611e7bb3 | 11 | Group: Applications |
392255bc | 12 | Source0: http://www.cybercom.net/~dcoffin/dcraw/archive/%{name}-%{version}.tar.gz |
914f015e | 13 | # Source0-md5: a8aecc8e69a6fbb1dbe0944e4c5f1a76 |
15371eba | 14 | Source1: http://www.cybercom.net/~dcoffin/dcraw/clean_crw.c |
914f015e | 15 | # NoSource1-md5: 37b386fef86eef8768965e91ea0be9e6 |
15371eba | 16 | Source2: http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c |
914f015e | 17 | # NoSource2-md5: 10e468e0eed5e772fb09f3b2590696f1 |
15371eba | 18 | Source3: http://www.cybercom.net/~dcoffin/dcraw/fuji_green.c |
914f015e | 19 | # NoSource3-md5: e801331242f2acf805c0ce00f609fe8c |
f2663493 | 20 | Patch0: %{name}-A900.patch |
611e7bb3 | 21 | URL: http://www.cybercom.net/~dcoffin/dcraw/ |
392255bc | 22 | BuildRequires: gettext-devel |
80f80556 | 23 | BuildRequires: lcms-devel |
f002fa5c | 24 | BuildRequires: libjpeg-devel |
635352d0 | 25 | Requires: FHS > 2.3-18 |
611e7bb3 | 26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
27 | ||
28 | %description | |
5001d85a PS |
29 | Dcraw is a program that decodes any raw image from digital cameras and |
30 | produces portable pixel map (PPM). | |
611e7bb3 | 31 | |
c1df3fab JR |
32 | %description -l pl.UTF-8 |
33 | Dcraw jest programem, który dekoduje zdjęcia z aparatów cyfrowych | |
34 | zapisanych w formacie raw i produkuje przenośną mapę pikseli (PPM). | |
611e7bb3 | 35 | |
36 | %prep | |
392255bc | 37 | %setup -q -n %{name} |
15371eba | 38 | cp %{SOURCE1} . |
69e14f7e PG |
39 | cp %{SOURCE2} . |
40 | cp %{SOURCE3} . | |
f2663493 | 41 | %patch0 -p1 |
611e7bb3 | 42 | |
43 | %build | |
244eb8be | 44 | %{__cc} %{rpmldflags} -o dcraw %{rpmcflags} -Wall -DLOCALEDIR=\"%{_datadir}/locale/\" dcraw.c -lm -ljpeg -llcms |
392255bc PG |
45 | %{__cc} %{rpmldflags} -o clean_crw %{rpmcflags} -Wall clean_crw.c |
46 | %{__cc} %{rpmldflags} -o fujiturn %{rpmcflags} -Wall fujiturn.c -D_16BIT | |
47 | %{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} -Wall fuji_green.c -lm | |
611e7bb3 | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
52 | ||
69e14f7e | 53 | install dcraw clean_crw fujiturn fuji_green $RPM_BUILD_ROOT%{_bindir} |
15371eba | 54 | install dcraw.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
392255bc PG |
55 | |
56 | # Some fancy way for making this list automagically is needed, maybe: | |
0bdb534b | 57 | for lang in cs de eo es fr hu it pl pt ru zh_TW zh_CN; do |
392255bc PG |
58 | install -d $RPM_BUILD_ROOT%{_mandir}/$lang/man1 |
59 | cp dcraw_$lang.1 $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1 | |
60 | install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES | |
61 | msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po | |
62 | done | |
611e7bb3 | 63 | |
15371eba PG |
64 | %find_lang %{name} |
65 | ||
611e7bb3 | 66 | %clean |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
15371eba | 69 | %files -f %{name}.lang |
611e7bb3 | 70 | %defattr(644,root,root,755) |
71 | %attr(755,root,root) %{_bindir}/* | |
72 | %{_mandir}/man1/* | |
0bdb534b | 73 | %lang(cs) %{_mandir}/cs/man1/* |
15371eba PG |
74 | %lang(de) %{_mandir}/de/man1/* |
75 | %lang(eo) %{_mandir}/eo/man1/* | |
76 | %lang(es) %{_mandir}/es/man1/* | |
77 | %lang(fr) %{_mandir}/fr/man1/* | |
78 | %lang(hu) %{_mandir}/hu/man1/* | |
79 | %lang(it) %{_mandir}/it/man1/* | |
80 | %lang(pl) %{_mandir}/pl/man1/* | |
81 | %lang(pt) %{_mandir}/pt/man1/* | |
82 | %lang(ru) %{_mandir}/ru/man1/* | |
83 | %lang(zh_CN) %{_mandir}/zh_CN/man1/* | |
84 | %lang(zh_TW) %{_mandir}/zh_TW/man1/* |