Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37042264
en ru br
ALT Linux repos
S:1.19-alt6
5.0: 1.18-alt0.M50.1
4.1: 1.18-alt0.M41.1
4.0: 1.18-alt0.M40.1
3.0: 1.14-alt1
+backports:1.16-alt0.1.M30

Group :: System/Libraries
RPM: liblcms

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define rname lcms
%define major 1
%define minor 18
%define beta %nil

Name: lib%rname
Version: %major.%minor
Release: alt0.M40.1

Summary: Little cms color engine
License: LGPL
Group: System/Libraries
Url: http://www.littlecms.com

Provides: %rname = %version
Obsoletes: %rname < %version-%release


Source: %rname-%version.tar.gz
Source1: %rname-%version.map

BuildRequires: libjpeg-devel libtiff-devel zlib-devel pkg-config


%package devel
Summary: LCMS development environment
Group: Development/C
Requires: %name = %version-%release
Provides: lcms-devel = %version
Obsoletes: lcms-devel

%package devel-static
Summary: Static LCMS library
Group: Development/C
Requires: %name-devel = %version-%release

%package -n lcms-utils
Summary: Various %name-based utilities
Group: Graphics
Requires: %name = %version-%release

%description
This is a CMM engine to deal with color management stuff.

This package contains the library needed to run programs dynamically
linked with %name.

%description devel
This is a CMM engine to deal with color management stuff.

This package is only needed if you plan to develop or compile
applications which requires the LCMS library.

%description devel-static
This is a CMM engine to deal with color management stuff.

This package is only needed if you plan to develop or compile
statically linked applications which requires the LCMS library.

%description -n lcms-utils
This is a CMM engine to deal with color management stuff.

This package contains various %name-based utilities

%prep
%setup -q -n %rname-%version
install -m 0644 %SOURCE1 src/version-script.map
sed -i "s|^LIBRARY_CURRENT=.*$|LIBRARY_CURRENT=%major|" configure.ac
sed -i "s|^LIBRARY_REVISION=.*$|LIBRARY_REVISION=%minor|" configure.ac
find . -type f -exec chmod -x {} ';'
chmod a+x ./configure
r=$(echo -e \\r)
sed -i "s/$r//g;s/^AC_PROG_CXX//;s,python/Makefile,," configure.ac
sed -i "s/ python / /" Makefile.am
autoreconf -fisv

%build
%configure --without-python --includedir=%_includedir/lcms

# SMP-incompatible

%make LDFLAGS="-Wl,--version-script=../src/version-script.map"

%install
#makeinstall includedir=%buildroot/%_includedir/lcms
%make install DESTDIR=%buildroot

pushd %buildroot/%_includedir/lcms
for f in *
do
   ln -s lcms/$f ../$f
done
popd


%post -p %post_ldconfig
%postun -p %postun_ldconfig


%files
%doc AUTHORS NEWS README*
%_libdir/*.so.*


%files -n lcms-utils
%_bindir/*
%_man1dir/*

%files devel
%_libdir/*.so
%_libdir/pkgconfig/*
%_includedir/*

%files devel-static
%_libdir/*.a

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin