Name zimg
Description Scaling, color space conversion, and dithering library
Version 3.0.6-2.fc42
Package Base zimg
Homepage https://github.com/sekrit-twc/zimg
Maintainers ['slaanesh']
Contributors []
Distro-repo https://src.fedoraproject.org/rpms/zimg/tree/f42
Sources ['%{url}/archive/release-%{version}/%{name}-%{version}.tar.gz', 'https://github.com/sekrit-twc/zimg/pull/218.patch']
Dependencies ['libc.so.6', 'libgcc_s.so.1', 'libm.so.6', 'libstdc++.so.6', 'rtld']
Optional-Dependencies []
Build-Dependencies ['autoconf', 'automake', 'gcc-c++', 'libtool', 'make']
Provides ['libzimg.so.2()(64bit)', 'zimg', 'zimg(x86-64)']
Builddate 19-08-2025 13:32:36
Architecture x86_64
Distro-Version 42
Licenses ['WTFPL']
Hash 53aa17845ee081da57cbeecc12080e395587fa51c728128a9200cd8433c2ca7e
Name:           zimg
Version:        3.0.6
Release:        %autorelease
Summary:        Scaling, color space conversion, and dithering library
License:        WTFPL
URL:            https://github.com/sekrit-twc/zimg

Source0:        %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz

# Fix build with GCC 15
Patch0:         https://github.com/sekrit-twc/zimg/pull/218.patch

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  libtool
BuildRequires:  make

%description
The "z" library implements the commonly required image processing basics of
scaling, color space conversion, and depth conversion. A simple API enables
conversion between any supported formats to operate with minimal knowledge from
the programmer. All library routines were designed from the ground-up with
correctness, flexibility, and thread-safety as first priorities. Allocation,
buffering, and I/O are cleanly separated from processing, allowing the
programmer to adapt "z" to many scenarios.

%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%autosetup -p1 -n zimg-release-%{version}

%build
autoreconf -vif
%configure \
    --disable-static \
    --enable-testapp
%make_build V=1

%install
%make_install
install -m 755 -p -D testapp %{buildroot}%{_bindir}/testapp

find %{buildroot} -name '*.la' -delete

# Pick up docs in the files section
rm -fr %{buildroot}%{_docdir}/%{name}

%ldconfig_scriptlets

%files
%license COPYING
%doc README.md ChangeLog
%{_libdir}/lib%{name}.so.2.0.0
%{_libdir}/lib%{name}.so.2

%files devel
%{_bindir}/testapp
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

%changelog
%autochangelog