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