Clean up ancient Fedora and RHEL conditionals
RHEL-5 reached EOL in March of 2017. Fedora-24 is similarly EOL.
This commit is contained in:
parent
434c418ed5
commit
a61baffdc8
16
znc.spec
16
znc.spec
|
@ -30,9 +30,9 @@ BuildRequires: libicu-devel
|
||||||
BuildRequires: openssl-devel >= 0.9.8
|
BuildRequires: openssl-devel >= 0.9.8
|
||||||
BuildRequires: perl(ExtUtils::Embed)
|
BuildRequires: perl(ExtUtils::Embed)
|
||||||
|
|
||||||
%if (0%{?fedora} && 0%{?fedora} <= 24) || (0%{?rhel} && 0%{?rhel} <= 9)
|
%if 0%{?rhel} && 0%{?rhel} <= 9
|
||||||
Obsoletes: znc-extra <= %{version}-%{release}
|
Obsoletes: znc-extra <= %{version}-%{release}
|
||||||
%endif # (0%{?fedora} && 0%{?fedora} <= 24) || (0%{?rhel} && 0%{?rhel} <= 9)
|
%endif # 0%{?rhel} && 0%{?rhel} <= 9
|
||||||
|
|
||||||
Requires(pre): shadow-utils
|
Requires(pre): shadow-utils
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
|
@ -135,21 +135,12 @@ chmod -x modules/q.cpp
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
||||||
%__rm -Rf "%{buildroot}"
|
|
||||||
%endif # 0%{?rhel} && 0%{?rhel} <= 5
|
|
||||||
%__make install DESTDIR="%{buildroot}"
|
%__make install DESTDIR="%{buildroot}"
|
||||||
mkdir -p %buildroot%{_unitdir}
|
mkdir -p %buildroot%{_unitdir}
|
||||||
#install -m 0644 %{SOURCE1} %buildroot%{_unitdir}/znc.service
|
#install -m 0644 %{SOURCE1} %buildroot%{_unitdir}/znc.service
|
||||||
install -d "%{buildroot}%{_sharedstatedir}/znc"
|
install -d "%{buildroot}%{_sharedstatedir}/znc"
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?rhel} && 0%{?rhel} <= 5
|
|
||||||
%clean
|
|
||||||
%__rm -Rf "%{buildroot}"
|
|
||||||
%endif # 0%{?rhel} && 0%{?rhel} <= 5
|
|
||||||
|
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
getent group znc >/dev/null || groupadd -r znc
|
getent group znc >/dev/null || groupadd -r znc
|
||||||
getent passwd znc >/dev/null || \
|
getent passwd znc >/dev/null || \
|
||||||
|
@ -259,6 +250,9 @@ getent passwd znc >/dev/null || \
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Aug 24 2018 Todd Zullinger <tmz@pobox.com>
|
||||||
|
- Clean up ancient Fedora and RHEL conditionals
|
||||||
|
|
||||||
* Mon Jul 23 2018 Nick Bebout <nb@fedoraproject.org> - 1.7.1-2
|
* Mon Jul 23 2018 Nick Bebout <nb@fedoraproject.org> - 1.7.1-2
|
||||||
- Add gcc-c++ and redhat-rpm-config to znc-devel's dependencies
|
- Add gcc-c++ and redhat-rpm-config to znc-devel's dependencies
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue