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

Group:		Applications/System
License:	GPL
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

%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}


%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
* 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.

* Sun 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.

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