Initial commit
This commit is contained in:
commit
e394c98c6e
63
zlib-ng.spec
Normal file
63
zlib-ng.spec
Normal file
@ -0,0 +1,63 @@
|
|||||||
|
%global commit fe69810c265858b7b4242663d51336726f4a98be
|
||||||
|
%global commitdate 20200609
|
||||||
|
%global shortcommit %(c=%{commit}; echo ${c:0:9})
|
||||||
|
|
||||||
|
Name: zlib-ng
|
||||||
|
Version: 1.9.9
|
||||||
|
Release: 0.%{commitdate}git%{shortcommit}%{?dist}
|
||||||
|
Summary: zlib replacement with optimizations
|
||||||
|
License: Zlib
|
||||||
|
Url: https://github.com/zlib-ng/zlib-ng
|
||||||
|
Source0: https://github.com/zlib-ng/zlib-ng/archive/%{commit}.tar.gz
|
||||||
|
|
||||||
|
# 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} = %{version}-%{release}
|
||||||
|
|
||||||
|
%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}
|
||||||
|
%make_build
|
||||||
|
|
||||||
|
%check
|
||||||
|
# Tests fail when run in parallel.
|
||||||
|
ctest -V
|
||||||
|
|
||||||
|
%install
|
||||||
|
%make_install
|
||||||
|
|
||||||
|
%ldconfig_scriptlets
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_libdir}/%{soname}
|
||||||
|
%{_libdir}/libz-ng.so
|
||||||
|
%{_libdir}/libz-ng.so.1
|
||||||
|
%license LICENSE.md
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%{_includedir}/zconf-ng.h
|
||||||
|
%{_includedir}/zlib-ng.h
|
||||||
|
%{_datadir}/pkgconfig/%{name}.pc
|
||||||
|
%{_mandir}/man3/%{name}.3.gz
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Wed Jul 01 2020 Tulio Magno Quites Machado Filho <tuliom@ascii.art.br> - 1.9.9-0.20200609gitfe69810c2
|
||||||
|
- Initial commit
|
Loading…
Reference in New Issue
Block a user