## START: Set by rpmautospec ## (rpmautospec version 0.3.5) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 6; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec Name: libdeflate Version: 1.9 Release: %autorelease Summary: Fast implementation of DEFLATE, gzip, and zlib License: MIT URL: https://github.com/ebiggers/libdeflate Source0: https://github.com/ebiggers/%{name}/archive/v%{version}.tar.gz Patch0: libdeflate-c99.patch BuildRequires: gcc BuildRequires: make %description libdeflate is a library for fast, whole-buffer DEFLATE-based compression and decompression, supporting DEFLATE, gzip, and zlib. %package devel Summary: Development files for libdeflate License: MIT Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for libdeflate. %package utils Summary: Binaries from libdeflate License: MIT Requires: %{name}%{?_isa} = %{version}-%{release} %description utils Binaries from libdeflate. %prep %autosetup -p1 sed -r -i 's/-O2 -fomit-frame-pointer -std=c99/-std=c99/' Makefile %build %make_build CFLAGS="%optflags -fpic -pie -g" USE_SHARED_LIB=1 LIBDIR=%{_libdir} PREFIX=%{_prefix} %install %make_install CFLAGS="%optflags -fpic -pie -g" USE_SHARED_LIB=1 LIBDIR=%{_libdir} PREFIX=%{_prefix} rm %{buildroot}/%{_libdir}/*.a %files %doc NEWS.md README.md %license COPYING %{_libdir}/libdeflate.so.0 %files devel %{_includedir}/libdeflate.h %{_libdir}/libdeflate.so %{_libdir}/pkgconfig/* %files utils %{_bindir}/libdeflate-gzip %{_bindir}/libdeflate-gunzip %changelog * Thu Feb 02 2023 Florian Weimer - 1.9-6 - Fix C99 compatibility issue * Thu Jan 19 2023 Fedora Release Engineering - 1.9-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild * Thu Jul 21 2022 Fedora Release Engineering - 1.9-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 1.9-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Thu Jan 13 2022 Nick Black - 1.9-2 - install new pkgconfig file * Thu Jan 13 2022 Nick Black - 1.9-1 - new upstream 1.9 * Tue Nov 23 2021 Nick Black - 1.8-1 - Initial import (#2023061)