File argyllcms.spec of Package argyllcms

Name:           argyll
Version:        1.0.3
Release:        1
License:        GPLv3
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  jam
BuildRequires:  libusb-devel, xorg-x11-devel, libtiff-devel
Source0:        %{name}-%{version}.tar.bz2
Group:          Productivity/Graphics/Others
Summary:        ArgyllCMS

%description
Argyll is an open source, ICC compatible color management system. It supports accurate ICC profile creation for scanners, CMYK printers, film recorders and calibration and profiling of displays.

%prep
%setup -q

%build
chmod a+x makeall.sh makeinstall.sh
./makeall.sh
./makeinstall.sh


%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
rm ./bin/License.txt 
mv ./ref/RefMediumGamut.gam $RPM_BUILD_ROOT%{_datadir}/%{name}
cp ./bin/* $RPM_BUILD_ROOT%{_bindir}

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc License.txt
%{_bindir}/* 
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%changelog
openSUSE Build Service is sponsored by