%{?mingw_package_header} %global mingw_pkg_name lcms2 #global prerelease rc3 Name: mingw-%{mingw_pkg_name} Version: 2.14 Release: %mkrel 1 Summary: MinGW Color Management Engine Group: Development/Other License: MIT URL: http://www.littlecms.com/ #Source0: http://www.littlecms.com/%{mingw_pkg_name}-%{version}%{prerelease}.tar.gz Source0: https://sourceforge.net/projects/lcms/files/lcms/%{version}/%{mingw_pkg_name}-%{version}.tar.gz BuildRequires: make 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/Other 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/Other 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}%{prerelease} %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 * Thu Dec 01 2022 daviddavid <daviddavid> 2.14-1.mga9 + Revision: 1913601 - new version: 2.14 * Sun May 01 2022 tv <tv> 2.12-3.mga9 + Revision: 1855388 - Use mingw macros, autosetup * Fri Mar 25 2022 umeabot <umeabot> 2.12-2.mga9 + Revision: 1826980 - Mageia 9 Mass Rebuild * Sun Feb 28 2021 daviddavid <daviddavid> 2.12-1.mga9 + Revision: 1693328 - new version: 2.12 * Wed Jun 17 2020 daviddavid <daviddavid> 2.11-1.mga8 + Revision: 1594107 - new version: 2.11 * Sat Jun 06 2020 daviddavid <daviddavid> 2.10-1.mga8 + Revision: 1590671 - new version: 2.10 * Wed Feb 12 2020 umeabot <umeabot> 2.9-3.mga8 + Revision: 1502096 - Mageia 8 Mass Rebuild * Thu Sep 20 2018 umeabot <umeabot> 2.9-2.mga7 + Revision: 1279829 - Mageia 7 Mass Rebuild * Fri Jun 15 2018 daviddavid <daviddavid> 2.9-1.mga7 + Revision: 1237058 - new version: 2.9 * Wed May 11 2016 tv <tv> 2.7-1.mga6 + Revision: 1012697 - new release * Fri Feb 05 2016 umeabot <umeabot> 2.5-4.mga6 + Revision: 939730 - Mageia 6 Mass Rebuild * Wed Oct 15 2014 umeabot <umeabot> 2.5-3.mga5 + Revision: 745346 - Second Mageia 5 Mass Rebuild * Tue Sep 16 2014 umeabot <umeabot> 2.5-2.mga5 + Revision: 682465 - Mageia 5 Mass Rebuild * Mon Oct 28 2013 neoclust <neoclust> 2.5-1.mga4 + Revision: 547690 - imported package mingw-lcms2 * Tue Sep 3 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.5-1 - update to 2.5 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Tue Nov 20 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.4-1 - update to 2.4 - fix according to Greg Hellings' reviewer comments * Thu Aug 23 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 2.3-1 - create from native package