- updated gettext BR
[packages/dcraw.git] / dcraw.spec
CommitLineData
d43bc21d
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
390382de 7Version: 9.22
eaf1169b 8Release: 1
69e14f7e 9Epoch: 1
0b4b83e2 10License: Free + GPL v2+ (for some parts of code)
2132a8ae 11Group: Applications/Graphics
392255bc 12Source0: http://www.cybercom.net/~dcoffin/dcraw/archive/%{name}-%{version}.tar.gz
390382de 13# Source0-md5: de1e7e36368228f7b5dbe062e9d8dac7
15371eba 14Source1: http://www.cybercom.net/~dcoffin/dcraw/clean_crw.c
914f015e 15# NoSource1-md5: 37b386fef86eef8768965e91ea0be9e6
15371eba 16Source2: http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
a73d1a74 17# NoSource2-md5: 6d503302bb06f25d58ba031a54206f3b
15371eba 18Source3: http://www.cybercom.net/~dcoffin/dcraw/fuji_green.c
a73d1a74 19# NoSource3-md5: c100db2b972b68b44659ddd5740d016f
611e7bb3 20URL: http://www.cybercom.net/~dcoffin/dcraw/
75f9bf28 21BuildRequires: gettext-tools
e288bae6 22BuildRequires: jasper-devel
80f80556 23BuildRequires: lcms-devel
f002fa5c 24BuildRequires: libjpeg-devel
635352d0 25Requires: FHS > 2.3-18
611e7bb3 26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
5001d85a
PS
29Dcraw is a program that decodes any raw image from digital cameras and
30produces portable pixel map (PPM).
611e7bb3 31
c1df3fab 32%description -l pl.UTF-8
0b4b83e2
JB
33Dcraw jest programem, który dekoduje zapisane w formacie surowym (raw)
34zdjęcia z aparatów cyfrowych i tworzy z nich pliki w formacie PPM
35(Portable Pixel Map - przenośna mapa pikseli).
611e7bb3 36
37%prep
392255bc 38%setup -q -n %{name}
15371eba 39cp %{SOURCE1} .
69e14f7e
PG
40cp %{SOURCE2} .
41cp %{SOURCE3} .
611e7bb3 42
43%build
e288bae6 44%{__cc} %{rpmldflags} -o dcraw %{rpmcflags} -Wall -DLOCALEDIR=\"%{_datadir}/locale/\" dcraw.c -lm -ljasper -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
50rm -rf $RPM_BUILD_ROOT
51install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
52
398a036d 53install dcraw clean_crw fujiturn fuji_green $RPM_BUILD_ROOT%{_bindir}
15371eba 54install dcraw.1 $RPM_BUILD_ROOT%{_mandir}/man1
392255bc 55
0b4b83e2
JB
56for lpo in dcraw_*.po ; do
57 bname=$(basename $lpo .po)
58 lang=${bname#dcraw_}
392255bc 59 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES
0b4b83e2 60 msgfmt -o $RPM_BUILD_ROOT%{_datadir}/locale/$lang/LC_MESSAGES/dcraw.mo $lpo
392255bc 61done
0b4b83e2
JB
62for lman in dcraw_*.1 ; do
63 bname=$(basename $lman .1)
64 lang=${bname#dcraw_}
868a5dad 65 install -d $RPM_BUILD_ROOT%{_mandir}/$lang/man1
0b4b83e2 66 cp -p $lman $RPM_BUILD_ROOT%{_mandir}/$lang/man1/dcraw.1
868a5dad 67done
0b4b83e2 68
15371eba
PG
69%find_lang %{name}
70
611e7bb3 71%clean
72rm -rf $RPM_BUILD_ROOT
73
15371eba 74%files -f %{name}.lang
611e7bb3 75%defattr(644,root,root,755)
0b4b83e2
JB
76%attr(755,root,root) %{_bindir}/dcraw
77%attr(755,root,root) %{_bindir}/clean_crw
78%attr(755,root,root) %{_bindir}/fujiturn
79%attr(755,root,root) %{_bindir}/fuji_green
80%{_mandir}/man1/dcraw.1*
81%lang(ca) %{_mandir}/ca/man1/dcraw.1*
82%lang(cs) %{_mandir}/cs/man1/dcraw.1*
83%lang(cs) %{_mandir}/da/man1/dcraw.1*
84%lang(de) %{_mandir}/de/man1/dcraw.1*
85%lang(eo) %{_mandir}/eo/man1/dcraw.1*
86%lang(es) %{_mandir}/es/man1/dcraw.1*
87%lang(fr) %{_mandir}/fr/man1/dcraw.1*
88%lang(hu) %{_mandir}/hu/man1/dcraw.1*
89%lang(it) %{_mandir}/it/man1/dcraw.1*
90%lang(pl) %{_mandir}/pl/man1/dcraw.1*
91%lang(pt) %{_mandir}/pt/man1/dcraw.1*
92%lang(ru) %{_mandir}/ru/man1/dcraw.1*
93%lang(sv) %{_mandir}/sv/man1/dcraw.1*
94%lang(zh_CN) %{_mandir}/zh_CN/man1/dcraw.1*
95%lang(zh_TW) %{_mandir}/zh_TW/man1/dcraw.1*
This page took 0.154916 seconds and 4 git commands to generate.