182 lines
4.9 KiB
RPMSpec
182 lines
4.9 KiB
RPMSpec
Name: liblcms
|
|
Version: 1.19
|
|
Release: 5mamba
|
|
Summary: A free color management engine in 100K
|
|
Group: System/Libraries
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.littlecms.com
|
|
Source: http://www.littlecms.com/lcms-%{version}.tar.gz
|
|
Patch0: liblcms-1.17-coverity-boundchecking-cmsio1.patch
|
|
Patch1: liblcms-1.17-fix_s390_lcms_h.patch
|
|
License: MIT
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libpython27-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libtiff-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
BuildRequires: swig
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
Little cms intends to be a small-footprint, speed optimized color management engine in open source form.
|
|
|
|
%package devel
|
|
Group: Development/Libraries
|
|
Summary: Libraries and header for %{name}
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description devel
|
|
Little cms intends to be a small-footprint, speed optimized color management engine in open source form.
|
|
|
|
This package contains libraries and header files need for development.
|
|
|
|
%package static
|
|
Group: Development/Libraries
|
|
Summary: Static libraries for %{name}
|
|
Requires: %{name}-devel = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description static
|
|
Little cms intends to be a small-footprint, speed optimized color management engine in open source form.
|
|
|
|
This package contains static libraries need for development.
|
|
|
|
%package -n python-lcms
|
|
Summary: Python interface to %{name}
|
|
Group: Development/Libraries
|
|
|
|
%description -n python-lcms
|
|
Little cms intends to be a small-footprint, speed optimized color management engine in open source form.
|
|
|
|
This package contains Python interface to %{name}.
|
|
|
|
%package -n python-lcms-static
|
|
Summary: Python interface to %{name}
|
|
Group: Development/Libraries
|
|
Requires: python-lcms = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
%description -n python-lcms-static
|
|
Little cms intends to be a small-footprint, speed optimized color management engine in open source form.
|
|
|
|
This package contains static libraries need for development.
|
|
|
|
%prep
|
|
%setup -q -n lcms-%{version}
|
|
#%patch0 -p2 -b .type4
|
|
#%patch1 -p1 -b .s390
|
|
|
|
find . -name \*.[ch] | xargs chmod -x
|
|
# fix docs format
|
|
pushd doc
|
|
mkdir -p doctemp
|
|
for f in LCMSAPI.TXT TUTORIAL.TXT ;do
|
|
cp -p $f doctemp/$f
|
|
iconv -f ISO-8859-1 -t UTF-8 doctemp/$f > $f
|
|
touch -r doctemp/$f $f
|
|
done
|
|
rm -rf doctemp
|
|
popd
|
|
|
|
%build
|
|
autoreconf -if
|
|
%configure \
|
|
--with-pic \
|
|
%if "%{stage1}" != "1"
|
|
--with-python
|
|
%endif
|
|
|
|
(cd python; ./swig_lcms)
|
|
%make
|
|
|
|
%if "%{_host}" == "%{_build}"
|
|
%make check
|
|
%endif
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
|
|
chmod 0644 AUTHORS COPYING ChangeLog NEWS README.1ST doc/TUTORIAL.TXT doc/LCMSAPI.TXT
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/*
|
|
%{_libdir}/*.so.*
|
|
%{_mandir}/man1/*
|
|
%doc AUTHORS COPYING
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/*
|
|
%{_libdir}/*.la
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/lcms.pc
|
|
%doc doc/LCMSAPI.TXT
|
|
%doc ChangeLog NEWS README.1ST
|
|
%doc doc/TUTORIAL.TXT
|
|
|
|
%files static
|
|
%defattr(-,root,root)
|
|
%{_libdir}/*.a
|
|
|
|
%if "%{stage1}" != "1"
|
|
%files -n python-lcms
|
|
%defattr(-,root,root)
|
|
%{python27_sitearch}/_lcms.so
|
|
%{python27_sitearch}/lcms.py
|
|
|
|
%files -n python-lcms-static
|
|
%defattr(-,root,root)
|
|
%{python27_sitearch}/_lcms.a
|
|
%{python27_sitearch}/_lcms.la
|
|
%endif
|
|
|
|
%changelog
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19-5mamba
|
|
- rebuilt with python 2.7
|
|
|
|
* Sun Sep 19 2010 Davide Madrisan <davide.madrisan@gmail.com> 1.19-4mamba
|
|
- run ldconfig after package install/remove
|
|
|
|
* Tue Aug 10 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19-3mamba
|
|
- move libtool file .la to -devel package from -static
|
|
|
|
* Fri Jul 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19-2mamba
|
|
- rebuilt with libjpeg 8
|
|
|
|
* Wed Nov 25 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.19-1mamba
|
|
- update to 1.19
|
|
|
|
* Sat Jan 31 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 1.17-3mamba
|
|
- rebuilt with python 2.6
|
|
|
|
* Sat Jan 31 2009 gil <puntogil@libero.it> 1.17-2mamba
|
|
- fix for: https://bugzilla.redhat.com/show_bug.cgi?id=468245; https://bugzilla.redhat.com/show_bug.cgi?id=448066
|
|
- added packages static: , python
|
|
|
|
* Sat Oct 11 2008 gil <puntogil@libero.it> 1.17-1mamba
|
|
- update to 1.17
|
|
|
|
* Wed Sep 26 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 1.16-1mamba
|
|
- update to 1.16
|
|
|
|
* Tue Apr 11 2006 Davide Madrisan <davide.madrisan@qilinux.it> 1.15-1qilnx
|
|
- update to version 1.15 by autospec
|
|
|
|
* Wed Nov 23 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 1.14-1qilnx
|
|
- update to version 1.14 by autospec
|
|
|
|
* Wed Jul 14 2004 Davide Madrisan <davide.madrisan@qilinux.it> 1.13-1qilnx
|
|
- first build
|