File delaboratory.spec of Package delaboratory
Name: delaboratory
Version: 0.8
Release: 0
License: GPL-3.0
Summary: Color correction utility
Url: http://code.google.com/p/delaboratory/
Group: Productivity/Graphics/Other
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: glibc-devel
BuildRequires: libtiff-devel
BuildRequires: libtool
BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: update-desktop-files
%if 0%{?suse_version} > 1130
BuildRequires: wxWidgets-devel
%else
BuildRequires: wxGTK-devel
%endif
BuildRequires: pkgconfig(libxml-2.0)
Source: %{name}-%{version}.tar.gz
Source1: delaboratory.desktop
%if 0%{?suse_version} <= 1140
Patch0: Makefile.patch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
delaboratory is a Free Software color correction utility, it allows you to modify color/contrast of your photo in a creative way - by peforming non-destructive operations in different colorspaces (RGB/BW, XYZ/LAB/LCH, CMY/CMYK, HSL/HSV) with floating-point precision per channel.
%prep
%setup -q
%if 0%{?suse_version} <= 1140
%patch0
%endif
%build
make %{?_smp_flags} OPTFLAGS="%{optflags}"
%install
install -D -m0755 delaboratory "%{buildroot}%{_bindir}/delaboratory"
%__install -D -m0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Graphics Photography
%clean
%{?buildroot:rm -rf %{buildroot}}
%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/delaboratory
%{_datadir}/applications/%{name}.desktop