[mingw-lcms] import from review

sailer sailer at fedoraproject.org
Mon Jan 7 16:53:55 UTC 2013


commit f5ae16c0f7b392a76e1adda3e5bca12981be26f0
Author: Thomas Sailer <t.sailer at alumni.ethz.ch>
Date:   Mon Jan 7 17:53:40 2013 +0100

    import from review

 .gitignore                 |    1 +
 lcms-1.19-rhbz675186.patch |   12 ++++
 mingw-lcms.spec            |  136 ++++++++++++++++++++++++++++++++++++++++++++
 sources                    |    1 +
 4 files changed, 150 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..093f2a9 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/lcms-1.19.tar.gz
diff --git a/lcms-1.19-rhbz675186.patch b/lcms-1.19-rhbz675186.patch
new file mode 100644
index 0000000..ceeb1a9
--- /dev/null
+++ b/lcms-1.19-rhbz675186.patch
@@ -0,0 +1,12 @@
+--- icclink.1	2011-01-11 11:59:54.000000000 +0000
++++ icclink.1	2011-02-04 15:03:14.000000000 +0000
+@@ -22,7 +22,7 @@ 
+ Black point compensation.
+ .TP
+ .B \-c <0,1,2,3>
+-Precission (0=LowRes, 1=Normal, 2=Hi-res). [defaults to 1]
++Precision (0=LowRes, 1=Normal, 2=Hi-res). [defaults to 1]
+ .TP
+ .BI \-d\  description
+ Description text (quotes can be used).
+
diff --git a/mingw-lcms.spec b/mingw-lcms.spec
new file mode 100644
index 0000000..1d9205e
--- /dev/null
+++ b/mingw-lcms.spec
@@ -0,0 +1,136 @@
+%{?mingw_package_header}
+
+%global mingw_pkg_name lcms
+
+Name:           mingw-%{mingw_pkg_name}
+Version:        1.19
+Release:        3%{?dist}
+Summary:        MinGW Color Management System
+Group:          Development/Libraries
+License:        MIT
+URL:            http://www.littlecms.com/
+Source0:        http://downloads.sourceforge.net/%{mingw_pkg_name}/%{mingw_pkg_name}-%{version}.tar.gz
+Patch0:         lcms-1.19-rhbz675186.patch
+
+BuildRequires:  mingw32-filesystem >= 95
+BuildRequires:  mingw64-filesystem >= 95
+BuildRequires:  mingw32-gcc-c++
+BuildRequires:  mingw64-gcc-c++
+BuildRequires:  mingw32-libjpeg
+BuildRequires:  mingw64-libjpeg
+BuildRequires:  mingw32-libtiff
+BuildRequires:  mingw64-libtiff
+BuildRequires:  pkgconfig
+BuildRequires:  mingw32-zlib
+BuildRequires:  mingw64-zlib
+BuildArch:      noarch
+
+
+%description
+LittleCMS intends to be a small-footprint, speed optimized color management
+engine in open source form.
+
+# Mingw32
+%package -n mingw32-%{mingw_pkg_name}
+Summary:                %{summary}
+
+%description -n mingw32-%{mingw_pkg_name}
+LittleCMS intends to be a small-footprint, speed optimized color management
+engine in open source form.
+
+%package -n mingw32-%{mingw_pkg_name}-static
+Summary:  Static libraries for mingw32-%{mingw_pkg_name} development
+Group:    Development/Libraries
+Requires: mingw32-%{mingw_pkg_name} = %{version}-%{release}
+
+%description -n mingw32-%{mingw_pkg_name}-static
+The mingw32-%{mingw_pkg_name}-static package contains static library for
+mingw32-%{mingw_pkg_name} development.
+
+# Mingw64
+%package -n mingw64-%{mingw_pkg_name}
+Summary:                %{summary}
+
+%description -n mingw64-%{mingw_pkg_name}
+LittleCMS intends to be a small-footprint, speed optimized color management
+engine in open source form.
+
+%package -n mingw64-%{mingw_pkg_name}-static
+Summary:  Static libraries for mingw64-%{mingw_pkg_name} development
+Group:    Development/Libraries
+Requires: mingw64-%{mingw_pkg_name} = %{version}-%{release}
+
+%description -n mingw64-%{mingw_pkg_name}-static
+The mingw64-%{mingw_pkg_name}-static package contains static library for
+mingw64-%{mingw_pkg_name} development.
+
+%{?mingw_debug_package}
+
+%prep
+%setup -q -n %{mingw_pkg_name}-%{version}
+pushd samples
+%patch0 -p0
+popd
+rm -f include/icc34.h
+
+find . -name \*.[ch] | xargs chmod -x
+chmod 0644 AUTHORS COPYING ChangeLog NEWS README.1ST doc/TUTORIAL.TXT doc/LCMSAPI.TXT
+
+# Convert not UTF-8 files
+pushd doc
+mkdir -p __temp
+for f in LCMSAPI.TXT TUTORIAL.TXT ;do
+cp -p $f __temp/$f
+iconv -f ISO-8859-1 -t UTF-8 __temp/$f > $f
+touch -r __temp/$f $f
+done
+rm -rf __temp
+popd
+
+
+%build
+%mingw_configure --without-python --enable-shared
+
+# remove rpath from libtool
+#sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
+#sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
+
+%mingw_make %{?_smp_mflags}
+
+
+%install
+%mingw_make install DESTDIR=${RPM_BUILD_ROOT} INSTALL="install -p"
+find ${RPM_BUILD_ROOT} -type f -name "*.la" -exec rm -f {} ';'
+find ${RPM_BUILD_ROOT} -type f -name "*.exe" -exec rm -f {} ';'
+rm -rf ${RPM_BUILD_ROOT}/%{mingw32_mandir}
+rm -rf ${RPM_BUILD_ROOT}/%{mingw64_mandir}
+
+%files -n mingw32-%{mingw_pkg_name}
+%doc README.1ST doc/TUTORIAL.TXT AUTHORS COPYING NEWS doc/LCMSAPI.TXT
+%{mingw32_includedir}/*
+%{mingw32_libdir}/liblcms.dll.a
+%{mingw32_bindir}/liblcms-1.dll
+%{mingw32_libdir}/pkgconfig/%{mingw_pkg_name}.pc
+
+%files -n mingw32-%{mingw_pkg_name}-static
+%{mingw32_libdir}/liblcms.a
+
+%files -n mingw64-%{mingw_pkg_name}
+%doc README.1ST doc/TUTORIAL.TXT AUTHORS COPYING NEWS doc/LCMSAPI.TXT
+%{mingw64_includedir}/*
+%{mingw64_libdir}/liblcms.dll.a
+%{mingw64_bindir}/liblcms-1.dll
+%{mingw64_libdir}/pkgconfig/%{mingw_pkg_name}.pc
+
+%files -n mingw64-%{mingw_pkg_name}-static
+%{mingw64_libdir}/liblcms.a
+
+%changelog
+* Fri Jan  5 2013 Thomas Sailer <t.sailer at alumni.ethz.ch> - 1.19-3
+- BR mingw{32,64}-filesystem >= 95
+
+* Tue Nov 20 2012 Thomas Sailer <t.sailer at alumni.ethz.ch> - 1.19-2
+- fix according to Greg Hellings' reviewer comments
+
+* Thu Aug 23 2012 Thomas Sailer <t.sailer at alumni.ethz.ch> - 1.19-1
+- created from native spec file
diff --git a/sources b/sources
index e69de29..db140ee 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+8af94611baf20d9646c7c2c285859818  lcms-1.19.tar.gz


More information about the scm-commits mailing list