- removed obsolete format patch
+++ /dev/null
---- libreport-2.9.0/src/gui-wizard-gtk/wizard.c.orig 2016-11-28 23:44:35.000000000 +0100
-+++ libreport-2.9.0/src/gui-wizard-gtk/wizard.c 2016-12-16 23:23:34.616353342 +0100
-@@ -3094,7 +3094,7 @@
- }
- else
- {
-- log(msg);
-+ log("%s", msg);
- free(msg);
- }
- }
-# TODO: teach build system to use python3.2+ __pycache__
+%bcond_without python2 # Python 2.x modules
+%bcond_without python3 # Python 3.x modules
%bcond_without tests # "make check"
Summary: Generic library for reporting various problems
Summary(pl.UTF-8): Ogólna biblioteka do zgłaszania różnych problemów
Name: libreport
%bcond_without tests # "make check"
Summary: Generic library for reporting various problems
Summary(pl.UTF-8): Ogólna biblioteka do zgłaszania różnych problemów
Name: libreport
-Version: 2.9.0
-Release: 2
+Version: 2.9.5
+Release: 1
License: GPL v2+
Group: Libraries
License: GPL v2+
Group: Libraries
-Source0: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
-# Source0-md5: 8761962012c6cd147582c418d4d92645
-Patch0: %{name}-format.patch
+Source0: https://github.com/abrt/libreport/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: a3abcdfbf1b1ec27ce6c44d5ba22b31b
URL: https://github.com/abrt/libreport
BuildRequires: asciidoc
BuildRequires: augeas-devel
URL: https://github.com/abrt/libreport
BuildRequires: asciidoc
BuildRequires: augeas-devel
BuildRequires: dbus-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext-tools >= 0.17
BuildRequires: dbus-devel
BuildRequires: desktop-file-utils
BuildRequires: gettext-tools >= 0.17
-BuildRequires: glib2-devel >= 1:2.21
+BuildRequires: glib2-devel >= 1:2.43
BuildRequires: gtk+3-devel >= 3.0
BuildRequires: intltool >= 0.35.0
BuildRequires: json-c-devel
BuildRequires: gtk+3-devel >= 3.0
BuildRequires: intltool >= 0.35.0
BuildRequires: json-c-devel
BuildRequires: pkgconfig
# /etc/system-release for non-empty os_release content
%{?with_tests:BuildRequires: pld-release >= 3.0-8}
BuildRequires: pkgconfig
# /etc/system-release for non-empty os_release content
%{?with_tests:BuildRequires: pld-release >= 3.0-8}
-BuildRequires: python-devel >= 2
-BuildRequires: python3-devel >= 1:3
+%{?with_python2:BuildRequires: python-devel >= 2}
+%{?with_python3:BuildRequires: python3-devel >= 1:3}
BuildRequires: rpmbuild(macros) >= 1.612
BuildRequires: satyr-devel
BuildRequires: systemd-devel
BuildRequires: xmlrpc-c-client-devel
BuildRequires: xmlrpc-c-devel
BuildRequires: xmlto
BuildRequires: rpmbuild(macros) >= 1.612
BuildRequires: satyr-devel
BuildRequires: systemd-devel
BuildRequires: xmlrpc-c-client-devel
BuildRequires: xmlrpc-c-devel
BuildRequires: xmlto
-BuildRequires: xz-devel
-Requires: glib2 >= 1:2.21
+Requires: glib2 >= 1:2.43
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libreport
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Summary(pl.UTF-8): Pliki nagłówkowe bibliotek libreport
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
-Requires: glib2-devel >= 1:2.21
+Requires: glib2-devel >= 1:2.43
%description devel
Header files for libreport libraries.
%description devel
Header files for libreport libraries.
+%{__gettextize}
+%{__intltoolize}
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__libtoolize}
%{__aclocal} -I m4
%{__autoconf}
%{__automake}
%configure \
AUGPARSE=/usr/bin/augparse \
%{__automake}
%configure \
AUGPARSE=/usr/bin/augparse \
+ --disable-silent-rules \
+ %{!?with_python2:--without-python2} \
+ %{!?with_python3:--without-python3}
# compat layer for compatibility tool
%{__rm} $RPM_BUILD_ROOT{%{_bindir}/report,%{_mandir}/man1/report.1}
# compat layer for compatibility tool
%{__rm} $RPM_BUILD_ROOT{%{_bindir}/report,%{_mandir}/man1/report.1}
%py_postclean
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/report*/*.la
%py_postclean
%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/report*/*.la
-%{__rm} $RPM_BUILD_ROOT%{py3_sitedir}/report*/*.la
+%endif
+%if %{with python3}
+# automake uses $PYTHON for both versions, recompile using python3
+%py_postclean %{py3_sitedir}
+%py3_comp $RPM_BUILD_ROOT%{py3_sitedir}
+%py3_ocomp $RPM_BUILD_ROOT%{py3_sitedir}
+%endif
# empty versions of nb,ru
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{no,ru_RU}
# empty versions of nb,ru
%{__rm} -r $RPM_BUILD_ROOT%{_localedir}/{no,ru_RU}
%files -f %{name}.lang
%defattr(644,root,root,755)
%files -f %{name}.lang
%defattr(644,root,root,755)
+%doc CHANGELOG.md README.md
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/report_event.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/forbidden_words.conf
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/report_event.conf
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/forbidden_words.conf
%{_includedir}/libreport/ureport.h
%{_includedir}/libreport/workflow.h
%{_includedir}/libreport/xml_parser.h
%{_includedir}/libreport/ureport.h
%{_includedir}/libreport/workflow.h
%{_includedir}/libreport/xml_parser.h
+%{_includedir}/libreport/helpers
%{_pkgconfigdir}/libreport.pc
%files web
%{_pkgconfigdir}/libreport.pc
%files web
%{_includedir}/libreport/libreport_curl.h
%{_pkgconfigdir}/libreport-web.pc
%{_includedir}/libreport/libreport_curl.h
%{_pkgconfigdir}/libreport-web.pc
%files -n python-%{name}
%defattr(644,root,root,755)
%dir %{py_sitedir}/report
%files -n python-%{name}
%defattr(644,root,root,755)
%dir %{py_sitedir}/report
%dir %{py_sitedir}/reportclient
%attr(755,root,root) %{py_sitedir}/reportclient/_reportclient.so
%{py_sitedir}/reportclient/*.py[co]
%dir %{py_sitedir}/reportclient
%attr(755,root,root) %{py_sitedir}/reportclient/_reportclient.so
%{py_sitedir}/reportclient/*.py[co]
%files -n python3-%{name}
%defattr(644,root,root,755)
%dir %{py3_sitedir}/report
%files -n python3-%{name}
%defattr(644,root,root,755)
%dir %{py3_sitedir}/report
%dir %{py3_sitedir}/reportclient
%attr(755,root,root) %{py3_sitedir}/reportclient/_reportclient3.so
%{py3_sitedir}/reportclient/*.py*
%dir %{py3_sitedir}/reportclient
%attr(755,root,root) %{py3_sitedir}/reportclient/_reportclient3.so
%{py3_sitedir}/reportclient/*.py*
%files cli
%defattr(644,root,root,755)
%files cli
%defattr(644,root,root,755)
%{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml
%{_datadir}/libreport/conf.d/plugins/rhtsupport.conf
%{_datadir}/libreport/events/report_RHTSupport.xml
%{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml
%{_datadir}/libreport/conf.d/plugins/rhtsupport.conf
%{_datadir}/libreport/events/report_RHTSupport.xml
+%{_datadir}/libreport/events/report_RHTSupport_AddData.xml
%{_mandir}/man1/reporter-rhtsupport.1*
%{_mandir}/man5/rhtsupport.conf.5*
%{_mandir}/man5/rhtsupport_event.conf.5*
%{_mandir}/man1/reporter-rhtsupport.1*
%{_mandir}/man5/rhtsupport.conf.5*
%{_mandir}/man5/rhtsupport_event.conf.5*
%files rhel
%defattr(644,root,root,755)
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel.conf
%files rhel
%defattr(644,root,root,755)
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel.conf
+%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_add_data.conf
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
%{_datadir}/libreport/workflows/workflow_RHEL*.xml
%{_mandir}/man5/report_rhel.conf.5*
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
%{_datadir}/libreport/workflows/workflow_RHEL*.xml
%{_mandir}/man5/report_rhel.conf.5*