You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
87 lines
2.5 KiB
87 lines
2.5 KiB
Name: kshutdown
|
|
Summary: An advanced shut down utility for TDE
|
|
Version: 1.0.4
|
|
Release: 1mdk
|
|
License: GPL
|
|
Group: Graphical desktop/TDE
|
|
Source: %{name}-%{version}.tar.bz2
|
|
BuildRoot: %{_tmppath}/build-root-%{name}
|
|
Packager: Zdenko Podobny
|
|
Distribution: mdk
|
|
Prefix: /usr
|
|
Url: http://kshutdown.sourceforge.net
|
|
Provides: kshutdown
|
|
Requires: tdelibs >= 3.3.0
|
|
|
|
%description
|
|
KShutDown is an advanced shut down utility for TDE.
|
|
Features:
|
|
- Turn Off Computer (logout and halt the system)
|
|
- Restart Computer (logout and reboot the system)
|
|
- Lock Session (lock the screen using a screen saver)
|
|
- End Current Session (end the current TDE session and logout the user)
|
|
- Extras (additional, user commands)
|
|
- Time and delay options
|
|
- Command line and DCOP support
|
|
- System tray and panel applet
|
|
- Visual and sound notifications
|
|
- TDE Kiosk support
|
|
- And more...
|
|
|
|
%prep
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir $RPM_BUILD_ROOT
|
|
|
|
%setup -q
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
|
|
./configure --prefix=%{prefix}
|
|
make -j 2
|
|
|
|
%install
|
|
make DESTDIR=$RPM_BUILD_ROOT install-strip
|
|
|
|
cd $RPM_BUILD_ROOT
|
|
|
|
find . -type d -fprint $RPM_BUILD_DIR/file.list.%{name}.dirs
|
|
find . -type f -fprint $RPM_BUILD_DIR/file.list.%{name}.files.tmp
|
|
sed '/\/man\//s/$/.gz/g' $RPM_BUILD_DIR/file.list.%{name}.files.tmp > $RPM_BUILD_DIR/file.list.%{name}.files
|
|
find . -type l -fprint $RPM_BUILD_DIR/file.list.%{name}.libs
|
|
sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' $RPM_BUILD_DIR/file.list.%{name}.dirs > $RPM_BUILD_DIR/file.list.%{name}
|
|
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.files >> $RPM_BUILD_DIR/file.list.%{name}
|
|
sed 's,^\.,\%attr(-\,root\,root) ,' $RPM_BUILD_DIR/file.list.%{name}.libs >> $RPM_BUILD_DIR/file.list.%{name}
|
|
|
|
install -d -m 0755 %buildroot/%_menudir
|
|
cat > %buildroot/%_menudir/%{name} <<EOF
|
|
?package(kshutdown): needs=x11 section="System/Other" longtitle="KShutDown - advanced shut down utility" title="KShutDown" command="kshutdown" icon="kshutdown.png"
|
|
EOF
|
|
|
|
%post
|
|
%update_menus
|
|
|
|
%postun
|
|
%clean_menus
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_DIR/file.list.%{name}
|
|
rm -rf $RPM_BUILD_DIR/file.list.%{name}.libs
|
|
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files
|
|
rm -rf $RPM_BUILD_DIR/file.list.%{name}.files.tmp
|
|
rm -rf $RPM_BUILD_DIR/file.list.%{name}.dirs
|
|
|
|
%files -f ../file.list.%{name}
|
|
%_menudir/*
|
|
%defattr(-,root,root,0755)
|
|
|
|
%changelog
|
|
* Sat Nov 26 2005 Konrad Twardowski
|
|
- updated description
|
|
|
|
* Mon Aug 1 2005 Konrad Twardowski
|
|
- removed "tdebase" from "Requires"
|
|
|
|
* Sat Jun 19 2004 Zdenko Podobný <zdpo@mailbox.sk> 0.1.8-1mdk
|
|
- initial version
|