Group :: System/Kernel and hardware
RPM: givertcap
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Name: givertcap
Version: 1.0
Release: alt4.1
Group: System/Kernel and hardware
Summary: GIVERTCAP gives other application real-time capabilities
Summary(ru_RU.KOI8-R): Givertcap предоставляет приложениям возможность работать в режиме реального времени
License: GPL
Url: http://www.tml.hut.fi/~tilmonen/givertcap
Packager: Yuri N. Sedunov <aris at altlinux.ru>
Source: %url/%name.c
Source1: givertcap.html
Source2: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/capfaq-0.2.txt
Patch: %name-1.0-ccrma.patch
# Automatically added by buildreq on Mon Jul 14 2003
BuildRequires: gcc-c++ libcap-devel libstdc++-devel
%description
With the aid of givertcap you can run real-time applications (audio and
video- processing apps for example) with high priority without running
the application as root. Your application does get a collection
capabilities that allow it to run at very high priority. Givertcap was
created to overcome the lack of capability support in Linux file
systems. Once the Linux file systems start to have the necessary
functions themselves, this apps becomes unnecessary.
%description -l ru_RU.KOI8-R
При помощи givertcap вы можете запускать требующие real-time режима
приложения с высоким приоритетом без прав суперпользователя. Когда-нибудь,
когда файловые системы для Linux начнуть предоставлять нужную
функциональность сами по себе, необходимость в givertcap отомрёт
естественным образом.
# We want to limit the number of people who can access this application.
%define GROUP rtusers
%prep
%setup -T -c %name-%version
%__cp %SOURCE0 $RPM_BUILD_DIR/%name-%version
%patch -p1
%build
%__cxx $RPM_OPT_FLAGS %name.c -o %name -lcap
%install
%__install -pD %name %buildroot%_bindir/%name
%__install -d %buildroot%_docdir/%name-%version
%__install -pD -m644 %SOURCE1 %SOURCE2 %buildroot%_docdir/%name-%version
# Applications using %name needs environment variable GIVERTCAP.
cat << EOF >%name.sh
#!/bin/sh
GIVERTCAP="%_bindir/%name"
export GIVERTCAP
EOF
cat << EOF >%name.csh
#!/bin/csh
setenv GIVERTCAP "%_bindir/%name"
EOF
%__install -d %buildroot%_sysconfdir/profile.d
%__install -pD -m755 %name.sh %name.csh %buildroot%_sysconfdir/profile.d
%pre
# We need to create group %GROUP
%_sbindir/groupadd -r -f %GROUP ||:
%files
%attr(4710,root,%GROUP) %_bindir/%name
%_docdir/%name-%version/*
%_sysconfdir/profile.d/*
%changelog
…
Full changelog you can see here
Version: 1.0
Release: alt4.1
Group: System/Kernel and hardware
Summary: GIVERTCAP gives other application real-time capabilities
Summary(ru_RU.KOI8-R): Givertcap предоставляет приложениям возможность работать в режиме реального времени
License: GPL
Url: http://www.tml.hut.fi/~tilmonen/givertcap
Packager: Yuri N. Sedunov <aris at altlinux.ru>
Source: %url/%name.c
Source1: givertcap.html
Source2: http://ftp.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.4/capfaq-0.2.txt
Patch: %name-1.0-ccrma.patch
# Automatically added by buildreq on Mon Jul 14 2003
BuildRequires: gcc-c++ libcap-devel libstdc++-devel
%description
With the aid of givertcap you can run real-time applications (audio and
video- processing apps for example) with high priority without running
the application as root. Your application does get a collection
capabilities that allow it to run at very high priority. Givertcap was
created to overcome the lack of capability support in Linux file
systems. Once the Linux file systems start to have the necessary
functions themselves, this apps becomes unnecessary.
%description -l ru_RU.KOI8-R
При помощи givertcap вы можете запускать требующие real-time режима
приложения с высоким приоритетом без прав суперпользователя. Когда-нибудь,
когда файловые системы для Linux начнуть предоставлять нужную
функциональность сами по себе, необходимость в givertcap отомрёт
естественным образом.
# We want to limit the number of people who can access this application.
%define GROUP rtusers
%prep
%setup -T -c %name-%version
%__cp %SOURCE0 $RPM_BUILD_DIR/%name-%version
%patch -p1
%build
%__cxx $RPM_OPT_FLAGS %name.c -o %name -lcap
%install
%__install -pD %name %buildroot%_bindir/%name
%__install -d %buildroot%_docdir/%name-%version
%__install -pD -m644 %SOURCE1 %SOURCE2 %buildroot%_docdir/%name-%version
# Applications using %name needs environment variable GIVERTCAP.
cat << EOF >%name.sh
#!/bin/sh
GIVERTCAP="%_bindir/%name"
export GIVERTCAP
EOF
cat << EOF >%name.csh
#!/bin/csh
setenv GIVERTCAP "%_bindir/%name"
EOF
%__install -d %buildroot%_sysconfdir/profile.d
%__install -pD -m755 %name.sh %name.csh %buildroot%_sysconfdir/profile.d
%pre
# We need to create group %GROUP
%_sbindir/groupadd -r -f %GROUP ||:
%files
%attr(4710,root,%GROUP) %_bindir/%name
%_docdir/%name-%version/*
%_sysconfdir/profile.d/*
%changelog
…
Full changelog you can see here