zlib-ng/zlib-ng.spec

75 lines
2.1 KiB
RPMSpec
Raw Normal View History

2020-07-02 02:03:53 +00:00
%global commit fe69810c265858b7b4242663d51336726f4a98be
%global commitdate 20200609
%global shortcommit %(c=%{commit}; echo ${c:0:9})
Name: zlib-ng
Version: 1.9.9
Release: 0.2.%{commitdate}git%{shortcommit}%{?dist}
Summary: Zlib replacement with optimizations
License: zlib
2020-07-02 02:03:53 +00:00
Url: https://github.com/zlib-ng/zlib-ng
Source0: https://github.com/zlib-ng/zlib-ng/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
2020-07-02 02:03:53 +00:00
# Be explicit about the soname in order to avoid unintentional changes.
%global soname libz-ng.so.1.9.9
ExclusiveArch: aarch64 i686 ppc64le s390x x86_64
BuildRequires: gcc, systemtap-sdt-devel, cmake
%description
zlib-ng is a zlib replacement that provides optimizations for "next generation"
systems.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
2020-07-02 02:03:53 +00:00
%description devel
The %{name}-devel package contains static libraries and header files for
developing application that use %{name}.
%prep
%autosetup -p1 -n %{name}-%{commit}
%build
# zlib-ng uses a different macro for library directory.
%cmake -DWITH_SANITIZERS=ON -DINSTALL_LIB_DIR=%{_libdir}
%cmake_build
2020-07-02 02:03:53 +00:00
%check
# Tests fail when run in parallel.
%define _smp_mflags -j1
%ctest
2020-07-02 02:03:53 +00:00
%install
%cmake_install
2020-07-02 02:03:53 +00:00
%files
%{_libdir}/%{soname}
%{_libdir}/libz-ng.so.1
%license LICENSE.md
%doc README.md
%files devel
%{_includedir}/zconf-ng.h
%{_includedir}/zlib-ng.h
%{_libdir}/libz-ng.so
2020-07-02 02:03:53 +00:00
%{_datadir}/pkgconfig/%{name}.pc
# Glob the extension in case the compression changes in the future.
%{_mandir}/man3/%{name}.3.*
2020-07-02 02:03:53 +00:00
%changelog
* Thu Jul 09 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 1.9.9-0.2.20200609gitfe69810c2
- Replace cmake commands with new cmake macros
* Mon Jul 06 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 1.9.9-0.1.20200609gitfe69810c2
- Improve the archive name.
- Starte release at 0.1 as required for prerelease.
- Make the devel package require an arch-dependent runtime subpackage.
- Remove %%ldconfig_scriptlets.
- Glob the man page extension.
- Move unversioned shared library to the devel subpackage
2020-07-02 02:03:53 +00:00
* Wed Jul 01 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 1.9.9-0.20200609gitfe69810c2
- Initial commit