From 986fa26cbe4aff7c902c9de843e2d3cd67472d11 Mon Sep 17 00:00:00 2001 From: Jakub Filak Date: Sep 10 2012 07:39:54 +0000 Subject: Package import --- diff --git a/.gitignore b/.gitignore index e69de29..21f5de2 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gnome-abrt-0.2.tar.gz diff --git a/gnome-abrt.spec b/gnome-abrt.spec new file mode 100644 index 0000000..758f0d9 --- /dev/null +++ b/gnome-abrt.spec @@ -0,0 +1,128 @@ +# TODO: https://fedoraproject.org/wiki/Packaging:AutoProvidesAndRequiresFiltering +# rpmlint warns about private-shared-object-provides +# can't use filter because the package doesn't met any of the required criteria +# ! Noarch package ... caused by libreport wrappers shared library +# ! no binaries in $PATH ... caused by gnome-abrt python script in /usr/bin + +Name: gnome-abrt +Version: 0.2 +Release: 9%{?dist} +Summary: A utility for viewing problems that have occurred with the system + +Group: User Interface/Desktops +License: GPLv2+ +URL: https://fedorahosted.org/abrt/ +Source0: https://github.com/downloads/jfilak/abrt-gnome-oops/%{name}-%{version}.tar.gz + +BuildRequires: intltool +BuildRequires: gettext +BuildRequires: libtool +BuildRequires: python2-devel +BuildRequires: desktop-file-utils +BuildRequires: asciidoc +BuildRequires: xmlto +BuildRequires: pygobject3-devel +BuildRequires: libreport-gtk-devel +BuildRequires: gtk3-devel + +Requires: python-inotify +Requires: pygobject3 +Requires: dbus-python + +%description +A GNOME application allows users to browse through detected problems and +provides them with convenient way for managing these problems. + + +%prep +%setup -q + + +%build +autoconf +%configure +make + + +%install +make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} +#find_lang {name} + +# remove all .la and .a files +find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f + +desktop-file-install \ + --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ + --delete-original \ + ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop + + +%post +# update icon cache +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 || : +fi + + +%posttrans +gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : + + +%files +%doc COPYING +%{python_sitearch}/gnome_abrt +%{_datadir}/%{name} +%{_bindir}/%{name} +%{_datadir}/applications/* +%{_mandir}/man6/%{name}.6* +%{_datadir}/icons/hicolor/*/apps/* +%{_datadir}/icons/hicolor/*/status/* + + +%changelog +* Thu Sep 06 2012 Jakub Filak - 0.2-9 +- Remove noarch because of binary wrappers +- Added support for adjusting libreport preferences + +* Mon Aug 28 2012 Jakub Filak - 0.2-8 +- Take ownership of all installed directories +- Correct paths to translated files + +* Mon Aug 27 2012 Jakub Filak - 0.2-7 +- Dropped versions from requires +- Simplified spec +- Removed pylint check from configure.ac +- Whitespace cleanup (rmarko@redhat.com) + +* Fri Aug 24 2012 Jakub Filak - 0.2-6 +- Use own icons set + +* Fri Aug 24 2012 Jakub Filak - 0.2-5 +- Reorganize source files +- Get rid of all rpmlint complaints + +* Thu Aug 23 2012 Jakub Filak - 0.2-4 +- Update GUI on various signals (new problem, problem changed, etc.) +- Sort problems by time in descending order +- Correct internationalization in date string generator + +* Wed Aug 15 2012 Jakub Filak - 0.2-3 +- Reconnect to DBus bus +- Default values for missing items +- Correct field for 'is_reported' flag + +* Wed Aug 15 2012 Jakub Filak - 0.2-2 +- Add missing files + +* Wed Aug 15 2012 Jakub Filak - 0.2-1 +- Problems filtering +- Errors handling +- Localization support + +* Mon Aug 13 2012 Jakub Filak - 0.1-1 +- Initial version diff --git a/sources b/sources index e69de29..cc79fb7 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +1fde568e3643b60d9cbee9345df01a4c gnome-abrt-0.2.tar.gz