File xcalib.spec of Package xcalib
# norootforbuild
Name: xcalib
Summary: xcalib is a small application to load profiles for your monitor.
Version: 0.8
Release: 1
Source0: %{name}-source-%{version}.tar.bz2
Patch0: xcalib-makefile.patch
URL: http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/
Group: System/Configuration/Hardware
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
License: GPL
Autoreqprov: on
BuildRequires: pkg-config
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
BuildRequires: xorg-x11-devel libXext-devel libXxf86vm-devel xorg-x11-proto-devel
%endif
%if 0%{?mandriva_version} >= 2007
BuildRequires: x11-proto-devel libx11-devel libxxf86vm-devel
%endif
%if 0%{?suse_version} >= 1020
BuildRequires: xorg-x11-proto-devel xorg-x11-libX11-devel xorg-x11-devel
%endif
%if 0%{?suse_version} >= 930
BuildRequires: xorg-x11-devel
%endif
%if "%_repository" == "SUSE_Linux_10.1" || "%_repository" == "SLE_10"
BuildRequires: xorg-x11-compat70-devel
%endif
%description
xcalib applies the 'vcgt'-tag of ICC profiles to your X-server
like MS-Windows or MacOS can to set your display to a calibrated state.
Versions 0.5 and higher are also usable with Microsoft Windows.
They can be used as a free alternative to other calibration loaders.
Authors:
Stefan Doehla
%package profiles
Summary: ICC profiles for testing with xcalib
Group: Applications/Graphics
%description profiles
xcalib profiles are special profiles for use xcalib
Authors:
Stefan Doehla
%prep
#%setup -q -a 0
%setup -q
%patch -p1
export CFLAGS="$RPM_OPT_FLAGS"
%build
make xcalib
%install
rm -rf $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT
mkdir $RPM_BUILD_ROOT/usr
mkdir $RPM_BUILD_ROOT/usr/bin
cp xcalib $RPM_BUILD_ROOT/usr/bin/xcalib
mkdir -p $RPM_BUILD_ROOT%{_datadir}/color/icc/
cp -v *.icc $RPM_BUILD_ROOT%{_datadir}/color/icc/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(0644,root,root, 0755)
%doc README README.profilers COPYING
%defattr(0755,root,root)
%{_bindir}/xcalib
%files profiles
%defattr(-,root,root)
%dir %{_datadir}/color/
%dir %{_datadir}/color/icc/
%{_datadir}/color/icc/bluish.icc
%{_datadir}/color/icc/gamma_1_0.icc
%{_datadir}/color/icc/gamma_2_2_bright.icc
%{_datadir}/color/icc/gamma_2_2.icc
%{_datadir}/color/icc/gamma_2_2_lowContrast.icc
%doc README README.profilers COPYING
%changelog -n
* Wed Oct 15 2008 - hfiguiere@novell.com
- build on SLE10 too
* Fri Jun 6 2008 - hfiguiere@novell.com
- fixed spec file.
* Thu Apr 24 2008 - P. Linnell <mrodcs at scribus.info>
- fix build on CentOS and RHEL
* Mon Aug 27 2007 - P. Linnell <mrodcs at scribus.info>
- 0.8 release
-applied gl.tter's patch for Win32 multi-monitor support
-applied bleader's patch for FGLRX multi-monitor support
-added support for LUTs bigger than in the profile linear interpolation is used for creating the values in between
-Cchanged -n parameter: now the size of the simulated LUT must be given after -n/-noaction paramter
* Sun Jul 29 2007 - P. Linnell <mrodcs at scribus.info>
- try to fix more cross platform BuildRequires
* Sun Jun 24 2007 - P. Linnell <mrodcs at scribus.info>
- first build server package
- make 2nd package with the profiles in openicc directory