gnome-software/gnome-software.spec
Dominique Leuenberger a368cc882c Accepting request 199127 from home:Zaitor:branches:GNOME:Factory
Add suse-xsl-stylesheets and pkgconfig(libxslt) BuildRequires,
  needed in order to build man pages. 

When investigating why gnome-software fails to launch I found this over at fedora...
Seems we need to add our own appstream data now.

# install AppStream data for Fedora
%__mkdir_p %{buildroot}%{_datadir}/app-info/xmls
%__cp %{SOURCE1} %{buildroot}%{_datadir}/app-info/xmls

# decompress and install AppStream icons
%__mkdir_p %{buildroot}%{_datadir}/app-info/icons
cd %{buildroot}%{_datadir}/app-info/icons
%__tar xvzf %{SOURCE2}
cd -

OBS-URL: https://build.opensuse.org/request/show/199127
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-software?expand=0&rev=7
2013-09-15 13:04:25 +00:00

79 lines
2.3 KiB
RPMSpec

#
# spec file for package gnome-software
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gnome-software
Version: 3.9.3
Release: 0
Summary: GNOME Software Store
License: GPL-2.0+
Group: System/GUI/GNOME
Url: https://wiki.gnome.org/Design/Apps/Software
Source: http://ftp.gnome.org/pub/GNOME/sources/gnome-software/3.9/%{name}-%{version}.tar.xz
BuildRequires: intltool >= 0.35.0
BuildRequires: suse-xsl-stylesheets
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(gtk+-3.0) >= 3.9.12
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libxslt)
BuildRequires: pkgconfig(packagekit-glib2) >= 0.8.10
BuildRequires: pkgconfig(sqlite3)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
AppStore like management of Applications for your GNOME Desktop.
%lang_package
%prep
%setup -q
%build
%configure \
--disable-static
make %{?_smp_mflags}
%install
%make_install
find %{buildroot}%{_libdir} -type f -name '*.la' -delete -print
desktop-file-edit %{buildroot}%{_datadir}/applications/gnome-software.desktop --add-only-show-in=GNOME
%suse_update_desktop_file gnome-software
%find_lang %{name}
%post
%icon_theme_cache_post
%desktop_database_post
%postun
%icon_theme_cache_postun
%desktop_database_postun
%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*
%dir %{_libdir}/gs-plugins
%{_libdir}/gs-plugins/*.so
%{_mandir}/man1/%{name}.1%{?ext_man}
%files lang -f %{name}.lang
%changelog