Crash and virt host supported on ppc64le and aarch64, Move chkconfig to traditional initscripts deps (not required for systemd), spec cleanups

This commit is contained in:
Peter Robinson 2018-10-14 22:14:52 +01:00
parent 227f3127ce
commit e6b0de4db8

View File

@ -4,7 +4,7 @@
%{!?with_htmldocs: %global with_htmldocs 0} %{!?with_htmldocs: %global with_htmldocs 0}
%{!?with_monitor: %global with_monitor 1} %{!?with_monitor: %global with_monitor 1}
# crash is not available # crash is not available
%ifarch ppc ppc64 %{sparc} aarch64 ppc64le %{mips} %ifarch ppc ppc64 %{sparc} %{mips}
%{!?with_crash: %global with_crash 0} %{!?with_crash: %global with_crash 0}
%else %else
%{!?with_crash: %global with_crash 1} %{!?with_crash: %global with_crash 1}
@ -39,9 +39,12 @@
%{!?with_python3_probes: %global with_python3_probes (0%{?fedora} >= 23 || 0%{?rhel} > 7)} %{!?with_python3_probes: %global with_python3_probes (0%{?fedora} >= 23 || 0%{?rhel} > 7)}
%{!?with_httpd: %global with_httpd 0} %{!?with_httpd: %global with_httpd 0}
# Virt is supported on these arches, even on el7, but it's not in core EL7
%if 0%{?rhel} <= 7
%ifarch ppc64le aarch64 %ifarch ppc64le aarch64
%global with_virthost 0 %global with_virthost 0
%endif %endif
%endif
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 6 %if 0%{?fedora} >= 18 || 0%{?rhel} >= 6
%define initdir %{_initddir} %define initdir %{_initddir}
@ -84,7 +87,7 @@
Name: systemtap Name: systemtap
Version: 4.0 Version: 4.0
Release: 1%{?release_override}%{?dist} Release: 2%{?release_override}%{?dist}
# for version, see also configure.ac # for version, see also configure.ac
@ -116,7 +119,6 @@ Release: 1%{?release_override}%{?dist}
# intermediary stap-server for --use-server: systemtap-server (-devel unused) # intermediary stap-server for --use-server: systemtap-server (-devel unused)
Summary: Programmable system-wide instrumentation system Summary: Programmable system-wide instrumentation system
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz Source: ftp://sourceware.org/pub/systemtap/releases/systemtap-%{version}.tar.gz
@ -221,7 +223,6 @@ the components needed to locally develop and execute systemtap scripts.
%package server %package server
Summary: Instrumentation System Server Summary: Instrumentation System Server
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap-devel = %{version}-%{release} Requires: systemtap-devel = %{version}-%{release}
@ -231,8 +232,6 @@ Conflicts: systemtap-client < %{version}-%{release}
Requires: nss coreutils Requires: nss coreutils
Requires: zip unzip Requires: zip unzip
Requires(pre): shadow-utils Requires(pre): shadow-utils
Requires(post): chkconfig
Requires(preun): chkconfig
BuildRequires: nss-devel avahi-devel BuildRequires: nss-devel avahi-devel
%if %{with_openssl} %if %{with_openssl}
Requires: openssl Requires: openssl
@ -240,6 +239,8 @@ Requires: openssl
%if %{with_systemd} %if %{with_systemd}
Requires: systemd Requires: systemd
%else %else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts Requires(preun): initscripts
Requires(postun): initscripts Requires(postun): initscripts
%endif %endif
@ -252,7 +253,6 @@ compiles systemtap scripts to kernel objects on their demand.
%package devel %package devel
Summary: Programmable system-wide instrumentation system - development headers, tools Summary: Programmable system-wide instrumentation system - development headers, tools
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
# The virtual provide 'kernel-devel-uname-r' tries to get the right # The virtual provide 'kernel-devel-uname-r' tries to get the right
@ -277,7 +277,6 @@ a copy of the standard tapset library and the runtime library C files.
%package runtime %package runtime
Summary: Programmable system-wide instrumentation system - runtime Summary: Programmable system-wide instrumentation system - runtime
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires(pre): shadow-utils Requires(pre): shadow-utils
@ -293,7 +292,6 @@ using a local or remote systemtap-devel installation.
%package client %package client
Summary: Programmable system-wide instrumentation system - client Summary: Programmable system-wide instrumentation system - client
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: zip unzip Requires: zip unzip
@ -317,15 +315,14 @@ documentation, and a copy of the tapset library for reference.
%package initscript %package initscript
Summary: Systemtap Initscripts Summary: Systemtap Initscripts
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap = %{version}-%{release} Requires: systemtap = %{version}-%{release}
Requires(post): chkconfig
Requires(preun): chkconfig
%if %{with_systemd} %if %{with_systemd}
Requires: systemd Requires: systemd
%else %else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts Requires(preun): initscripts
Requires(postun): initscripts Requires(postun): initscripts
%endif %endif
@ -338,7 +335,6 @@ boot-time probing if supported.
%package sdt-devel %package sdt-devel
Summary: Static probe support tools Summary: Static probe support tools
Group: Development/System
License: GPLv2+ and Public Domain License: GPLv2+ and Public Domain
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
%if %{with_pyparsing} %if %{with_pyparsing}
@ -362,7 +358,6 @@ with the optional dtrace-compatibility preprocessor to process related
%package testsuite %package testsuite
Summary: Instrumentation System Testsuite Summary: Instrumentation System Testsuite
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap = %{version}-%{release} Requires: systemtap = %{version}-%{release}
@ -420,7 +415,6 @@ systemtap on the current system.
%if %{with_java} %if %{with_java}
%package runtime-java %package runtime-java
Summary: Systemtap Java Runtime Support Summary: Systemtap Java Runtime Support
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap-runtime = %{version}-%{release} Requires: systemtap-runtime = %{version}-%{release}
@ -435,7 +429,6 @@ that probe Java processes running on the OpenJDK runtimes using Byteman.
%if %{with_python2_probes} %if %{with_python2_probes}
%package runtime-python2 %package runtime-python2
Summary: Systemtap Python 2 Runtime Support Summary: Systemtap Python 2 Runtime Support
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap-runtime = %{version}-%{release} Requires: systemtap-runtime = %{version}-%{release}
@ -448,7 +441,6 @@ that probe python 2 processes.
%if %{with_python3_probes} %if %{with_python3_probes}
%package runtime-python3 %package runtime-python3
Summary: Systemtap Python 3 Runtime Support Summary: Systemtap Python 3 Runtime Support
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap-runtime = %{version}-%{release} Requires: systemtap-runtime = %{version}-%{release}
@ -466,7 +458,6 @@ that probe python 3 processes.
%if %{with_python3} %if %{with_python3}
%package exporter %package exporter
Summary: Systemtap-prometheus interoperation mechanism Summary: Systemtap-prometheus interoperation mechanism
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap-runtime = %{version}-%{release} Requires: systemtap-runtime = %{version}-%{release}
@ -480,7 +471,6 @@ to remote requesters on demand.
%if %{with_virthost} %if %{with_virthost}
%package runtime-virthost %package runtime-virthost
Summary: Systemtap Cross-VM Instrumentation - host Summary: Systemtap Cross-VM Instrumentation - host
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: libvirt >= 1.0.2 Requires: libvirt >= 1.0.2
@ -495,7 +485,6 @@ connection.
%if %{with_virtguest} %if %{with_virtguest}
%package runtime-virtguest %package runtime-virtguest
Summary: Systemtap Cross-VM Instrumentation - guest Summary: Systemtap Cross-VM Instrumentation - guest
Group: Development/System
License: GPLv2+ License: GPLv2+
URL: http://sourceware.org/systemtap/ URL: http://sourceware.org/systemtap/
Requires: systemtap-runtime = %{version}-%{release} Requires: systemtap-runtime = %{version}-%{release}
@ -649,7 +638,6 @@ make %{?_smp_mflags}
%endif %endif
%install %install
rm -rf ${RPM_BUILD_ROOT}
make DESTDIR=$RPM_BUILD_ROOT install make DESTDIR=$RPM_BUILD_ROOT install
%find_lang %{name} %find_lang %{name}
for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do for dir in $(ls -1d $RPM_BUILD_ROOT%{_mandir}/{??,??_??}) ; do
@ -1036,7 +1024,6 @@ done
# The master "systemtap" rpm doesn't include any files. # The master "systemtap" rpm doesn't include any files.
%files server -f systemtap.lang %files server -f systemtap.lang
%defattr(-,root,root)
%{_bindir}/stap-server %{_bindir}/stap-server
%dir %{_libexecdir}/systemtap %dir %{_libexecdir}/systemtap
%{_libexecdir}/systemtap/stap-serverd %{_libexecdir}/systemtap/stap-serverd
@ -1109,7 +1096,6 @@ done
%files runtime -f systemtap.lang %files runtime -f systemtap.lang
%defattr(-,root,root)
%attr(4110,root,stapusr) %{_bindir}/staprun %attr(4110,root,stapusr) %{_bindir}/staprun
%{_bindir}/stapsh %{_bindir}/stapsh
%{_bindir}/stap-merge %{_bindir}/stap-merge
@ -1145,7 +1131,6 @@ done
%files client -f systemtap.lang %files client -f systemtap.lang
%defattr(-,root,root)
%doc README README.unprivileged AUTHORS NEWS %doc README README.unprivileged AUTHORS NEWS
%{_datadir}/systemtap/examples %{_datadir}/systemtap/examples
%{!?_licensedir:%global license %%doc} %{!?_licensedir:%global license %%doc}
@ -1175,7 +1160,6 @@ done
%files initscript %files initscript
%defattr(-,root,root)
%if %{with_systemd} %if %{with_systemd}
%{_unitdir}/systemtap.service %{_unitdir}/systemtap.service
%{_sbindir}/systemtap-service %{_sbindir}/systemtap-service
@ -1197,7 +1181,6 @@ done
%files sdt-devel %files sdt-devel
%defattr(-,root,root)
%{_bindir}/dtrace %{_bindir}/dtrace
%{_includedir}/sys/sdt.h %{_includedir}/sys/sdt.h
%{_includedir}/sys/sdt-config.h %{_includedir}/sys/sdt-config.h
@ -1209,7 +1192,6 @@ done
%files testsuite %files testsuite
%defattr(-,root,root)
%dir %{_datadir}/systemtap %dir %{_datadir}/systemtap
%{_datadir}/systemtap/testsuite %{_datadir}/systemtap/testsuite
@ -1271,6 +1253,11 @@ done
# PRERELEASE # PRERELEASE
%changelog %changelog
* Sun Oct 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 4.0-2
- Crash and virt host supported on ppc64le and aarch64
- Move chkconfig to traditional initscripts deps
- Minor spec cleanups
* Sat Oct 13 2018 Frank Ch. Eigler <fche@redhat.com> - 4.0-1 * Sat Oct 13 2018 Frank Ch. Eigler <fche@redhat.com> - 4.0-1
- Upstream release. - Upstream release.