51c3f9b85de9495f55a930b8d71803a19f7a474c
[packages/dcraw.git] / dcraw.spec
1 # TODO:
2 # - gimp plugin ?
3
4 Summary:        Raw Digital Photo Decoder
5 Summary(pl.UTF-8):      Dekoder zdjęć cyfrowych w formacie raw
6 Name:           dcraw
7 Version:        9.08
8 Release:        1
9 Epoch:          1
10 License:        Free + GPL v2+ (for some parts of code)
11 Group:          Applications/Graphics
12 Source0:        http://www.cybercom.net/~dcoffin/dcraw/archive/%{name}-%{version}.tar.gz
13 # Source0-md5:  eb1d365c27495a513c0768b2f696ba66
14 Source1:        http://www.cybercom.net/~dcoffin/dcraw/clean_crw.c
15 # NoSource1-md5:        37b386fef86eef8768965e91ea0be9e6
16 Source2:        http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
17 # NoSource2-md5:        10e468e0eed5e772fb09f3b2590696f1
18 Source3:        http://www.cybercom.net/~dcoffin/dcraw/fuji_green.c
19 # NoSource3-md5:        e801331242f2acf805c0ce00f609fe8c
20 URL:            http://www.cybercom.net/~dcoffin/dcraw/
21 BuildRequires:  gettext-devel
22 BuildRequires:  lcms-devel
23 BuildRequires:  libjpeg-devel
24 Requires:       FHS > 2.3-18
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 Dcraw is a program that decodes any raw image from digital cameras and
29 produces portable pixel map (PPM).
30
31 %description -l pl.UTF-8
32 Dcraw jest programem, który dekoduje zapisane w formacie surowym (raw)
33 zdjęcia z aparatów cyfrowych i tworzy z nich pliki w formacie PPM 
34 (Portable Pixel Map - przenośna mapa pikseli).
35
36 %prep
37 %setup -q -n %{name}
38 cp %{SOURCE1} .
39 cp %{SOURCE2} .
40 cp %{SOURCE3} .
41
42 %build
43 %{__cc} %{rpmldflags} -o dcraw %{rpmcflags} -Wall -DLOCALEDIR=\"%{_datadir}/locale/\" dcraw.c -lm -ljpeg -llcms
44 %{__cc} %{rpmldflags} -o clean_crw %{rpmcflags} -Wall clean_crw.c
45 %{__cc} %{rpmldflags} -o fujiturn %{rpmcflags} -Wall fujiturn.c -D_16BIT
46 %{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} -Wall fuji_green.c -lm
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
51
52 install dcraw clean_crw fujiturn fuji_green $RPM_BUILD_ROOT%{_bindir}
53 install dcraw.1 $RPM_BUILD_ROOT%{_mandir}/man1
54
55 for lpo in dcraw_*.po ; do
56         bname=$(basename $lpo .po)
57         lang=${bname#dcraw_}
58         install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
59         msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo $lpo
60 done
61 for lman in dcraw_*.1 ; do
62         bname=$(basename $lman .1)
63         lang=${bname#dcraw_}
64         install -d $RPM_BUILD_ROOT%{_mandir}/$lang/man1
65         cp -p $lman $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1
66 done
67         
68 %find_lang %{name}
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files -f %{name}.lang
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_bindir}/dcraw
76 %attr(755,root,root) %{_bindir}/clean_crw
77 %attr(755,root,root) %{_bindir}/fujiturn
78 %attr(755,root,root) %{_bindir}/fuji_green
79 %{_mandir}/man1/dcraw.1*
80 %lang(ca) %{_mandir}/ca/man1/dcraw.1*
81 %lang(cs) %{_mandir}/cs/man1/dcraw.1*
82 %lang(cs) %{_mandir}/da/man1/dcraw.1*
83 %lang(de) %{_mandir}/de/man1/dcraw.1*
84 %lang(eo) %{_mandir}/eo/man1/dcraw.1*
85 %lang(es) %{_mandir}/es/man1/dcraw.1*
86 %lang(fr) %{_mandir}/fr/man1/dcraw.1*
87 %lang(hu) %{_mandir}/hu/man1/dcraw.1*
88 %lang(it) %{_mandir}/it/man1/dcraw.1*
89 %lang(pl) %{_mandir}/pl/man1/dcraw.1*
90 %lang(pt) %{_mandir}/pt/man1/dcraw.1*
91 %lang(ru) %{_mandir}/ru/man1/dcraw.1*
92 %lang(sv) %{_mandir}/sv/man1/dcraw.1*
93 %lang(zh_CN) %{_mandir}/zh_CN/man1/dcraw.1*
94 %lang(zh_TW) %{_mandir}/zh_TW/man1/dcraw.1*
This page took 0.137206 seconds and 2 git commands to generate.