## START: Set by rpmautospec ## (rpmautospec version 0.7.2) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 5; 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 # There are no ELF objects in this package, so turn off debuginfo generation. %global debug_package %{nil} Name: zstr Version: 1.0.7 Release: %autorelease Summary: A C++ header-only ZLib wrapper License: MIT URL: https://github.com/mateidavid/zstr VCS : git:%{url}.git Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Use zlib-ng directly rather than via the compatibility interface Patch: %{name}-zlib-ng.patch BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(zlib-ng) # See https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval ExcludeArch: %{ix86} %global _desc %{expand: This C++ header-only library enables the use of C++ standard iostreams to access ZLib-compressed streams. For input access (decompression), the compression format is auto-detected, and multiple concatenated compressed streams are decompressed seamlessly. For output access (compression), the only parameter exposed by this API is the compression level.} %description %_desc %package devel Summary: A C++ header-only ZLib wrapper BuildArch: noarch Requires: pkgconfig(zlib-ng) Provides: %{name}-static = %{version}-%{release} %description devel %_desc %prep %autosetup -p1 %build %cmake %cmake_build %install #%%cmake_install does nothing, so install manually mkdir -p %{buildroot}%{_includedir}/zstr install -m 0644 -p src/*.hpp %{buildroot}%{_includedir}/zstr %check %ctest %files devel %doc README.org %license LICENSE %{_includedir}/zstr/ %changelog ## START: Generated by rpmautospec * Mon Sep 23 2024 Jerry James - 1.0.7-5 - Use zlib-ng directly rather than via the compatibility interface * Sat Jul 20 2024 Fedora Release Engineering - 1.0.7-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Wed Jul 17 2024 Jerry James - 1.0.7-3 - Add VCS field * Sat Jan 27 2024 Fedora Release Engineering - 1.0.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Tue Jan 09 2024 Jerry James - 1.0.7-1 - Initial RPM ## END: Generated by rpmautospec