Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37045286
en ru br
ALT Linux repos
S:9.28.0-alt2
5.0: 8.89-alt1
4.1: 8.86-alt1
4.0: 8.77-alt1
3.0: 7.39-alt1

Group :: Graphics
RPM: dcraw

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: dcraw
Version: 9.27.0
Release: alt1

Summary: Command-line decoder for raw digital photos
License: Freely distributable
Group: Graphics

URL: http://www.cybercom.net/~dcoffin/dcraw
Source: %url/archive/dcraw-%version.tar.gz

Source3: %url/dcraw.html
Source4: %url/.badpixels
Source5: %url/ahd_maze.png
Source6: %url/vng_grid.png

BuildRequires: libjasper-devel libjpeg-devel liblcms2-devel

%description
dcraw decodes raw photos, displays metadata, and extracts thumbnails.

%prep
%setup -n dcraw

install -m644 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE6 .

%build
# -O4 shows best speed in benchmarks!
%define _optlevel 4
gcc -I/usr/include/lcms -DLOCALEDIR=\"/usr/share/locale/\" \
%optflags -o dcraw dcraw.c -ljpeg -lm -llcms2 -ljasper

%install
install -pD -m755 dcraw %buildroot%_bindir/dcraw
install -pD -m644 dcraw.1 %buildroot%_man1dir/dcraw.1

for lang in ca cs da de eo es fr hu it pl pt ru sv zh_CN zh_TW
do
 mkdir -p -m 755 %buildroot%_mandir/$lang/man1
 cp dcraw_$lang.1 %buildroot%_mandir/$lang/man1/dcraw.1
 mkdir -p -m 755 %buildroot/usr/share/locale/$lang/LC_MESSAGES
 msgfmt -o %buildroot/usr/share/locale/$lang/LC_MESSAGES/dcraw.mo dcraw_$lang.po
done
# No man page exists for Dutch localisation
 mkdir -p -m 755 %buildroot/usr/share/locale/nl/LC_MESSAGES
 msgfmt -o %buildroot/usr/share/locale/nl/LC_MESSAGES/dcraw.mo dcraw_nl.po

%find_lang --with-man dcraw

%files -f dcraw.lang
%_bindir/*
%_man1dir/*
%doc dcraw.html *.png .badpixels

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin