File mugshot.spec of Package Mugshot

#norootforbuild

BuildRequires: glib2-devel dbus-1-devel libcurl-devel pcre-devel sqlite-devel gnome-desktop-devel mozilla-xulrunner181-devel automake autoconf gcc-c++ desktop-data-model-devel libhippocanvas-1-0-devel libcroco-devel

Name: mugshot
Summary: Companion software for mugshot.org
Version: 1.1.95
Release: 0
License: GPL
Group: Productivity/Networking/Other
URL: http://mugshot.org/
Source: %{name}-%{version}.tar.gz
Patch0: mugshot-opensuse.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on

%define about_message "Adapted for openSUSE"

%gconf_schemas_prereq

%description
Mugshot works with the server at mugshot.org to extend 
the panel, web browser, music player and other parts of the desktop with 
a "live social experience" and interoperation with online services you and 
your friends use. It's fun and easy.

%debug_package

%prep
%setup -n %{name}-%{version}
%patch0 -p1

%build
autoreconf -f -i
%configure --with-about-message=%{about_message}

%__make %{?jobs:-j%jobs}

%install
%makeinstall

%find_gconf_schemas

%pre -f %{name}.schemas_pre
%preun -f %{name}.schemas_preun
%{_datadir}/mugshot/firefox-update.sh remove

%posttrans -f %{name}.schemas_posttrans

%post
touch --no-create %{_datadir}/icons/hicolor
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  gtk-update-icon-cache -q %{_datadir}/icons/hicolor
fi
%{_datadir}/mugshot/firefox-update.sh install

%triggerin -- MozillaFirefox
%{_datadir}/mugshot/firefox-update.sh install

%triggerun -- MozillaFirefox
%{_datadir}/mugshot/firefox-update.sh remove

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README

%{_bindir}/
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/16x16/apps/*.png
%{_datadir}/icons/hicolor/22x22/apps/*.png
%{_datadir}/icons/hicolor/24x24/apps/*.png
%{_datadir}/icons/hicolor/32x32/apps/*.png
%{_datadir}/icons/hicolor/48x48/apps/*.png
%{_datadir}/icons/hicolor/64x64/apps/*.png
%{_datadir}/icons/hicolor/128x128/apps/*.png
%{_libdir}/mugshot
%{_libdir}/mugshot-autostart-check
%{_datadir}/gnome/autostart/mugshot-autostart.desktop
%{_datadir}/mugshot/*


%changelog
* Sun Jul 6 2008 Alan Cramer <alan@cramer.id.au> - 1.1.95
- Updated to 1.1.95
* Thu Mar 13 2008 Justin Haygood <jhaygood@reaktix.com>
- Updated to 1.1.91
- DDM split off into desktop-data-model
* Sat Mar 8 2008 Jusitn Haygood <jhaygood@reaktix.com>
- First Package for openSUSE
openSUSE Build Service is sponsored by