File mingw64-zlib.spec of Package mingw64-zlib

#
# spec file for package mingw64-zlib
#
# Copyright (c) 2025 SUSE LLC and contributors
#
# 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 https://bugs.opensuse.org/
#


%{_mingw64_package_header_debug}
Name:           mingw64-zlib
Version:        1.2.13
Release:        0
Summary:        Zlib compression library
License:        Zlib
URL:            https://www.zlib.net/
Source:         https://www.zlib.net/zlib-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  mingw64-cross-binutils
BuildRequires:  mingw64-cross-gcc
BuildRequires:  xz
BuildArch:      noarch

%description
zlib is a general-purpose lossless data-compression library,
implementing an API for the DEFLATE algorithm, the latter of
which is being used by, for example, gzip and the ZIP archive
format.

%{_mingw64_debug_package}

%prep
%autosetup -p1 -n zlib-%{version}

%build
%{_mingw64_env}
./configure \
    --static \
    --prefix=%{_mingw64_prefix} \
    --libdir=%{_mingw64_libdir} \
    --includedir=%{_mingw64_includedir}
%{_mingw64_make}

%install
%make_install

%files
%license LICENSE
%{_mingw64_includedir}/zconf.h
%{_mingw64_includedir}/zlib.h
%{_mingw64_libdir}/libz.a
%{_mingw64_libdir}/pkgconfig/zlib.pc
%{_mingw64_datadir}/man

%changelog
openSUSE Build Service is sponsored by