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/
#

%define realname tiff
%define sover 6
%define libname mingw64-lib%{realname}%{sover}
Name:           mingw64-%{realname}
Version:        4.7.0
Release:        0
Summary:        Tools for Converting from and to the Tagged Image File Format
License:        HPND
Group:          Productivity/Graphics/Convertors
URL:            https://libtiff.gitlab.io/libtiff/
Source:         https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz
Source1:        https://download.osgeo.org/libtiff/tiff-%{version}.tar.xz.sig
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc-c++
BuildRequires:  mingw64-libjpeg8-devel
BuildRequires:  mingw64-lzma-devel
BuildRequires:  mingw64-zlib-devel
BuildRequires:  mingw64-zstd-devel
%_mingw64_package_header_debug
BuildArch:      noarch

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

%package -n %{libname}
Summary:        Tiff Library (with JPEG and compression support)
Group:          System/Libraries

%description -n %{libname}
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)
Suggests:       mingw64-libjpeg8-devel

%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
%autosetup -p1 -n tiff-%{version}

%build
%{_mingw64_configure} --disable-static
%{_mingw64_make} %{?_smp_mflags}

%install
%{_mingw64_make_install}
rm -v %{buildroot}/%{_mingw64_docdir}/tiff-%{version}/manual/.buildinfo

%files
%{_mingw64_bindir}/*.exe

%files -n %{libname}
%{_mingw64_bindir}/libtiff-%{sover}.dll
%{_mingw64_bindir}/libtiffxx-%{sover}.dll

%files -n mingw64-libtiff-devel
%{_mingw64_docdir}/tiff-%{version}
%{_mingw64_includedir}/tiff*.h
%{_mingw64_includedir}/tiff*.hxx
%{_mingw64_libdir}/libtiff.dll.a
%{_mingw64_libdir}/libtiffxx.dll.a
%{_mingw64_libdir}/pkgconfig/libtiff-4.pc
%{_mingw64_mandir}/man[1,3]/*%{?ext_man}

%changelog
openSUSE Build Service is sponsored by