New upstream release

This commit is contained in:
Lennart Poettering 2011-02-17 23:19:42 +01:00
parent 2986dea518
commit 6c55f71c99
3 changed files with 41 additions and 26 deletions

6
.gitignore vendored
View File

@ -1 +1,5 @@
rtkit-0.9.tar.gz
.build-*.log
x86_64/
rtkit-*.src.rpm
/rtkit-0.9.tar.gz
/rtkit-0.10.tar.gz

View File

@ -1,19 +1,22 @@
Name: rtkit
Version: 0.9
Release: 3%{?dist}
Summary: Realtime Policy and Watchdog Daemon
Group: System Environment/Base
Name: rtkit
Version: 0.10
Release: 1%{?dist}
Summary: Realtime Policy and Watchdog Daemon
Group: System Environment/Base
# The daemon itself is GPLv3+, the reference implementation for the client BSD
License: GPLv3+ and BSD
URL: http://git.0pointer.de/?p=rtkit.git
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: dbus
Requires: polkit
Requires: systemd-units
BuildRequires: dbus-devel >= 1.2
BuildRequires: libcap-devel
BuildRequires: polkit-devel
Source0: http://0pointer.de/public/%{name}-%{version}.tar.gz
License: GPLv3+ and BSD
URL: http://git.0pointer.de/?p=rtkit.git
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires: dbus
Requires: polkit
Requires: systemd-units
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
BuildRequires: dbus-devel >= 1.2
BuildRequires: libcap-devel
BuildRequires: polkit-devel
Source0: http://0pointer.de/public/%{name}-%{version}.tar.gz
%description
RealtimeKit is a D-Bus system service that changes the
@ -41,28 +44,33 @@ rm -rf $RPM_BUILD_ROOT
%pre
getent group rtkit >/dev/null 2>&1 || groupadd \
-r \
-g 172 \
rtkit
-g 172 \
rtkit
getent passwd rtkit >/dev/null 2>&1 || useradd \
-r -l \
-u 172 \
-g rtkit \
-u 172 \
-g rtkit \
-d /proc \
-s /sbin/nologin \
-s /sbin/nologin \
-c "RealtimeKit" \
rtkit
rtkit
:;
%post
if [ $1 -eq 1 ]; then
/bin/systemctl enable rtkit.service >/dev/null 2>&1 || :
fi
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
/usr/bin/systemd-install enable --realize=minimal rtkit-daemon.service >/dev/null 2>&1 || :
/bin/systemctl enable rtkit-daemon.service >/dev/null 2>&1 || :
%preun
if [ "$1" -eq 0 ]; then
/bin/systemctl disable rtkit-daemon.service >/dev/null 2>&1 || :
/bin/systemctl --no-reload disable rtkit-daemon.service >/dev/null 2>&1 || :
/bin/systemctl stop rtkit-daemon.service >/dev/null 2>&1 || :
fi
%postun
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
%files
%defattr(0644,root,root,0755)
%doc README GPL LICENSE rtkit.c rtkit.h
@ -76,6 +84,9 @@ fi
%{_mandir}/man8/*
%changelog
* Thu Feb 17 2011 Lennart Poettering <lpoetter@redhat.com> - 0.10-1
- new upstream release
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

View File

@ -1 +1 @@
9d0b8893c5eb17cc58635bb867b23165 rtkit-0.9.tar.gz
9ab7f2a25ddf05584ea2216dfe4cefd4 rtkit-0.10.tar.gz