X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=abrt.spec;h=e10d5a3059ebd36d075d156af3af6971e1730126;hb=e8a41dea17f42ee5768f484a7ea38c8bab408e87;hp=62a0b95951e182e05eac74a14e4b72d68626ff06;hpb=09319cb6808bfc1a963d70c27cb2bfd3395f0860;p=packages%2Fabrt.git diff --git a/abrt.spec b/abrt.spec index 62a0b95..e10d5a3 100644 --- a/abrt.spec +++ b/abrt.spec @@ -2,49 +2,58 @@ # TODO: # - handle obsolete packages: abrt-plugin-{catcut,rhfastcheck,rhticket,ticketuploader} # - SysV init scripts for -addon-ccpp, -addon-kerneloops, -addon-pstoreoops, -addon-upload-watch, -addon-vmcore, -addon-xorg -%define libreport_ver 2.1.9 +# - teach build system to use python3.2+ __pycache__ +# +# Conditional build: +%bcond_without tests # disable pythontests +# +%define libreport_ver 2.9.0 Summary: Automatic bug detection and reporting tool Summary(pl.UTF-8): Narzędzie do automatycznego wykrywania i zgłaszania błędów Name: abrt -Version: 2.1.9 +Version: 2.10.0 Release: 1 License: GPL v2+ Group: Applications/System Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz -# Source0-md5: b70b03cfb9f496152949ebf92abe6479 +# Source0-md5: 050088fd550a8a063e2e21230b0588de Source1: %{name}.init Patch0: %{name}-rpm5.patch Patch1: %{name}-rpm45.patch -Patch2: format_security.patch -Patch3: %{name}-link.patch -Patch4: %{name}-pythondir.patch +Patch2: %{name}-link.patch URL: https://fedorahosted.org/abrt/ BuildRequires: asciidoc BuildRequires: autoconf >= 2.50 BuildRequires: automake BuildRequires: dbus-devel -BuildRequires: gettext-devel >= 0.17 -BuildRequires: glib2-devel >= 1:2.21 +BuildRequires: docbook-dtd45-xml +BuildRequires: gettext-tools >= 0.17 +BuildRequires: glib2-devel >= 1:2.43 +BuildRequires: gsettings-desktop-schemas-devel >= 3.15.1 BuildRequires: gtk+3-devel >= 3.0 +BuildRequires: hawkey-devel BuildRequires: intltool >= 0.35.0 BuildRequires: json-c-devel -BuildRequires: libmagic-devel -BuildRequires: libnotify-devel +BuildRequires: libnotify-devel >= 0.7.0 BuildRequires: libreport-devel >= %{libreport_ver} BuildRequires: libreport-gtk-devel >= %{libreport_ver} BuildRequires: libreport-web-devel >= %{libreport_ver} +BuildRequires: libselinux-devel BuildRequires: libtool BuildRequires: libxml2-devel >= 2 -BuildRequires: rpm-devel >= 4.5 BuildRequires: nss-devel BuildRequires: pkgconfig BuildRequires: polkit-devel -BuildRequires: python-devel -BuildRequires: python-modules +BuildRequires: python-devel >= 2 +BuildRequires: python-modules >= 2 +%{?with_tests:BuildRequires: python-nose} +BuildRequires: python3-devel >= 3 +BuildRequires: python3-modules >= 3 BuildRequires: rpm-devel >= 4.5-28 BuildRequires: rpm-pythonprov BuildRequires: rpmbuild(macros) >= 1.219 -BuildRequires: satyr-devel +BuildRequires: satyr-devel >= 0.21 +BuildRequires: systemd-devel BuildRequires: xmlto Requires(postun): /usr/sbin/groupdel Requires(postun): /usr/sbin/userdel @@ -61,6 +70,8 @@ Obsoletes: abrt-plugin-sosreport Obsoletes: abrt-plugin-sqlite3 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) +%define journal_catalog_update [ ! -x /bin/journalctl ] || /bin/journalctl --update-catalog || : + %description ABRT is a tool to help users to detect defects in applications and to create a bug report with all informations needed by maintainer to fix @@ -72,11 +83,24 @@ aplikacjach oraz tworzeniu raportów błędów ze wszystkimi informacjami potrzebnymi utrzymującemu pakiet do poprawienia go. Wykorzystuje system wtyczek do rozszerzania funkcjonalności. +%package -n bash-completion-abrt +Summary: Bash completion for abrt command +Summary(pl.UTF-8): Bashowe dopełnianie parametrów dla polecenia abrt +Group: Applications/Shells +Requires: %{name} = %{version}-%{release} +Requires: bash-completion + +%description -n bash-completion-abrt +Bash completion for abrt command. + +%description -n bash-completion-abrt -l pl.UTF-8 +Bashowe dopełnianie parametrów dla polecenia abrt. + %package libs Summary: ABRT shared library Summary(pl.UTF-8): Biblioteka współdzielona ABRT Group: Libraries -Requires: glib2 >= 1:2.21 +Requires: glib2 >= 1:2.43 Requires: libreport >= %{libreport_ver} %description libs @@ -90,7 +114,7 @@ Summary: Header files for ABRT livrary Summary(pl.UTF-8): Pliki nagłówkowe bibliotekia ABRT Group: Development/Libraries Requires: %{name}-libs = %{version}-%{release} -Requires: glib2-devel >= 1:2.21 +Requires: glib2-devel >= 1:2.43 Requires: libreport-devel >= %{libreport_ver} %description devel @@ -104,12 +128,14 @@ Summary: ABRT's C/C++ addon Summary(pl.UTF-8): Dodatek C/C++ do ABRT Group: Libraries Requires: %{name} = %{version}-%{release} +Requires: %{name}-addon-coredump-helper = %{version}-%{release} Requires: %{name}-retrace-client = %{version}-%{release} Requires: cpio Requires: elfutils Requires: gdb >= 7.0-3 -Requires: satyr +Requires: satyr >= 0.21 Requires: yum-utils +Obsoletes: %{name}-atomic %description addon-ccpp This package contains hook for C/C++ crashed programs and abrt's C/C++ @@ -119,6 +145,18 @@ analyzer plugin. Ten pakiet zawiera punkt zaczepienia dla programów w C/C++, które uległy awarii oraz wtyczkę analizatora C/C++ ABRT. +%package addon-coredump-helper +Summary: ABRT's /proc/sys/kernel/core_pattern helper +Summary(pl.UTF-8): Program pomocniczy ABRT do /proc/sys/kernel/core_pattern +Group: Libraries +Requires: %{name}-libs = %{version}-%{release} + +%description addon-coredump-helper +This package contains hook for C/C++ crashed programs. + +%description addon-coredump-helper -l pl.UTF-8 +Ten pakiet zawiera uchwyt dla programów w C/C++, które uległy awarii. + %package addon-kerneloops Summary: ABRT's kerneloops addon Summary(pl.UTF-8): Dodatek kerneloops do ABRT @@ -153,20 +191,45 @@ storage. Ten pakiet zawiera wtyczkę do zbierania oopsów jądra z danych pstore. %package addon-python -Summary: ABRT's addon for catching and analyzing Python exceptions -Summary(pl.UTF-8): Dodatek ABRT do przechwytywania i analizy wyjątków Pythona +Summary: ABRT's addon for catching and analyzing Python 2 exceptions +Summary(pl.UTF-8): Dodatek ABRT do przechwytywania i analizy wyjątków Pythona 2 Group: Libraries Requires: %{name} = %{version}-%{release} +Requires: %{name}-python = %{version}-%{release} +# for detecting package name containing offending file +Suggests: python-rpm +# for logging to journal +Suggests: python-systemd Obsoletes: gnome-python2-bugbuddy %description addon-python This package contains Python hook and Python analyzer plugin for -handling uncaught exception in Python programs. +handling uncaught exception in Python 2 programs. %description addon-python -l pl.UTF-8 Ten pakiet zawiera pythonowy punkt zaczepienia oraz wtyczkę analizatora Pythona do obsługi nie obsłużonych wyjątków w programach w -Pythonie. +Pythonie 2. + +%package addon-python3 +Summary: ABRT's addon for catching and analyzing Python 3 exceptions +Summary(pl.UTF-8): Dodatek ABRT do przechwytywania i analizy wyjątków Pythona 3 +Group: Libraries +Requires: %{name} = %{version}-%{release} +Requires: %{name}-python3 = %{version}-%{release} +# for detecting package name containing offending file (TODO: python3-rpm package) +#Suggests: python3-rpm +# for logging to journal (TODO: python3-systemd package) +#Suggests: python3-systemd + +%description addon-python3 +This package contains Python hook and Python analyzer plugin for +handling uncaught exception in Python 3 programs. + +%description addon-python3 -l pl.UTF-8 +Ten pakiet zawiera pythonowy punkt zaczepienia oraz wtyczkę +analizatora Pythona do obsługi nie obsłużonych wyjątków w programach w +Pythonie 3. %package addon-upload-watch Summary: ABRT's upload addon @@ -186,8 +249,7 @@ Summary(pl.UTF-8): Dodatek vmcore do ABRT Group: Libraries Requires: %{name} = %{version}-%{release} Requires: %{name}-addon-kerneloops = %{version}-%{release} -# not available in PLD -#Requires: crash +Requires: crash %description addon-vmcore This package contains plugin for collecting kernel crash information @@ -212,6 +274,20 @@ from Xorg log. Ten pakiet zawiera wtyczkę do zbierania informacji o awarii jądra z logu Xorg. +%package atomic +Summary: Package to make easy default installation on Atomic hosts +Summary(pl.UTF-8): Pakiet ułatwiający domyślną instalację na hostach Atomic +Group: Applications/System +Requires: %{name}-addon-coredump-helper = %{version}-%{release} +Obsoletes: %{name}-addon-ccpp + +%description atomic +Package to install all necessary packages for usage from Atomic hosts. + +%description atomic -l pl.UTF-8 +Pakiet służący do instalacji wszystkich wymaganych pakietów +przeznaczonych do użycia z hostów Atomic. + %package plugin-bodhi Summary: ABRT's bodhi plugin Summary(pl.UTF-8): Wtyczka bodhi do ABRT @@ -258,18 +334,34 @@ org.freedesktop.problems, używająca PolicyKit do autoryzacji dostępu do danych o problemach. %package python -Summary: ABRT Python API -Summary(pl.UTF-8): API Pythona do ABRT +Summary: ABRT Python 2 API +Summary(pl.UTF-8): API Pythona 2 do ABRT Group: Libraries/Python Requires: %{name} = %{version}-%{release} +Requires: python-libreport >= %{libreport_ver} %description python High-level API for querying, creating and manipulating problems -handled by ABRT in Python. +handled by ABRT in Python 2. %description python -l pl.UTF-8 Wysokopoziomowe API do odpytywania, tworzenia i obróbki z poziomu -Pythona problemów obsługiwanych przez ABRT. +Pythona 2 problemów obsługiwanych przez ABRT. + +%package python3 +Summary: ABRT Python 3 API +Summary(pl.UTF-8): API Pythona 3 do ABRT +Group: Libraries/Python +Requires: %{name} = %{version}-%{release} +Requires: python3-libreport >= %{libreport_ver} + +%description python3 +High-level API for querying, creating and manipulating problems +handled by ABRT in Python. + +%description python3 -l pl.UTF-8 +Wysokopoziomowe API do odpytywania, tworzenia i obróbki z poziomu +Pythona 3 problemów obsługiwanych przez ABRT. %package cli Summary: ABRT's command line interface @@ -279,8 +371,8 @@ Requires: %{name} = %{version}-%{release} # analyzers Requires: %{name}-addon-ccpp = %{version}-%{release} Requires: %{name}-addon-kerneloops = %{version}-%{release} -Requires: %{name}-addon-python = %{version}-%{release} Requires: %{name}-addon-pstoreoops = %{version}-%{release} +Requires: %{name}-addon-python = %{version}-%{release} # reporters Requires: libreport-plugin-bugzilla >= %{libreport_ver} Requires: libreport-plugin-logger >= %{libreport_ver} @@ -351,8 +443,8 @@ Group: X11/Applications Requires: %{name} = %{version}-%{release} Requires: %{name}-addon-ccpp = %{version}-%{release} Requires: %{name}-addon-kerneloops = %{version}-%{release} -Requires: %{name}-addon-python = %{version}-%{release} Requires: %{name}-addon-pstoreoops = %{version}-%{release} +Requires: %{name}-addon-python = %{version}-%{release} Requires: %{name}-addon-vmcore = %{version}-%{release} Requires: %{name}-addon-xorg = %{version}-%{release} Requires: %{name}-gui = %{version}-%{release} @@ -395,17 +487,18 @@ się do powłoki. %patch1 -p1 %endif %patch2 -p1 -%patch3 -p1 -%patch4 -p1 + +%{__sed} -n -e '/^%%changelog/,$p' abrt.spec.in | tail -n +2 > changelog %build %{__libtoolize} -%{__aclocal} +%{__aclocal} -I m4 %{__autoconf} %{__autoheader} %{__automake} %configure \ --disable-silent-rules \ + %{!?with_tests:--without-pythontests} \ --with-systemdsystemunitdir=%{systemdunitdir} %{__make} @@ -413,7 +506,9 @@ się do powłoki. %install rm -rf $RPM_BUILD_ROOT %{__make} install \ - DESTDIR=$RPM_BUILD_ROOT + DESTDIR=$RPM_BUILD_ROOT \ + pythondir=%{py_sitescriptdir} \ + python3dir=%{py3_sitescriptdir} %py_postclean @@ -425,16 +520,26 @@ install -d $RPM_BUILD_ROOT/var/cache/%{name} install -d $RPM_BUILD_ROOT/var/cache/%{name}-di install -d $RPM_BUILD_ROOT/var/run/%{name} -install -d $RPM_BUILD_ROOT/usr/lib/tmpfiles.d -cat >$RPM_BUILD_ROOT/usr/lib/tmpfiles.d/abrt.conf < $RPM_BUILD_ROOT%{systemdtmpfilesdir}/abrt.conf <