gnome-packagekit/gnome-packagekit.spec

217 lines
8.0 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-2)
Name: gnome-packagekit
Version: 3.16.0
Release: 1mamba
Summary: A collection of graphical tools for PackageKit to be used in the GNOME desktop
Group: Graphical Desktop/Applications/Utilities
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.packagekit.org
Source: ftp://ftp.gnome.org/pub/gnome/sources/gnome-packagekit/%{majver}/gnome-packagekit-%{version}.tar.xz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: GConf-devel
BuildRequires: glibc-devel
BuildRequires: gnome-menus-devel
BuildRequires: libatk-devel
BuildRequires: libcairo-devel
BuildRequires: libcanberra-devel
BuildRequires: libdbus-devel
BuildRequires: libdbus-glib-devel
BuildRequires: libexpat-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libglib-devel
BuildRequires: libglitz-devel
BuildRequires: libgtk-devel
BuildRequires: libnotify-devel
BuildRequires: libpango-devel
BuildRequires: libpixman-devel
BuildRequires: libpng-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libpython-devel
BuildRequires: libselinux-devel
BuildRequires: libsqlite-devel
BuildRequires: libstdc++6-devel
BuildRequires: libunique-devel
BuildRequires: libusb0-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libxcb-util-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXrender-devel
BuildRequires: libz-devel
BuildRequires: ORBit2-devel
BuildRequires: PackageKit-devel
BuildRequires: udev-devel
## AUTOBUILDREQ-END
BuildRequires: PackageKit-glib-devel
Provides: packagekitgui
Requires: polkit-gnome
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
gnome-packagekit is a collection of graphical tools for PackageKit to be used in the GNOME desktop.
%prep
%setup -q
%build
%configure --disable-scrollkeeper
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
#mv %{buildroot}%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service \
# %{buildroot}%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit
%find_lang %{name}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
if [ $1 -ge 1 ]; then
/usr/sbin/update-alternatives --install %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit 60
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit
glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null
fi
exit 0
%posttrans
# Fix an upgrade problem: alternatives removed from preun script
if [ $1 -eq 1 ]; then
/usr/sbin/update-alternatives --install %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service org.freedesktop.PackageKit.service %{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit 60
/usr/sbin/update-alternatives --auto org.freedesktop.PackageKit.service
fi
exit 0
%files -f %{name}.lang
%defattr(-,root,root)
%{_bindir}/gpk-*
#%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service.gnome-packagekit
#%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/gpk-pk-gtk-module.desktop
%{_datadir}/GConf/gsettings/org.gnome.packagekit.gschema.migrate
%{_datadir}/glib-2.0/schemas/org.gnome.packagekit.gschema.xml
#%{python_sitearch}/packagekit
%dir %{_datadir}/gnome-packagekit
%{_datadir}/gnome-packagekit/*
%{_datadir}/appdata/gpk-application.appdata.xml
%{_datadir}/appdata/gpk-update-viewer.appdata.xml
%{_datadir}/applications/gpk-*.desktop
%{_datadir}/icons/hicolor
#%dir %{_datadir}/help/C/gnome-packagekit
#%{_datadir}/help/C/gnome-packagekit/*
#%lang(de) %dir %{_datadir}/help/de/gnome-packagekit
#%lang(de) %{_datadir}/help/de/gnome-packagekit/*
#%lang(el) %dir %{_datadir}/help/el/gnome-packagekit
#%lang(el) %{_datadir}/help/el/gnome-packagekit/*
#%lang(es) %dir %{_datadir}/help/es/gnome-packagekit
#%lang(es) %{_datadir}/help/es/gnome-packagekit/*
#%lang(fr) %dir %{_datadir}/help/fr/gnome-packagekit
#%lang(fr) %{_datadir}/help/fr/gnome-packagekit/*
#%lang(gl) %dir %{_datadir}/help/gl/gnome-packagekit
#%lang(gl) %{_datadir}/help/gl/gnome-packagekit/*
#%lang(oc) %dir %{_datadir}/help/oc/gnome-packagekit
#%lang(oc) %{_datadir}/help/oc/gnome-packagekit/*
#%lang(pa) %dir %{_datadir}/help/pa/gnome-packagekit
#%lang(pa) %{_datadir}/help/pa/gnome-packagekit/*
#%lang(pl) %dir %{_datadir}/help/pl/gnome-packagekit
#%lang(pl) %{_datadir}/help/pl/gnome-packagekit/*
#%lang(pt_BR) %{_datadir}/help/pt_BR/gnome-packagekit/*
#%lang(ru) %{_datadir}/help/ru/gnome-packagekit/*
#%lang(sl) %dir %{_datadir}/help/sl/gnome-packagekit
#%lang(sl) %{_datadir}/help/sl/gnome-packagekit/*
#%lang(sv) %dir %{_datadir}/help/sv/gnome-packagekit
#%lang(sv) %{_datadir}/help/sv/gnome-packagekit/*
#%lang(zh_CN) %dir %{_datadir}/help/zh_CN/gnome-packagekit
#%lang(zh_CN) %{_datadir}/help/zh_CN/gnome-packagekit/*
#%{_datadir}/omf/gnome-packagekit/gnome-packagekit*.omf
%{_mandir}/man1/gpk-*.1.gz
%doc AUTHORS COPYING
# ChangeLog NEWS README TODO
%changelog
* Fri May 01 2015 Automatic Build System <autodist@mambasoft.it> 3.16.0-1mamba
- automatic version update by autodist
* Thu Nov 13 2014 Automatic Build System <autodist@mambasoft.it> 3.14.2-1mamba
- automatic update by autodist
* Fri Sep 26 2014 Automatic Build System <autodist@mambasoft.it> 3.14.0-1mamba
- automatic version update by autodist
* Mon May 12 2014 Automatic Build System <autodist@mambasoft.it> 3.12.2-1mamba
- automatic version update by autodist
* Fri Apr 11 2014 Automatic Build System <autodist@mambasoft.it> 3.12.1-1mamba
- automatic version update by autodist
* Sun Mar 30 2014 Automatic Build System <autodist@mambasoft.it> 3.12.0-1mamba
- automatic version update by autodist
* Tue Oct 29 2013 Automatic Build System <autodist@mambasoft.it> 3.10.1-1mamba
- automatic version update by autodist
* Fri May 31 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.8.2-2mamba
- python 2.7 mass rebuild
* Mon May 13 2013 Automatic Build System <autodist@mambasoft.it> 3.8.2-1mamba
- automatic version update by autodist
* Mon Apr 15 2013 Automatic Build System <autodist@mambasoft.it> 3.8.1-1mamba
- automatic version update by autodist
* Wed Mar 27 2013 Automatic Build System <autodist@mambasoft.it> 3.8.0-1mamba
- automatic version update by autodist
* Wed Mar 06 2013 Automatic Build System <autodist@mambasoft.it> 3.6.2-1mamba
- automatic version update by autodist
* Mon May 14 2012 Automatic Build System <autodist@mambasoft.it> 3.4.2-1mamba
- automatic version update by autodist
* Tue Apr 10 2012 Automatic Build System <autodist@mambasoft.it> 3.4.0-1mamba
- automatic version update by autodist
* Tue Dec 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
- update to 3.2.1
* Sun Sep 25 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.3-2mamba
- fix schema path passed to glib-compile-schemas; provide packagekitgui
* Fri Jul 22 2011 Automatic Build System <autodist@mambasoft.it> 3.0.3-1mamba
- automatic update to 3.0.3.0 by autodist
* Wed Apr 27 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-2mamba
- fixed a typo in postun script
* Sun Apr 24 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 3.0.0-1mamba
- update to 3.0.0
* Sat Mar 05 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.32.0-3mamba
- configure as alternative for dbus PackageKit service; give higher priority that kpackagekit until the latter works
* Wed Jan 12 2011 Automatic Build System <autodist@mambasoft.it> 2.32.0-2mamba
- automatic update by autodist
* Thu Dec 02 2010 Automatic Build System <autodist@mambasoft.it> 2.32.0-1mamba
- automatic update to 2.32.0 by autodist
* Mon Jul 26 2010 Automatic Build System <autodist@mambasoft.it> 2.30.3-1mamba
- update to 2.30.3
* Wed Jun 02 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 2.30.2-1mamba
- package created by autospec