From fcb03426b976e3d88987d22fde6ce50e601c18d0 Mon Sep 17 00:00:00 2001 From: Simone Caronni Date: Sun, 9 Jun 2019 07:48:12 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + sources | 1 + zimg.spec | 73 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 75 insertions(+) create mode 100644 .gitignore create mode 100644 sources create mode 100644 zimg.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cae1b65 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/zimg-2.8.tar.gz diff --git a/sources b/sources new file mode 100644 index 0000000..56a6505 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (zimg-2.8.tar.gz) = 1e89087a756798a7ae3bfae3bc8244b29ae8ae7f04f53bdf6c4d4de3cb11412dc1eecd95a4a121bb9077437e633f8fbb665522ff8112ade806d9191ea4b5f7bf diff --git a/zimg.spec b/zimg.spec new file mode 100644 index 0000000..3df3768 --- /dev/null +++ b/zimg.spec @@ -0,0 +1,73 @@ +Name: zimg +Version: 2.8 +Release: 3%{?dist} +Summary: Scaling, color space conversion, and dithering library +License: WTFPL +URL: https://github.com/sekrit-twc/zimg + +Source0: https://github.com/sekrit-twc/zimg/archive/release-%{version}.tar.gz#/%{name}-%{version}.tar.gz + +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gcc-c++ +BuildRequires: libtool + +%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 -n zimg-release-%{version} + +%build +autoreconf -vif +%configure \ + --disable-static \ + --enable-testapp +%make_build + +%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 +* Sat Jun 08 2019 Simone Caronni - 2.8-3 +- Review fixes. + +* Sat May 25 2019 Simone Caronni - 2.8-2 +- rpmlint fixes. + +* Thu Mar 28 2019 Simone Caronni - 2.8-1 +- First build.