Blob Blame History Raw
Name:		gshutdown
Version:	0.2        
Release:	17%{?dist}
Summary:	GShutDown is an advanced shut down utility for GNOME

Group:		Applications/System
License:	GPLv2+
URL:		http://gshutdown.tuxfamily.org/
Source0:	http://gshutdown.tuxfamily.org/release/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	libglade2-devel, desktop-file-utils
BuildRequires:	libnotify-devel, glib2-devel, gettext

Patch0: gshutdown-0.2.libnotify-api.patch
Patch1: gshutdown-0.2.explicitlink.patch
Patch2: gshutdown-0.2-glib.patch
Patch3: gshutdown-0.2-format-security.patch

%description
GShutdown is an advanced shutdown utility which
allows you to schedule the shutdown or the restart
of your computer, or logout your actual session.
Also can be use under Xfce and KDE.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .libnotify-api
%patch1 -p1 -b .explicitlink
%patch2 -p1 -b .glib
%patch3 -p1

%build
%configure
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"

desktop-file-install					\
	--vendor ""					\
	--dir $RPM_BUILD_ROOT/%{_datadir}/applications	\
	--mode 0644					\
	$RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :

%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :



%files -f %{name}.lang
%defattr(-,root,root,-)
%doc COPYING AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1.gz
%{_datadir}/pixmaps/%{name}.png


%changelog
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Wed Aug 06 2014 Ralf Corsépius <corsepiu@fedoraproject.org> - 0.2-16
- Add gshutdown-0.2.format-security.patch (F21FTBFS RHBZ#1106732, RHBZ#1037106).
- Fix bogus %%changelog entries.

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Aug 01 2012 Jon Ciesla <limburgher@gmail.com> - 0.2-12
- Tom Lane's glib fixes for libpng15 rebuild, BZ 843648.

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.2-9
- Rebuild for new libpng

* Thu Apr 07 2011 Caolán McNamara <caolanm@redhat.com> - 0.2-8
- Resolves: rhbz#599784 rebuild for new libnotify api, etc.

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Jul 25 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.2-4
- fix license tag

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.2-3
- Autorebuild for GCC 4.3

* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 0.2-2
- Rebuild for selinux ppc32 issue.

* Mon Jul 09 2007 Xavier Lamien <lxtnow@gmail.com> - 0.2-1
- Updated Release.

* Tue May 01 2007 Xavier lamien <lxtnow@gmail.com> - 0.2-0.3.rc1
- Fixed redundant BR and Requires.

* Thu Jan 04 2007 Xavier lamien <lxtnow@gmail.com> - 0.2-0.2.rc1
- added post and postun for installed icons.
- fixed release tags
- Added timestamp in "make install".
- Removed "--add-category" from desktop-file-install.

* Wed Jan 03 2007 Xavier lamien <lxtnow@gmail.com> - 0.2-0.1.rc1
- Initial RPM release.