Modernize spec file slightly for building on RHEL/CentOS 7 and 8
This commit is contained in:
parent
2198f30d06
commit
669cee7b3e
22
znc.spec
22
znc.spec
|
@ -1,7 +1,3 @@
|
|||
# This package depends on automagic byte compilation
|
||||
# https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation_phase_2
|
||||
%global _python_bytecompile_extra 1
|
||||
|
||||
# ZNC is a daemon application and that's why needs hardening
|
||||
%global _hardened_build 1
|
||||
|
||||
|
@ -17,7 +13,7 @@
|
|||
|
||||
Name: znc
|
||||
Version: 1.7.5
|
||||
Release: 3%{?dist}
|
||||
Release: 4%{?dist}
|
||||
Summary: An advanced IRC bouncer
|
||||
|
||||
License: ASL 2.0
|
||||
|
@ -97,19 +93,11 @@ Provides: perl(ZNC::Module) = %{version}-%{release}
|
|||
%package modpython
|
||||
Summary: Python3 module for ZNC
|
||||
|
||||
%if 0%{?rhel}
|
||||
BuildRequires: python34-devel
|
||||
%else
|
||||
BuildRequires: python3-devel
|
||||
%endif # 0%{?rhel}
|
||||
BuildRequires: python%{python3_pkgversion}-devel
|
||||
BuildRequires: swig
|
||||
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
%if 0%{?rhel}
|
||||
Requires: python34
|
||||
%else
|
||||
Requires: python3
|
||||
%endif # 0%{?rhel}
|
||||
Requires: python%{python3_pkgversion}
|
||||
|
||||
%description modpython
|
||||
%{summary}.
|
||||
|
@ -152,6 +140,7 @@ sed -ie 's!/usr/local/!/usr/!' man/znc.1
|
|||
%install
|
||||
%make_install
|
||||
install -d "%{buildroot}%{_sharedstatedir}/znc"
|
||||
%py_byte_compile %{__python3} %{buildroot}%{_libdir}/znc/
|
||||
|
||||
|
||||
%pre
|
||||
|
@ -223,6 +212,9 @@ getent passwd znc >/dev/null || \
|
|||
|
||||
|
||||
%changelog
|
||||
* Mon Apr 20 2020 Robert Scheck <robert@fedoraproject.org> - 1.7.5-4
|
||||
- Modernize spec file slightly for building on RHEL/CentOS 7 and 8
|
||||
|
||||
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-3
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
||||
|
||||
|
|
Loading…
Reference in New Issue