fe9071f
Summary: Tool for decoding raw image data from digital cameras
84e3183
Name: dcraw
811a1c8
Version: 8.91
6aac256
Release: 2%{?dist}
84e3183
Group: Applications/Multimedia
d215095
License: GPLv2+
064fe01
URL: http://cybercom.net/~dcoffin/dcraw
064fe01
Source0: http://cybercom.net/~dcoffin/dcraw/archive/dcraw-%{version}.tar.gz
064fe01
BuildRequires: gettext
84e3183
BuildRequires: libjpeg-devel
ebe807d
BuildRequires: lcms-devel
064fe01
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%__id_u -n)
84e3183
84e3183
%description
84e3183
This package contains dcraw, a command line tool to decode raw image data
84e3183
downloaded from digital cameras.
84e3183
84e3183
%prep
064fe01
%setup -q -n dcraw
84e3183
84e3183
%build
4636e8c
gcc %optflags -lm -ljpeg -llcms -DLOCALEDIR=\""%{_datadir}/locale"\" -o dcraw dcraw.c
064fe01
# build language catalogs
064fe01
for catsrc in dcraw_*.po; do
064fe01
    lang="${catsrc%.po}"
064fe01
    lang="${lang#dcraw_}"
064fe01
    msgfmt -o "dcraw_${lang}.mo" "$catsrc"
064fe01
done
84e3183
84e3183
%install
84e3183
rm -rf %buildroot
bccf109
install -d -m 0755 %{buildroot}%{_bindir}
84e3183
install -m 0755 dcraw %{buildroot}%{_bindir}
064fe01
064fe01
# install language catalogs
064fe01
for catalog in dcraw_*.mo; do
064fe01
    lang="${catalog%.mo}"
064fe01
    lang="${lang#dcraw_}"
064fe01
    install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES"
064fe01
    install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo"
064fe01
done
064fe01
064fe01
install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
2b7ef7d
install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1
064fe01
# localized manpages
064fe01
for manpage in dcraw_*.1; do
064fe01
    lang="${manpage%.1}"
064fe01
    lang="${lang#dcraw_}"
064fe01
    install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1"
064fe01
    install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1"
064fe01
done
84e3183
fe9071f
%find_lang %{name}
fe9071f
84e3183
%clean
84e3183
rm -rf %buildroot
84e3183
fe9071f
%files -f %{name}.lang
84e3183
%defattr(-, root, root)
84e3183
%{_bindir}/dcraw
84e3183
%{_mandir}/man1/*
064fe01
%{_mandir}/*/man1/*
84e3183
84e3183
%changelog
6aac256
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.91-2
6aac256
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
6aac256
811a1c8
* Mon Mar 02 2009 Nils Philippsen <nils@redhat.com> - 8.91-1
811a1c8
- version 8.91
811a1c8
daef450
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.89-2
daef450
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
daef450
617c919
* Thu Nov 27 2008 Nils Philippsen <nphilipp@redhat.com> - 8.89-1
617c919
- version 8.89
617c919
- remove obsolete gps patch
617c919
8b85058
* Mon Feb 25 2008 Nils Philippsen <nphilipp@redhat.com> - 8.82-1
8b85058
- version 8.82
8b85058
0230d7f
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 8.81-2
0230d7f
- Autorebuild for GCC 4.3
0230d7f
41f5a94
* Mon Jan 14 2008 Nils Philippsen <nphilipp@redhat.com> - 8.81-1
41f5a94
- version 8.81
41f5a94
- add support for GPS data (#428600, patch by Ulrich Drepper)
41f5a94
d215095
* Fri Nov 30 2007 Nils Philippsen <nphilipp@redhat.com> - 8.80-1
d215095
- version 8.80
d215095
- change license tag to GPLv2+
d215095
a82a95a
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-2
a82a95a
- rebuild with pristine source tarball
a82a95a
0f41095
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.77-1
0f41095
- version 8.77
0f41095
fe9071f
* Mon Feb 05 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-2
fe9071f
- fix summary, use %%find_lang (#225678)
fe9071f
064fe01
* Thu Feb 01 2007 Nils Philippsen <nphilipp@redhat.com> - 8.53-1
064fe01
- upstream finally has a tarball, use that and its version (#209016)
064fe01
- use dist tag
064fe01
e52bce9
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20060521-1.1
e52bce9
- rebuild
e52bce9
8475e4a
* Tue May 23 2006 Nils Philippsen <nphilipp@redhat.com> - 0.0.20060521-1
8475e4a
- program and manpage version of 2006-05-21
8475e4a
- use %%optflags
8475e4a
- change license tag to GPL
ebe807d
- use lcms
8475e4a
bea10a6
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.2
bea10a6
- bump again for double-long bug on ppc(64)
bea10a6
ce542ae
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.0.20051211-1.1
ce542ae
- rebuilt for new gcc4.1 snapshot and glibc changes
ce542ae
c03b268
* Wed Dec 14 2005 Nils Philippsen <nphilipp@redhat.com>
c03b268
- version of 2005-12-11
c03b268
- manpage of 2005-09-29
c03b268
197d2ef
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
197d2ef
- rebuilt
197d2ef
ee7ccc7
* Wed Mar 02 2005 Nils Philippsen <nphilipp@redhat.com>
ee7ccc7
- version of 2005-02-27
ee7ccc7
- manpage of 2005-01-19
ee7ccc7
84e3183
* Wed Dec 01 2004 Nils Philippsen <nphilipp@redhat.com>
84e3183
- version of 2004-11-28
84e3183
- initial build