- switch to tarball, add more manuals - NFY
[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:        8.74
8 Epoch:          1
9 Release:        0.2
10 License:        Free + GPL (for some parts of code)
11 Group:          Applications
12 Source0:        http://www.cybercom.net/~dcoffin/dcraw/archive/%{name}-%{version}.tar.gz
13 # Source0-md5:  c7db9ea7c7574f2c39ee24c5ae2f2565
14 ####Source0:    http://www.cybercom.net/~dcoffin/dcraw/dcraw.c
15 #Source1:       http://www.cybercom.net/~dcoffin/dcraw/dcraw.1# NoSource1-md5:  cecee38561cef4cf83726b38da8fd85d
16 Source2:        http://www.cybercom.net/~dcoffin/dcraw/clean_crw.c
17 # NoSource2-md5:        37b386fef86eef8768965e91ea0be9e6
18 Source3:        http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
19 # NoSource3-md5:        bc4a56184a338f6c181b19535ba328a0
20 Source4:        http://www.cybercom.net/~dcoffin/dcraw/fuji_green.c
21 # NoSource4-md5:        25c05a032d3eaf094b30b5b85feca78f
22 URL:            http://www.cybercom.net/~dcoffin/dcraw/
23 BuildRequires:  gettext-devel
24 BuildRequires:  lcms-devel
25 BuildRequires:  libjpeg-devel
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Dcraw is a program that decodes any raw image from digital cameras and
30 produces portable pixel map (PPM).
31
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).
35
36 %prep
37 #%setup -qcT
38 %setup -q -n %{name}
39 #cp %{SOURCE0} .
40 cp %{SOURCE2} .
41 cp %{SOURCE3} .
42 cp %{SOURCE4} .
43
44 %build
45 #FIXME
46 #%{__cc} %{rpmldflags} -o dcraw %{rpmcflags} -Wall -DLOCALEDIR="%{_datadir}/locale/" dcraw.c -lm -ljpeg -llcms
47 #%{__cc} %{rpmldflags} -o clean_crw %{rpmcflags} -Wall -DLOCALEDIR="%{_datadir}/locale/" clean_crw.c
48 #%{__cc} %{rpmldflags} -o fujiturn %{rpmcflags} -Wall -DLOCALEDIR="%{_datadir}/locale/" fujiturn.c -D_16BIT
49 #%{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} -Wall -DLOCALEDIR="%{_datadir}/locale/" fuji_green.c -lm
50 %{__cc} %{rpmldflags} -o dcraw %{rpmcflags} -Wall dcraw.c -lm -ljpeg -llcms
51 %{__cc} %{rpmldflags} -o clean_crw %{rpmcflags} -Wall clean_crw.c
52 %{__cc} %{rpmldflags} -o fujiturn %{rpmcflags} -Wall fujiturn.c -D_16BIT
53 %{__cc} %{rpmldflags} -o fuji_green %{rpmcflags} -Wall fuji_green.c -lm
54
55 %install
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
58
59 install dcraw clean_crw fujiturn fuji_green $RPM_BUILD_ROOT%{_bindir}
60
61 # Some fancy way for making this list automagically is needed, maybe:
62 for lang in eo ru fr it de pt es zh_TW zh_CN nl pl hu; do
63         install -d $RPM_BUILD_ROOT%{_mandir}/$lang/man1
64         cp dcraw_$lang.1 $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1
65         install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
66         msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
67 done
68
69 %clean
70 rm -rf $RPM_BUILD_ROOT
71
72 %files
73 %defattr(644,root,root,755)
74 %attr(755,root,root) %{_bindir}/*
75 %{_mandir}/man1/*
This page took 0.067766 seconds and 3 git commands to generate.