We talked about using %patch, but in that case I would need a tarball of systemd in rpm-macros package which depends on xz which is part of many circles.

OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=399
This commit is contained in:
2013-06-19 11:05:44 +00:00
committed by Git OBS Bridge
parent 241ea58f75
commit 76fbb20193
5 changed files with 91 additions and 16 deletions

View File

@@ -105,6 +105,7 @@ Source6: baselibs.conf
Source7: libgcrypt.m4
Source8: systemd-journald.init
Source9: nss-myhostname-config
Source10: macros.systemd.upstream
Source1060: boot.udev
Source1061: write_dev_root_rule
@@ -210,9 +211,7 @@ Summary: Development headers for systemd
License: LGPL-2.1+
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
%if 0%{suse_version} > 1230
Requires: systemd-rpm-macros
%endif
%if 0%{?bootstrap}
Conflicts: systemd-devel
%endif
@@ -365,6 +364,8 @@ This package marks the installation to not use syslog but only the journal.
%prep
%setup -q -n systemd-%{version}
echo "Checking whether upstream rpm macros changed..."
[ -z "`diff -Naru "%{S:10}" src/core/macros.systemd.in`" ] || exit 1
# only needed for bootstrap
%if 0%{?bootstrap}
@@ -488,13 +489,7 @@ sed -ie "s|@@PREFIX@@|%{_prefix}/lib/udev|g" %{S:1062}
install -m644 -D %{S:1062} $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system/systemd-udev-root-symlink.service
mkdir -p $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system/basic.target.wants
ln -sf ../systemd-udev-root-symlink.service $RPM_BUILD_ROOT/%{_prefix}/lib/systemd/system/basic.target.wants
%if 0%{suse_version} < 1310
mkdir -p %{buildroot}%{_sysconfdir}/rpm
install -m644 %{S:4} %{buildroot}%{_sysconfdir}/rpm
%else
rm -rf %{buildroot}%{_sysconfdir}/rpm
%endif
find %{buildroot} -type f -name '*.la' -delete
mkdir -p %{buildroot}/{sbin,var/lib/systemd/sysv-convert,var/lib/systemd/migrated} %{buildroot}/usr/lib/systemd/{system-generators,user-generators,system-preset,user-preset,system/halt.target.wants,system/kexec.target.wants,system/poweroff.target.wants,system/reboot.target.wants}