From 4f4142f3564741fc2b4a7b008d530d883374b065 Mon Sep 17 00:00:00 2001 From: Thomas Sailer Date: Mon, 7 Jan 2013 14:37:15 +0100 Subject: [PATCH] import from review --- .gitignore | 1 + mingw-lcms2.spec | 118 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 120 insertions(+) create mode 100644 mingw-lcms2.spec diff --git a/.gitignore b/.gitignore index e69de29..1385d94 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/lcms2-2.4.tar.gz diff --git a/mingw-lcms2.spec b/mingw-lcms2.spec new file mode 100644 index 0000000..f86e7f0 --- /dev/null +++ b/mingw-lcms2.spec @@ -0,0 +1,118 @@ +%{?mingw_package_header} + +%global mingw_pkg_name lcms2 + +Name: mingw-%{mingw_pkg_name} +Version: 2.4 +Release: 1%{?dist} +Summary: MinGW Color Management Engine +Group: Development/Libraries +License: MIT +URL: http://www.littlecms.com/ +Source0: http://www.littlecms.com/%{mingw_pkg_name}-%{version}.tar.gz + +BuildRequires: mingw32-filesystem +BuildRequires: mingw64-filesystem +BuildRequires: mingw32-gcc-c++ +BuildRequires: mingw64-gcc-c++ +BuildRequires: mingw32-libjpeg +BuildRequires: mingw64-libjpeg +BuildRequires: mingw32-libtiff +BuildRequires: mingw64-libtiff +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. LCMS2 is the current version of LCMS, and can be +parallel installed with the original (deprecated) lcms. + +# 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. LCMS2 is the current version of LCMS, and can be +parallel installed with the original (deprecated) lcms. + +%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. LCMS2 is the current version of LCMS, and can be +parallel installed with the original (deprecated) lcms. + +%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} +iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.x +mv -f AUTHORS.x AUTHORS + +%build +%mingw_configure --enable-static --program-suffix=2 + +%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 {} ';' +install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT%{mingw32_includedir}/lcms2.h +install -D -m 644 include/lcms2.h $RPM_BUILD_ROOT%{mingw64_includedir}/lcms2.h +install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT%{mingw32_includedir}/lcms2_plugin.h +install -D -m 644 include/lcms2_plugin.h $RPM_BUILD_ROOT%{mingw64_includedir}/lcms2_plugin.h +rm -rf ${RPM_BUILD_ROOT}/%{mingw32_mandir} +rm -rf ${RPM_BUILD_ROOT}/%{mingw64_mandir} + + +%files -n mingw32-%{mingw_pkg_name} +%doc AUTHORS COPYING +%{mingw32_includedir}/* +%{mingw32_libdir}/liblcms2.dll.a +%{mingw32_bindir}/liblcms2-2.dll +%{mingw32_libdir}/pkgconfig/%{mingw_pkg_name}.pc + +%files -n mingw32-%{mingw_pkg_name}-static +%{mingw32_libdir}/liblcms2.a + +%files -n mingw64-%{mingw_pkg_name} +%doc AUTHORS COPYING +%{mingw64_includedir}/* +%{mingw64_libdir}/liblcms2.dll.a +%{mingw64_bindir}/liblcms2-2.dll +%{mingw64_libdir}/pkgconfig/%{mingw_pkg_name}.pc + +%files -n mingw64-%{mingw_pkg_name}-static +%{mingw64_libdir}/liblcms2.a + +%changelog +* Tue Nov 20 2012 Thomas Sailer - 2.4-1 +- update to 2.4 +- fix according to Greg Hellings' reviewer comments + +* Thu Aug 23 2012 Thomas Sailer - 2.3-1 +- create from native package + diff --git a/sources b/sources index e69de29..7abfb13 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +861ef15fa0bc018f9ddc932c4ad8b6dd lcms2-2.4.tar.gz