d11fa9f
Name:           zimg
3246a82
Version:        3.0.3
3246a82
Release:        1%{?dist}
d11fa9f
Summary:        Scaling, color space conversion, and dithering library
d11fa9f
License:        WTFPL
d11fa9f
URL:            https://github.com/sekrit-twc/zimg
d11fa9f
f130f8d
Source0:        %{url}/archive/release-%{version}/%{name}-%{version}.tar.gz
d11fa9f
0e85b67
BuildRequires: make
d11fa9f
BuildRequires:  autoconf
d11fa9f
BuildRequires:  automake
d11fa9f
BuildRequires:  gcc-c++
d11fa9f
BuildRequires:  libtool
d11fa9f
d11fa9f
%description
d11fa9f
The "z" library implements the commonly required image processing basics of
d11fa9f
scaling, color space conversion, and depth conversion. A simple API enables
d11fa9f
conversion between any supported formats to operate with minimal knowledge from
d11fa9f
the programmer. All library routines were designed from the ground-up with
d11fa9f
correctness, flexibility, and thread-safety as first priorities. Allocation,
d11fa9f
buffering, and I/O are cleanly separated from processing, allowing the
d11fa9f
programmer to adapt "z" to many scenarios.
d11fa9f
d11fa9f
%package        devel
d11fa9f
Summary:        Development files for %{name}
d11fa9f
Requires:       %{name}%{?_isa} = %{version}-%{release}
d11fa9f
d11fa9f
%description    devel
d11fa9f
The %{name}-devel package contains libraries and header files for
d11fa9f
developing applications that use %{name}.
d11fa9f
d11fa9f
%prep
6154cec
%autosetup -p1 -n zimg-release-%{version}
d11fa9f
d11fa9f
%build
4a3cdb0
%ifarch armv7hl
4a3cdb0
CXXFLAGS=$(echo %{optflags} | sed -e 's/ -mfpu=vfpv3-d16//g')
4a3cdb0
%endif
4a3cdb0
d11fa9f
autoreconf -vif
d11fa9f
%configure \
d11fa9f
    --disable-static \
d11fa9f
    --enable-testapp
f130f8d
%make_build V=1
d11fa9f
d11fa9f
%install
d11fa9f
%make_install
d11fa9f
install -m 755 -p -D testapp %{buildroot}%{_bindir}/testapp
d11fa9f
d11fa9f
find %{buildroot} -name '*.la' -delete
d11fa9f
d11fa9f
# Pick up docs in the files section
d11fa9f
rm -fr %{buildroot}%{_docdir}/%{name}
d11fa9f
d11fa9f
%ldconfig_scriptlets
d11fa9f
d11fa9f
%files
d11fa9f
%license COPYING
d11fa9f
%doc README.md ChangeLog
d11fa9f
%{_libdir}/lib%{name}.so.2.0.0
d11fa9f
%{_libdir}/lib%{name}.so.2
d11fa9f
d11fa9f
%files devel
d11fa9f
%{_bindir}/testapp
d11fa9f
%{_includedir}/*
d11fa9f
%{_libdir}/lib%{name}.so
d11fa9f
%{_libdir}/pkgconfig/%{name}.pc
d11fa9f
d11fa9f
%changelog
3246a82
* Wed Feb 23 2022 Nicolas Chauvet <kwizart@gmail.com> - 3.0.3-1
3246a82
- Update to 3.0.3
3246a82
c4d6a26
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-5
c4d6a26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
c4d6a26
156b958
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-4
156b958
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
156b958
2244cc4
* Thu Jan 28 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-3
2244cc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2244cc4
4a3cdb0
* Thu Jan  7 2021 Simone Caronni <negativo17@gmail.com> - 3.0.1-2
4a3cdb0
- Fix build on armv7hl.
4a3cdb0
60da0a9
* Sat Jan  2 2021 Simone Caronni <negativo17@gmail.com> - 3.0.1-1
60da0a9
- Update to 3.0.1.
60da0a9
02831c8
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.3-3
02831c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
02831c8
6154cec
* Mon Apr 20 2020 Simone Caronni <negativo17@gmail.com> - 2.9.3-2
6154cec
- Fix FTBFS in Rawhide.
6154cec
1d9b802
* Wed Mar 04 2020 Simone Caronni <negativo17@gmail.com> - 2.9.3-1
1d9b802
- Update to 2.9.3.
1d9b802
e98d749
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.9.2-2
e98d749
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
e98d749
f130f8d
* Mon Sep 23 2019 Leigh Scott <leigh123linux@googlemail.com> - 2.9.2-1
f130f8d
- Update to 2.9.2 release
f130f8d
8993395
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.8-4
8993395
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
8993395
d11fa9f
* Sat Jun 08 2019 Simone Caronni <negativo17@gmail.com> - 2.8-3
d11fa9f
- Review fixes.
d11fa9f
d11fa9f
* Sat May 25 2019 Simone Caronni <negativo17@gmail.com> - 2.8-2
d11fa9f
- rpmlint fixes.
d11fa9f
d11fa9f
* Thu Mar 28 2019 Simone Caronni <negativo17@gmail.com> - 2.8-1
d11fa9f
- First build.