LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lprof.spec of Package lprof (Project openSUSE:Factory)

#
# spec file for package lprof (Version 1.11.4.1)
#
# Copyright (c) 2008 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:           lprof
BuildRequires:  libdrm-devel libtiff-devel qt3-devel-doc qt3-devel-tools scons update-desktop-files vigra-devel
Version:        1.11.4.1
Release:        203
Url:            http://lprof.sourceforge.net/
Group:          Productivity/Graphics/Other
License:        GPL-2.0+ ; LGPL-2.1+
Summary:        ICC Profiler
Source:         %{name}-%{version}.tar.bz2
Patch:          lprof-desktop.patch
Patch1:         lprof-lcms.patch
Patch2:         lprof-scons.patch
Patch3:         argyll-typo.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
LPROF is the only open source ICC profiler with a graphical user
interface. It can be used to create profiles for cameras, scanners, and
monitors, and fills a necessary niche in the emerging open source color
management effort.



Authors:
--------
    Hal Engel <hvengel@users.sourceforge.net>
    Marti Maria <marti@littlecms.com>

%prep
%setup
%patch
%patch1
%patch2
%patch3
sed -i /includehint/d */*/*.ui
(
  find -name SConstruct
  find -name SConscript
  echo lprof.pro build_config.py
  find -name Makefile
) | while read ; do
  sed -i "
s:/lib:/%_lib:g
s:\(os.path.join\|qtdir\)\(.*\)'lib':\1\2'%_lib':g
s:src/%_lib:src/lib:g
s:usr/%_lib/qt3:usr/lib/qt3:g
s/%{_lib}lprof/liblprof/g
s:%{_lib}qtlcmswidgets:libqtlcmswidgets:g
" $REPLY
done

%build
export QTDIR=/usr/lib/qt3
cat >lprof.conf <<EOF
PREFIX = '%{_prefix}'
ccflags = [$(echo $RPM_OPT_FLAGS | sed -e "s/[^ ]*/'&'/g" -e "s/ /,/g")]
cxxflags = [$(echo $RPM_OPT_FLAGS | sed -e "s/[^ ]*/'&'/g" -e "s/ /,/g")]
EOF
scons %{?jobs:-j %jobs}

%install
mkdir -p $RPM_BUILD_ROOT/usr/{bin,share/{applications,pixmaps}}
PREFIX=$RPM_BUILD_ROOT/usr scons PREFIX=$RPM_BUILD_ROOT/usr install
%suse_update_desktop_file lprof
find $RPM_BUILD_ROOT/usr/share/lprof/data -type f -print0 | xargs -0 chmod 644

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-, root, root)
%doc COPYING KNOWN_BUGS README sRGB_profile_License
/usr/bin/*
/usr/share/lprof
/usr/share/applications/*.desktop
/usr/share/pixmaps/*.png

%changelog
* Thu Oct 30 2008 sbrabec@suse.cz
- Fixed typo in argyll (bnc#440145).
* Tue Oct 14 2008 sbrabec@suse.cz
- Fix build with the latest scons.
* Sun Nov 04 2007 ro@suse.de
- fix build with lcms 1.17
* Tue Nov 07 2006 ro@suse.de
- fix data file permissions
* Fri Oct 20 2006 sbrabec@suse.cz
- Updated to version 1.11.4.1:
  * Translation support.
  * Improved pick template placement code.
  * The proofing code has been improved.
  * Uses the ArgyllCMS spline regression code.
  * Dialogs have been reworked.
  * Detects these non-conforming profiles.
  * Perform cross validation on the regression model.
  * QT QSetting API.
  * CIE based weighting for color patches.
  * Expanded the the number of items that are actively tracked.
  * Uses VIGRA for all image file IO (no longer needs TiffIO).
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 sbrabec@suse.cz
- Updated to version 1.11.2.
* Tue Jan 17 2006 sbrabec@suse.cz
- Updated to version 1.11.1.
* Fri Nov 25 2005 sbrabec@suse.cz
- New SuSE package, version 1.11.0.