File fedora.rpm.macros of Package rpm-macros-extra

# Macros absent in Fedora

%wx_provides %_rpmconfigdir/find-provides
%wx_requires %_rpmconfigdir/find-requires "%{buildroot}"

%cmake_install make DESTDIR=%{buildroot} install/fast

%ctest ctest --output-on-failure --force-new-ctest-process


%stop_on_removal() \
	if [ "$1" = "0" -a -x /bin/systemctl ]; then \
		for service in %{?*}; do \
			/bin/systemctl stop $service >/dev/null 2>&1 ||: \
		done \
	fi \
	%nil

%restart_on_update() \
	if [ "$1" -ge 1 -a -x /bin/systemctl ]; then \
		/bin/systemctl daemon-reload >/dev/null 2>&1 ||: \
		for service in %{?*}; do \
			/bin/systemctl try-restart $service >/dev/null 2>&1 ||: \
		done \
	fi \
	%nil

%fillup_only() %nil

%py_ver %python_version

%_rundir /run
openSUSE Build Service is sponsored by