File mingw64-tiff.spec of Package mingw64-tiff

#
# spec file for package mingw64-tiff
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           mingw64-tiff
Version:        4.0.2
Release:        0
Summary:        TIFF Utilities (with JPEG and compression support)
License:        Any permissive and X11
Group:          Development/Libraries/C and C++
Url:            http://www.remotesensing.org/libtiff/
Source:         ftp://ftp.remotesensing.org/pub/libtiff/tiff-%{version}.tar.gz
#!BuildIgnore: post-build-checks
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  mingw64-filesystem
BuildRequires:  mingw64-libjpeg-devel
BuildRequires:  mingw64-liblzma-devel
BuildRequires:  mingw64-zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%_mingw64_package_header_debug
BuildArch:      noarch

%description
This package contains the library and support programs for the TIFF image format.

%package -n mingw64-libtiff5
Summary:        Tiff Library (with JPEG and compression support)
Group:          System/Libraries
Obsoletes:      mingw64-libtiff

%description -n mingw64-libtiff5
This package includes the TIFF libraries.

%package -n mingw64-libtiff-devel
Summary:        Tiff Library (development files)
Group:          Development/Libraries/C and C++
Requires:       mingw64(lib:jpeg)

%description -n mingw64-libtiff-devel
This package contains the header files and static libraries for developing programs which will manipulate TIFF format
image files using the libtiff library.

%_mingw64_debug_package

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

%build
echo "lt_cv_deplibs_check_method='pass_all'" >>%{_mingw64_cache}
%{_mingw64_configure} \
	--disable-cxx \
	--enable-shared --disable-static
%{_mingw64_make} %{?_smp_mflags} || %{_mingw64_make}

%install
%{_mingw64_make} DESTDIR=%{buildroot} install

%files
%defattr(-,root,root)
%{_mingw64_bindir}/*.exe
%{_mingw64_mandir}

%files -n mingw64-libtiff5
%defattr(-,root,root)
%{_mingw64_bindir}/libtiff-5.dll

%files -n mingw64-libtiff-devel
%defattr(-,root,root)
%{_mingw64_docdir}
%{_mingw64_includedir}/tiff*.h
%{_mingw64_libdir}/libtiff.dll.a
%{_mingw64_libdir}/pkgconfig/libtiff-4.pc

%changelog
openSUSE Build Service is sponsored by