# 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 Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: cmake BuildRequires: gcc-c++ BuildRequires: pkgconfig(zlib) # 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) Provides: %{name}-static = %{version}-%{release} %description devel %_desc %prep %autosetup %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 %autochangelog