Initial package

This commit is contained in:
Richard Hughes 2013-09-02 16:44:12 +01:00
parent c9edefb5d0
commit 2164533d4f
3 changed files with 79 additions and 0 deletions

1
.gitignore vendored
View File

@ -0,0 +1 @@
/gnome-software-0.1.tar.xz

77
gnome-software.spec Normal file
View File

@ -0,0 +1,77 @@
Summary: A software center for GNOME
Name: gnome-software
Version: 0.1
Release: 3%{?dist}
License: GPLv2+
Group: Applications/System
URL: https://wiki.gnome.org/Apps/Software
Source0: http://people.freedesktop.org/~hughsient/temp/%{name}-%{version}.tar.xz
Requires: gnome-icon-theme
BuildRequires: gettext
BuildRequires: intltool
BuildRequires: docbook-utils
BuildRequires: desktop-file-utils
BuildRequires: glib2-devel >= 2.25.9-2
BuildRequires: gtk3-devel >= 3.9.12
BuildRequires: PackageKit-glib-devel >= 0.8.10
%description
gnome-software is an application that makes it easy to add, remove
and update software in the GNOME desktop.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_libdir}/gs-plugins/*.a
rm %{buildroot}%{_libdir}/gs-plugins/*.la
%find_lang %name --with-gnome
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/gnome-software.desktop
%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/gnome-software
%{_datadir}/applications/gnome-software.desktop
%dir %{_datadir}/gnome-software
%{_datadir}/gnome-software/*.png
%{_mandir}/man1/gnome-software.1.gz
%dir %{_libdir}/gs-plugins
%{_libdir}/gs-plugins/*.so
%changelog
* Sun Sep 01 2013 Richard Hughes <richard@hughsie.com> 0.1-3
- Use buildroot not RPM_BUILD_ROOT
- Own all gnome-software directories
- Drop gtk-update-icon-cache requires and the mime database functionality
* Thu Aug 29 2013 Richard Hughes <richard@hughsie.com> 0.1-2
- Add call to desktop-file-validate and fix other review comments.
* Wed Aug 28 2013 Richard Hughes <richard@hughsie.com> 0.1-1
- First release for Fedora package review

View File

@ -0,0 +1 @@
c8ff915a317e2a9677641e4e7f72511f gnome-software-0.1.tar.xz