The package rpms/zlib-ng.git has added or updated architecture specific content in its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/zlib-ng.git/commit/?id=e394c98c6e....
Change:
+ExclusiveArch: aarch64 i686 ppc64le s390x x86_64
Thanks.
Full change:
============
commit bcf711567a05918e10feb9a118fe1dfb799bc3e4
Merge: f35eb22 25ab31f
Author: Tulio Magno Quites Machado Filho <tuliom(a)ascii.art.br>
Date: Thu Jul 9 11:00:45 2020 -0300
Merge the patches reviewed in BZ #1853120
commit f35eb222b873adc2fcc7ef3f356254c911ad77f8
Author: Tulio Magno Quites Machado Filho <tuliom(a)ascii.art.br>
Date: Mon Jul 6 21:29:40 2020 -0300
Fix issues pointed out during package review
- 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.
- Fix license name.
- Start the summary with a capitalized character.
diff --git a/zlib-ng.spec b/zlib-ng.spec
index b9ec375..60505c4 100644
--- a/zlib-ng.spec
+++ b/zlib-ng.spec
@@ -4,11 +4,11 @@
Name: zlib-ng
Version: 1.9.9
-Release: 0.%{commitdate}git%{shortcommit}%{?dist}
-Summary: zlib replacement with optimizations
-License: Zlib
+Release: 0.1.%{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
+Source0:
https://github.com/zlib-ng/zlib-ng/archive/%{commit}/%{name}-%{shortcommi...
# Be explicit about the soname in order to avoid unintentional changes.
%global soname libz-ng.so.1.9.9
@@ -22,7 +22,7 @@ systems.
%package devel
Summary: Development files for %{name}
-Requires: %{name} = %{version}-%{release}
+Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains static libraries and header files for
@@ -43,11 +43,8 @@ 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
@@ -55,9 +52,19 @@ ctest -V
%files devel
%{_includedir}/zconf-ng.h
%{_includedir}/zlib-ng.h
+%{_libdir}/libz-ng.so
%{_datadir}/pkgconfig/%{name}.pc
-%{_mandir}/man3/%{name}.3.gz
+# Glob the extension in case the compression changes in the future.
+%{_mandir}/man3/%{name}.3.*
%changelog
+* Mon Jul 06 2020 Tulio Magno Quites Machado Filho <tuliom(a)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
+
* Wed Jul 01 2020 Tulio Magno Quites Machado Filho <tuliom(a)ascii.art.br> -
1.9.9-0.20200609gitfe69810c2
- Initial commit
commit e394c98c6e84aeded616bc68b1b298279da8422b
Author: Tulio Magno Quites Machado Filho <tuliom(a)linux.ibm.com>
Date: Wed Jul 1 23:03:53 2020 -0300
Initial commit
diff --git a/zlib-ng.spec b/zlib-ng.spec
new file mode 100644
index 0000000..b9ec375
--- /dev/null
+++ b/zlib-ng.spec
@@ -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(a)ascii.art.br> -
1.9.9-0.20200609gitfe69810c2
+- Initial commit