source: projects/specs/trunk/d/dcraw/dcraw-vl.spec @ 9427

Revision 9427, 4.4 KB checked in by inagaki, 9 years ago (diff)

2015-03-10 Ryoichi INAGAKI <ryo1@…>

  • dcraw, fotoxx, ufraw: updated


Line 
1Summary: Tool for decoding raw image data from digital cameras
2Summary(ja): デジタルカメラの RAW 画像データをデコードするツール
3Name: dcraw
4Version: 9.24.4
5Release: 1%{?_dist_release}
6Group: Applications/Multimedia
7License: GPLv2+
8URL: http://cybercom.net/~dcoffin/dcraw
9Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz
10Patch0: dcraw-9.19-CVE-2013-1438.patch
11Patch1: dcraw-9.21-lcms2-error-reporting.patch
12
13BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14BuildRequires: gettext
15BuildRequires: libjpeg-devel
16BuildRequires: lcms2-devel
17BuildRequires: jasper-devel
18
19%description
20This package contains dcraw, a command line tool to decode raw image data
21downloaded from digital cameras.
22
23%prep
24%setup -q -n dcraw
25%patch0 -p1 -b .CVE-2013-1438
26%patch1 -p1 -b .lcms2-error-reporting
27
28%build
29gcc %optflags -lm -ljasper -ljpeg -llcms2 -DLOCALEDIR=\""%{_datadir}/locale"\" -o dcraw dcraw.c
30# build language catalogs
31for catsrc in dcraw_*.po; do
32    lang="${catsrc%.po}"
33    lang="${lang#dcraw_}"
34    msgfmt -o "dcraw_${lang}.mo" "$catsrc"
35done
36
37%install
38rm -rf %buildroot
39install -d -m 0755 %{buildroot}%{_bindir}
40install -m 0755 dcraw %{buildroot}%{_bindir}
41
42# install language catalogs
43for catalog in dcraw_*.mo; do
44    lang="${catalog%.mo}"
45    lang="${lang#dcraw_}"
46    install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES"
47    install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo"
48done
49
50install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
51install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1
52# localized manpages
53for manpage in dcraw_*.1; do
54    lang="${manpage%.1}"
55    lang="${lang#dcraw_}"
56    install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1"
57    install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1"
58done
59
60%find_lang %{name}
61
62%clean
63rm -rf %buildroot
64
65%files -f %{name}.lang
66%defattr(-, root, root)
67%{_bindir}/dcraw
68%{_mandir}/man1/*
69%{_mandir}/*/man1/*
70
71%changelog
72* Tue Mar 10 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 9.24.4-1
73- update to 9.24.4
74- add BuildRequires: lcms2-devel instead of lcms-devel
75
76* Sat Jun 16 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 9.12-1
77- update to 9.12
78- add BuildRequires: jasper-devel
79
80* Thu Jun 11 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 8.91-1
81- initial build for Vine Linux
82
83* Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> - 8.91-1
84- version 8.91
85
86* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.89-2
87- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
88
89* Thu Nov 27 2008 Nils Philippsen <nphilipp@redhat.com> - 8.89-1
90- version 8.89
91- remove obsolete gps patch
92
93* Mon Feb 25 2008 Nils Philippsen <nphilipp@redhat.com> - 8.82-1
94- version 8.82
95
96* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 8.81-2
97- Autorebuild for GCC 4.3
98
99* Mon Jan 14 2008 Nils Philippsen <nphilipp@redhat.com> - 8.81-1
100- version 8.81
101- add support for GPS data (#428600, patch by Ulrich Drepper)
102
103* Fri Nov 30 2007 Nils Philippsen <nphilipp@redhat.com> - 8.80-1
104- version 8.80
105- change license tag to GPLv2+
106
107* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-2
108- rebuild with pristine source tarball
109
110* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-1
111- version 8.77
112
113* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-2
114- fix summary, use %%find_lang (#225678)
115
116* Thu Feb 01 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-1
117- upstream finally has a tarball, use that and its version (#209016)
118- use dist tag
119
120* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20060521-1.1
121- rebuild
122
123* Tue May 23 2006 Nils Philippsen <nphilipp@redhat.com> - 0.0.20060521-1
124- program and manpage version of 2006-05-21
125- use %%optflags
126- change license tag to GPL
127- use lcms
128
129* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.2
130- bump again for double-long bug on ppc(64)
131
132* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.1
133- rebuilt for new gcc4.1 snapshot and glibc changes
134
135* Wed Dec 14 2005 Nils Philippsen <nphilipp@redhat.com>
136- version of 2005-12-11
137- manpage of 2005-09-29
138
139* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
140- rebuilt
141
142* Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com>
143- version of 2005-02-27
144- manpage of 2005-01-19
145
146* Wed Dec 01 2004 Nils Philippsen <nphilipp@redhat.com>
147- version of 2004-11-28
148- initial build
Note: See TracBrowser for help on using the repository browser.