rtkit: modify source0 url

Signed-off-by: chengguipeng <chengguipeng1@huawei.com>
This commit is contained in:
chengguipeng 2020-09-11 14:13:42 +08:00
parent 07a61cecee
commit 70a412561c
4 changed files with 25 additions and 6 deletions

Binary file not shown.

BIN
rtkit-0.11.tar.xz Normal file

Binary file not shown.

12
rtkit-mq_getattr.patch Normal file
View File

@ -0,0 +1,12 @@
diff --git a/configure.ac b/configure.ac
index 5a77363..45721a5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -112,6 +112,7 @@ CC="$PTHREAD_CC"
AC_SEARCH_LIBS([sched_setscheduler], [rt])
AC_SEARCH_LIBS([clock_gettime], [rt])
+AC_SEARCH_LIBS([mq_getattr], [rt])
AC_SEARCH_LIBS([cap_init], [cap])
PKG_CHECK_MODULES(DBUS, dbus-1)

View File

@ -1,11 +1,13 @@
%global revision 20161005 %global revision 20161005
Name: rtkit Name: rtkit
Version: 0.11 Version: 0.11
Release: 26 Release: 27
Summary: REALTIMEKIT Realtime Policy and Watchdog Daemon Summary: REALTIMEKIT Realtime Policy and Watchdog Daemon
License: GPLv3+ and BSD License: GPLv3+ and BSD
URL: http://git.0pointer.de/?p=rtkit.git URL: http://git.0pointer.de/
Source0: %{name}-%{version}-%{revision}.tar.xz Source0: http://0pointer.de/public/%{name}-%{version}.tar.xz
Patch0001: rtkit-mq_getattr.patch
BuildRequires: systemd dbus-devel libcap-devel polkit-devel libtool autoconf automake BuildRequires: systemd dbus-devel libcap-devel polkit-devel libtool autoconf automake
Requires: dbus polkit Requires: dbus polkit
@ -22,10 +24,9 @@ be used as a secure mechanism to allow real-time scheduling to
be used by normal user processes. be used by normal user processes.
%prep %prep
%autosetup -n %{name}-%{version}-%{revision} -p1 %autosetup -n %{name}-%{version} -p1
%build %build
./autogen.sh
autoreconf -vif autoreconf -vif
export CFLAGS="%{optflags} -Wno-error=format-security" export CFLAGS="%{optflags} -Wno-error=format-security"
%configure --with-systemdsystemunitdir=%{_unitdir} %configure --with-systemdsystemunitdir=%{_unitdir}
@ -35,7 +36,7 @@ export CFLAGS="%{optflags} -Wno-error=format-security"
%install %install
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
mkdir %{buildroot}%{_datadir}/dbus-1/interfaces/ mkdir %{buildroot}%{_datadir}/dbus-1/interfaces/
cp %{_builddir}/%{name}-%{version}-%{revision}/org.freedesktop.RealtimeKit1.xml \ cp %{_builddir}/%{name}-%{version}/org.freedesktop.RealtimeKit1.xml \
%{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
%pre %pre
@ -70,6 +71,12 @@ dbus-send --system --type=method_call \
%{_mandir}/man8/rtkitctl.8.gz %{_mandir}/man8/rtkitctl.8.gz
%changelog %changelog
* Fri Sep 11 2020 chengguipeng<chengguipeng1@huawei.com> - 0.11-27
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:modify source0 url
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.11-26 * Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 0.11-26
- Type:bugfix - Type:bugfix
- ID:NA - ID:NA