File mingw32-lcms2.spec of Package mingw32-lcms2

%define __strip %{_mingw32_strip}
%define __objdump %{_mingw32_objdump}
%define _use_internal_dependency_generator 0
%define __find_requires %{_mingw32_findrequires}
%define __find_provides %{_mingw32_findprovides}
%define __os_install_post %{_mingw32_debug_install_post} \
                          %{_mingw32_install_post}

Name:           mingw32-lcms2
Version:        2.3
Release:        0
Summary:        Utilities for the Little CMS Engine

License:        X11/MIT
Url:            http://www.littlecms.com
Group:          Development/Libraries
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source:         http://www.littlecms.com/lcms2-%{version}.tar.gz

BuildArch:      noarch
#!BuildIgnore: post-build-checks

BuildRequires:  mingw32-filesystem
BuildRequires:  mingw32-cross-gcc
BuildRequires:  mingw32-cross-binutils
BuildRequires:  mingw32-cross-pkg-config
BuildRequires:  mingw32-libtiff-devel
BuildRequires:  mingw32-zlib-devel
BuildRequires:  mingw32-libjpeg-devel

%description
Little cms is a small speed optimized color management engine.

%package -n mingw32-liblcms2
Summary:        Libraries for the Little CMS Engine
Group:          Development/Libraries

%description -n mingw32-liblcms2
Little cms is a small speed optimized color management engine.

%package -n mingw32-liblcms2-devel
Summary:        Include Files and Libraries Mandatory for Development
Group:          Development/Libraries

%description -n mingw32-liblcms2-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%{_mingw32_debug_package}

%prep
%setup -q -n lcms2-%{version}


%build
%{_mingw32_configure} \
	--with-jpeg --with-zlib --with-tiff \
	--enable-shared --disable-static
make %{?_smp_mflags} || make


%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_mingw32_bindir}/jpgicc.exe
%{_mingw32_bindir}/linkicc.exe
%{_mingw32_bindir}/psicc.exe
%{_mingw32_bindir}/tificc.exe
%{_mingw32_bindir}/transicc.exe
%{_mingw32_mandir}/man1/jpgicc.1.gz
%{_mingw32_mandir}/man1/tificc.1.gz

%files -n mingw32-liblcms2
%defattr(-,root,root)
%{_mingw32_bindir}/liblcms2-2.dll

%files -n mingw32-liblcms2-devel
%defattr(-,root,root)
%{_mingw32_includedir}/lcms2.h
%{_mingw32_includedir}/lcms2_plugin.h
%{_mingw32_libdir}/liblcms2.dll.a
%{_mingw32_libdir}/pkgconfig/lcms2.pc


%changelog
openSUSE Build Service is sponsored by