Copy from graphics/dcraw based on submit request 39408 from user bruclik OBS-URL: https://build.opensuse.org/request/show/39408 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/dcraw?expand=0&rev=11
91 lines
2.7 KiB
RPMSpec
91 lines
2.7 KiB
RPMSpec
#
|
|
# spec file for package dcraw (Version 1.432)
|
|
#
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
|
|
|
|
Name: dcraw
|
|
BuildRequires: libjpeg-devel liblcms-devel
|
|
Version: 1.432
|
|
Release: 1
|
|
License: PERMISSIVE-OSI-COMPLIANT
|
|
Group: Productivity/Graphics/Convertors
|
|
Url: http://www.cybercom.net/~dcoffin/dcraw/
|
|
Summary: Raw Digital Photo Decoding
|
|
# NOTE: call "sh update_dcraw" to update to latest version.
|
|
Source: http://www.cybercom.net/~dcoffin/dcraw/dcraw.c
|
|
Source1: http://www.cybercom.net/~dcoffin/dcraw/dcraw.1
|
|
Source2: README
|
|
Source3: README.SuSE
|
|
Source4: badpixels
|
|
Source5: http://www.cybercom.net/~dcoffin/dcraw/dcwrap
|
|
Source7: http://www.cybercom.net/~dcoffin/dcraw/fujiturn.c
|
|
Source8: http://www.cybercom.net/~dcoffin/dcraw/parse.c
|
|
Source9: update_dcraw
|
|
Patch: dcraw-omp.patch
|
|
AutoReqProv: on
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
Command line tools for raw digital photo decoding and processing.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Dave Coffin
|
|
|
|
%prep
|
|
%setup -q -n . -D -T 0
|
|
cp -a %SOURCE0 %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 %SOURCE5 %SOURCE7 %SOURCE8 .
|
|
%patch
|
|
mv badpixels .badpixels
|
|
|
|
%build
|
|
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
|
|
%if %suse_version > 1000
|
|
export CFLAGS="$CFLAGS -fstack-protector-all"
|
|
%endif
|
|
for file in *.c ; do
|
|
LDFLAGS=
|
|
if test $file = dcraw.c ; then
|
|
LDFLAGS="-lm -ljpeg -llcms"
|
|
# gcc $CFLAGS -fopenmp -o ${file%.c}-omp $file $LDFLAGS
|
|
fi
|
|
gcc $CFLAGS -o ${file%.c} $file $LDFLAGS
|
|
done
|
|
|
|
%install
|
|
mkdir -p $RPM_BUILD_ROOT/%_bindir
|
|
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
|
|
install -m 0755 dcraw $RPM_BUILD_ROOT/%_bindir/
|
|
# install -m 0755 dcraw-omp $RPM_BUILD_ROOT/%_bindir/
|
|
install -m 0644 dcraw.1 $RPM_BUILD_ROOT/%_mandir/man1/
|
|
install -m 0755 parse $RPM_BUILD_ROOT/%_bindir/dcparse
|
|
install -m 0755 fujiturn $RPM_BUILD_ROOT/%_bindir/
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc README README.SuSE .badpixels dcwrap
|
|
%_bindir/*
|
|
%doc %_mandir/man*/*
|
|
|
|
%changelog
|