ad4bb0
Name:		gshutdown
ad4bb0
Version:	0.2        
8fade1
Release:	15%{?dist}
ad4bb0
Summary:	GShutDown is an advanced shut down utility for GNOME
ad4bb0
ad4bb0
Group:		Applications/System
5545d8
License:	GPLv2+
ad4bb0
URL:		http://gshutdown.tuxfamily.org/
9768c3
Source0:	http://gshutdown.tuxfamily.org/release/%{name}-%{version}.tar.gz
ad4bb0
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
ad4bb0
ad4bb0
BuildRequires:	libglade2-devel, desktop-file-utils
ad4bb0
BuildRequires:	libnotify-devel, glib2-devel, gettext
ad4bb0
213d5a
Patch0: gshutdown-0.2.libnotify-api.patch
213d5a
Patch1: gshutdown-0.2.explicitlink.patch
fc3f2e
Patch2: gshutdown-0.2-glib.patch
213d5a
ad4bb0
%description
ad4bb0
GShutdown is an advanced shutdown utility which
ad4bb0
allows you to schedule the shutdown or the restart
ad4bb0
of your computer, or logout your actual session.
ad4bb0
Also can be use under Xfce and KDE.
ad4bb0
ad4bb0
%prep
9768c3
%setup -q -n %{name}-%{version}
213d5a
%patch0 -p1 -b .libnotify-api
213d5a
%patch1 -p1 -b .explicitlink
fc3f2e
%patch2 -p1 -b .glib
ad4bb0
ad4bb0
%build
ad4bb0
%configure
ad4bb0
make %{?_smp_mflags}
ad4bb0
ad4bb0
ad4bb0
%install
ad4bb0
rm -rf $RPM_BUILD_ROOT
ad4bb0
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
ad4bb0
ad4bb0
desktop-file-install					\
ad4bb0
	--vendor ""					\
ad4bb0
	--dir $RPM_BUILD_ROOT/%{_datadir}/applications	\
ad4bb0
	--mode 0644					\
ad4bb0
	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
ad4bb0
ad4bb0
%find_lang %{name}
ad4bb0
ad4bb0
%clean
ad4bb0
rm -rf $RPM_BUILD_ROOT
ad4bb0
ad4bb0
ad4bb0
%post
ad4bb0
touch --no-create %{_datadir}/icons/hicolor || :
ad4bb0
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
ad4bb0
ad4bb0
%postun
ad4bb0
touch --no-create %{_datadir}/icons/hicolor || :
ad4bb0
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
ad4bb0
ad4bb0
ad4bb0
ad4bb0
%files -f %{name}.lang
ad4bb0
%defattr(-,root,root,-)
ad4bb0
%doc COPYING AUTHORS ChangeLog README
ad4bb0
%{_bindir}/%{name}
ad4bb0
%{_datadir}/%{name}
ad4bb0
%{_datadir}/applications/%{name}.desktop
ad4bb0
%{_mandir}/man1/%{name}.1.gz
ad4bb0
%{_datadir}/pixmaps/%{name}.png
ad4bb0
ad4bb0
ad4bb0
%changelog
8fade1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-15
8fade1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
8fade1
4c4f0b
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-14
4c4f0b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4c4f0b
e1e956
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-13
e1e956
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e1e956
fc3f2e
* Wed Aug 01 2012 Jon Ciesla <limburgher@gmail.com> - 0.2-12
fc3f2e
- Tom Lane's glib fixes for libpng15 rebuild, BZ 843648.
fc3f2e
61711a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-11
61711a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
61711a
e783d9
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-10
e783d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e783d9
d2475f
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.2-9
d2475f
- Rebuild for new libpng
d2475f
213d5a
* Thu Apr 07 2011 Caolán McNamara <caolanm@redhat.com> - 0.2-8
213d5a
- Resolves: rhbz#599784 rebuild for new libnotify api, etc.
213d5a
00825c
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-7
00825c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
00825c
c4a37d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-6
c4a37d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c4a37d
aa9a7c
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-5
aa9a7c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
aa9a7c
5545d8
* Fri Jul 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.2-4
5545d8
- fix license tag
5545d8
9be02e
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2-3
9be02e
- Autorebuild for GCC 4.3
9be02e
ee3dd5
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.2-2
ee3dd5
- Rebuild for selinux ppc32 issue.
ee3dd5
9768c3
* Mon Jul 09 2007 Xavier Lamien <lxtnow@gmail.com> - 0.2-1
9768c3
- Updated Release.
9768c3
ad4bb0
* Tue May 01 2007 Xavier lamien <lxtnow@gmail.com> - 0.2-0.3.rc1
ad4bb0
- Fixed redundant BR and Requires.
ad4bb0
ad4bb0
* Sun Jan 04 2007 Xavier lamien <lxtnow@gmail.com> - 0.2-0.2.rc1
ad4bb0
- added post and postun for installed icons.
ad4bb0
- fixed release tags
ad4bb0
- Added timestamp in "make install".
ad4bb0
- Removed "--add-category" from desktop-file-install.
ad4bb0
ad4bb0
* Sat Jan 03 2007 Xavier lamien <lxtnow@gmail.com> - 0.2-0.1.rc1
ad4bb0
- Initiale RPM release.