[kshutdown] Cleanup.
Christopher Meng
cicku at fedoraproject.org
Mon Mar 3 06:22:35 UTC 2014
commit 704c52e58b5895a76d2131550ea9ef5c8b347ffd
Author: Christopher Meng <i at cicku.me>
Date: Mon Mar 3 14:23:06 2014 +0800
Cleanup.
kshutdown.spec | 30 ++++++++----------------------
1 files changed, 8 insertions(+), 22 deletions(-)
---
diff --git a/kshutdown.spec b/kshutdown.spec
index 76d8928..784f11f 100644
--- a/kshutdown.spec
+++ b/kshutdown.spec
@@ -2,65 +2,52 @@ Name: kshutdown
Version: 3.2
Release: 1%{?dist}
Summary: Graphical shutdown utility for KDE 4
-
-Group: Applications/System
License: GPLv2
-
URL: http://kshutdown.sourceforge.net/
# Package from svn snapshots, create example:
-# svn export http://svn.code.sf.net/p/kshutdown/code/trunk/kshutdown2 kshutdown-3.0
+# svn export http://svn.code.sf.net/p/kshutdown/code/trunk/kshutdown2 kshutdown-3.0
# tar -cJvf kshutdown-3.0.tar.xz kshutdown-3.0
-Source: http://sourceforge.net/projects/%{name}/files/KShutdown/3.2/%{name}-source-%{version}.zip
-
-BuildRequires: gettext
+Source0: http://sourceforge.net/projects/%{name}/files/KShutdown/%{version}/%{name}-source-%{version}.zip
BuildRequires: desktop-file-utils
+BuildRequires: gettext
BuildRequires: kdelibs4-devel
-
%description
-KShutdown is a graphical shutdown utility for Linux and Windows. It allows you to turn off
+KShutdown is a graphical shutdown utility which allows you to turn off
or suspend computer at the specified time. It features various time and delay
options, command line support, and notifications.
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd
-
make %{?_smp_mflags} -C %{_target_platform}
-
%install
-make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
+make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%find_lang %{name} --with-kde --all-name
-
%check
desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/kshutdown.desktop
-
%post
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
-
%postun
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &> /dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
fi
-
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
-
%files -f %{name}.lang
-%defattr(-,root,root,-)
-%doc LICENSE ChangeLog TODO
+%doc ChangeLog LICENSE TODO
%{_kde4_bindir}/kshutdown
%{_kde4_datadir}/kde4/apps/kshutdown/extras/*
%{_kde4_datadir}/kde4/apps/kshutdown/kshutdown.notifyrc
@@ -68,7 +55,6 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%{_kde4_datadir}/icons/hicolor/*/apps/kshutdown.png
%{_kde4_datadir}/icons/hicolor/*/apps/kshutdown.svgz
-
%changelog
* Sun Feb 23 2014 Jan Grulich <jgrulich at redhat.com> - 3.2-1
- update to 3.2
@@ -120,4 +106,4 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
- Changed post/postun , lang part & buildrequires
* Sun Mar 26 2006 Kushal Das <kushal at fedoraproject.org> 0.8.2-1
-- initial release
\ No newline at end of file
+- initial release
More information about the scm-commits
mailing list