Blob Blame History Raw
%{!?python_site: %define python_site %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(0)")}
# platform-dependent
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%define satyr_ver 0.13-7

Summary: Generic library for reporting various problems
Name: libreport
Version: 2.1.11
Release: 49%{?dist}
License: GPLv2+
Group: System Environment/Libraries
URL: https://fedorahosted.org/abrt/
Source: https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz

Patch1: 0001-wizard-do-not-use-deprecated-gtk3-API.patch
Patch2: 0002-replace-all-Fedora-URLs-by-corresponding-values-for-.patch
Patch3: 0003-don-t-offer-uploading-on-failure-in-report-gtk.patch
Patch4: 0004-add-a-workflow-for-libreport-type-problems.patch
#Patch5: 0005-spec-install-libreport-type-workflows.patch
Patch6: 0006-make-add-libreport-workflow-fedora-to-dist-files.patch
Patch7: 0007-define-DBus-config-interfaces-for-all-plugins.patch
#Patch8: 0008-spec-install-the-dbus-configuration-interfaces.patch
Patch9: 0009-add-Java-reporting-workflows.patch
#Patch10: 0010-spec-install-Java-workflows.patch
Patch11: 0011-Remove-Workflows-tab-in-Preferences.patch
Patch12: 0012-ureport-add-support-for-client-side-authentication.patch
Patch13: 0013-add-SSLClientAuth-to-ureport-dbus-config-interface.patch
Patch14: 0014-ureport.conf-turn-on-SSL-auth-with-RHSM-cert.patch
Patch15: 0015-Export-plugin-config-dir-in-pkg-config.patch
Patch16: 0016-report-cli-use-the-Client-API-for-communication-to-u.patch
Patch17: 0017-workflow_RHELvmcore-run-analyze_VMcore-too.patch
#Patch18: 0018-tx-configuration-for-rhel7.patch
Patch19: 0019-event-configuration-load-default-values-from-configu.patch
Patch20: 0020-testsuite-xml-translations.patch
Patch21: 0021-testsuite-complex-testing-of-xml-locales.patch
Patch22: 0022-localization-properly-handle-locales-with-encoding-s.patch
Patch23: 0023-fix-loading-of-the-user-list-of-ignored-words.patch
Patch24: 0024-use-a-KB-article-URL-instead-of-upstream-wiki-URL.patch
Patch25: 0025-Provide-SYSLOG_FACILITY-when-logging-through-journal.patch
Patch26: 0026-offer-reporting-to-Bugzilla-only-for-pre-GA-Anaconda.patch
Patch27: 0027-correct-name-of-RH-Customer-Portal.patch
Patch28: 0028-Fix-typos-in-error-messages.patch
Patch29: 0029-send-ureport-before-creating-case-in-RH-Customer-Por.patch
Patch30: 0030-wizard-update-the-help-text-for-screen-casters.patch
Patch31: 0031-introduce-import-event-options-in-xml-event-definiti.patch
Patch32: 0032-rhtsupport-import-event-options-from-uReport.patch
Patch33: 0033-Translation-updates.patch
Patch34: 0034-remove-invalid-bytes-from-sv-strings.patch
Patch35: 0035-config-do-not-export-empty-environment-variables.patch
Patch36: 0036-Translation-updates.patch
Patch37: 0037-Bugzilla-pass-Bugzilla_token-in-all-XML-RPC-calls.patch
Patch38: 0038-stop-using-deprecated-json-c-functions.patch
#Patch39: 0039-spec-byte-compile-py-files-with-rpm-scripts.patch
Patch40: 0040-report-gtk-confirm-the-ask-dialogs-on-Enter.patch
Patch41: 0041-testsuite-check-return-value-of-setlocale.patch
Patch42: 0042-include-package-in-AVC-bugzilla-bug-reports.patch
Patch43: 0043-localization-fix-gettext.patch
Patch44: 0044-wizard-introduce-the-searched-words-list.patch
Patch45: 0045-wizard-use-a-tab-for-Advanced-opts-instead-of-an-exp.patch
Patch46: 0046-gui-apply-configuration-dialogues-changes-on-Enter-k.patch
Patch47: 0047-gui-close-ask-dialogues-on-Enter-key.patch
Patch48: 0048-gui-conver-report-gtk-to-GtkApplication.patch
Patch49: 0049-gui-clear-the-sensitive-cache-between-two-event-runs.patch
Patch50: 0050-gui-don-t-remove-already-removed-GTimeoutSource.patch
Patch51: 0051-gui-reload-destroyed-sensitive-data-warn-widgets-fro.patch
Patch52: 0052-gui-add-Repeat-button.patch
Patch53: 0053-wizard-terminate-event-chain-after-the-emergency-ana.patch
Patch54: 0054-wizard-don-t-work-with-destroyed-widgets.patch
Patch55: 0055-report-parse-release-version-from-os-release.patch
Patch56: 0056-testsuite-report-python-sanity-tests.patch
Patch57: 0057-testsuite-work-around-the-issue-with-report-python.patch
Patch58: 0058-testsuite-add-test-not-reportable.patch
Patch59: 0059-lib-make_description-show-not-reportable.patch
Patch60: 0060-wizard-make-report-gtk-s-application-nonunique.patch
Patch61: 0061-ureport-enabled-inclusion-of-Authentication-data.patch
Patch62: 0062-lib-add-xstrdup_between-str-open-close.patch
Patch63: 0063-testsuite-add-test-for-xstrdup_between-src-open-clos.patch
Patch64: 0064-lib-add-wrapper-for-g_hash_table_size.patch
Patch65: 0065-lib-add-strremovech-str-ch.patch
Patch66: 0066-testsuite-add-test-for-strremovech-str-ch.patch
Patch67: 0067-ureport-use-additional-HTTP-headers-with-rhsm-entitl.patch
Patch68: 0068-lib-add-function-index_of_string_in_list.patch
Patch69: 0069-testsuite-add-a-test-for-index_of_string_in_list.patch
Patch70: 0070-testsuite-change-test-for-make_description.patch
Patch71: 0071-lib-use-user-friendly-order-in-make_description.patch
Patch72: 0072-make_desc-add-reason-to-the-list.patch
Patch73: 0073-logging-test-log-level-at-first-step.patch
Patch74: 0074-augeas-exclude-bugzilla-format-configurations.patch
Patch75: 0075-make-dist-use-tar-ustar-due-to-long-filenames.patch
Patch76: 0076-workflow-add-new-workflows.patch
#Patch77: 0077-spec-update-the-spec-file-to-work-with-the-last-comm.patch
Patch78: 0078-doc-updated-manpages-reporter.patch
Patch79: 0079-ureport-publish-ureport.h-and-refactore-uReport-sour.patch
Patch80: 0080-ureport-aggressive-refactorization-of-uReport-source.patch
#Patch81: 0081-spec-install-ureport.h.patch
Patch82: 0082-ureport-support-HTTP-Basic-authentication.patch
Patch83: 0083-rhtsupport-submit-ureport-and-attach-case-ID-to-urep.patch
Patch84: 0084-rhtsupport-check-for-hints-only-when-creating-a-new-.patch
Patch85: 0085-ureport-provide-default-URLs.patch
Patch86: 0086-ureport-include-AuthDataItems-if-SSLClientAuth-is-co.patch
Patch87: 0087-report_RHTSupport-adapt-event-to-the-recent-changes.patch
Patch88: 0088-bugzilla-add-comment-to-closed-bugs-too.patch
Patch89: 0089-lib-handle-access-denials-in-upload_file.patch
Patch90: 0090-upload-read-credentials-from-environment-variables.patch
Patch91: 0091-rhtsupport-re-prompt-for-credentials.patch
Patch92: 0092-uploader-correct-capitalization-of-the-event-name.patch
Patch93: 0093-lib-process-NULL-arg-as-an-empty-list-in-parse_list.patch
Patch94: 0094-Translation-updates.patch
Patch95: 0095-upload-don-t-ask-for-password-if-the-env-var-is-empt.patch
Patch96: 0096-lib-fix-a-bug-in-ureport-response-parser.patch
Patch97: 0097-rhtsupport-attach-the-contact-email-to-bthash.patch
Patch98: 0098-ureport-document-rhsm-entitlement-in-the-man-page.patch
Patch99: 0099-rhtsupport-send-ureport-before-creating-description.patch
Patch100: 0100-ureport-allow-multiple-cert-file-in-rhsm-entitlement.patch
Patch101: 0101-ureport-use-entit-certs-with-rhsm-and-drop-rhsm-enti.patch
Patch102: 0102-ureport-get-rhsm-entitlement-cert-dir-from-rhsm-conf.patch
Patch103: 0103-ureport-consistently-die-on-all-client-auth-errors.patch
Patch104: 0104-rhtsupport-never-use-uReport-URL-from-ureport.config.patch
Patch105: 0105-rhtsupport-do-not-leak-the-hints-results.patch
Patch106: 0106-ureport-fall-back-to-the-hardcoded-rhsm-cert-dir.patch
Patch107: 0107-workflows-do-not-use-the-Retrace-server-for-generati.patch
Patch108: 0108-Translation-updates.patch
Patch109: 0109-ureport-fix-a-memory-leak-related-to-AuthDataItems.patch
Patch110: 0110-ureport-use-rhsm-ssl-client-auth-by-default.patch
Patch111: 0111-ureport-be-able-to-configure-ContactEmail-from-GUI.patch
Patch112: 0112-rhtsupport-be-able-to-turn-uReport-off-from-GUI.patch
patch113: 0113-rhtsupport-move-RH-Portal-URL-c.-o.-to-Advanced-sect.patch
Patch114: 0114-Revert-ureport-consistently-die-on-all-client-auth-e.patch
Patch115: 0115-testsuite-add-unittests-for-uReport-API.patch
Patch116: 0116-testsuite-changed-atlocal.in-to-work-with-last-commi.patch
Patch117: 0117-testsuite-do-not-expected-ureport-exiting-on-rhsm-ce.patch
#Patch118: 0118-spec-dump-the-log-files-of-failed-unit-tests.patch
Patch119: 0119-ureport-uReport_ContactEmail-setting-can-be-left-emp.patch
Patch120: 0120-gui-support-Enter-2Click-in-Preferences-list.patch
Patch121: 0121-lib-make-config-files-loading-quiter.patch
Patch122: 0122-lib-add-functions-to-load-save-plugin-conf-files.patch
Patch123: 0123-lib-add-a-clone-function-for-map_string_t.patch
Patch124: 0124-ureport-introduce-HTTPAuth.patch
Patch125: 0125-Do-not-use-bool-in-OPT_BOOL-macro-it-expects-int.patch
# git format-patch 2.1.11-21.el7 -N --start-number 126 --topo-order
Patch126: 0126-lib-introduce-a-new-function-copy_file_ext.patch
Patch127: 0127-dump_dir-allow-creating-of-a-new-dir-w-o-chowning-it.patch
Patch128: 0128-dump_dir-allow-hooks-to-create-dump-directory-withou.patch
Patch129: 0129-lib-add-a-function-checking-file-names.patch
Patch130: 0130-dd-harden-functions-against-directory-traversal-issu.patch
Patch131: 0131-lib-allow-creating-root-owned-problem-directories-fr.patch
Patch132: 0132-lib-fix-races-in-dump-directory-handling-code.patch
Patch133: 0133-lib-add-alternative-dd-functions-accepting-fds.patch
Patch134: 0134-build-switch-the-default-dump-dir-mode-to-0640.patch
Patch135: 0135-dd-fix-a-warning-in-printf-for-st_nlink.patch
Patch136: 0136-dd-don-t-try-to-close-not-opened-dir-fd.patch
Patch137: 0137-dd-close-deleted-directories-release-resources.patch
# git format-patch 2.1.11-22.el7 -N --start-number 138 --topo-order
Patch138: 0138-dd-add-missing-return-statement.patch
# git format-patch 2.1.11-23.el7 -N --start-number 139 --topo-order
Patch139: 0139-ureport-add-functionality-to-use-consumer-certificat.patch
Patch140: 0140-testsuite-fix-test-for-ureport.patch
Patch141: 0141-report-python-fix-getVersion_fromOSRELEASE.patch
Patch142: 0142-RHTSupport-include-reported_to-in-Support-cases.patch
# git format-patch 2.1.11-24.el7 -N --start-number 143 --topo-order
Patch143: 0143-problem_data-add-a-new-function-problem_item_get_siz.patch
Patch144: 0144-problem_data-cache-problem_item-size.patch
Patch145: 0145-lib-parse-list-delimited-by-any-character.patch
Patch146: 0146-lib-get-possible-events-for-problem_data_t.patch
# git format-patch 2.1.11-25.el7 -N --start-number 147 --topo-order
Patch147: 0147-lib-fix-a-SEGV-in-list_possible_events.patch
# git format-patch 2.1.11-26.el7 -N --start-number 148 --topo-order
#Patch148: 0148-translations-move-from-transifex-to-zanata.patch
#Patch149: 0149-use-rhel7-branch-for-translations.patch
Patch150: 0150-Update-translations.patch
# git format-patch 2.1.11-27.el7 -N --start-number 151 --topo-order
Patch151: 0151-don-t-spit-unnecessary-debug-messages.patch
Patch152: 0152-dd-don-t-warn-about-missing-type-if-the-locking-fail.patch
# git format-patch 2.1.11-28.el7 -N --start-number 153 --topo-order
#Patch153: 0153-spec-add-redhat-access-insights-to-Requires-of-l-p-r.patch
Patch154: 0154-curl-add-posibility-to-use-own-Certificate-Authority.patch
Patch155: 0155-ureport-use-Red-Hat-Certificate-Authority-to-make-rh.patch
Patch156: 0156-ureport-improve-curl-s-error-messages.patch
# git format-patch 2.1.11-29.el7 -N --start-number 157 --topo-order
Patch157: 0157-testsuite-ureport-initialize-post_state.patch
Patch158: 0158-testsuite-ureport-use-less-strange-testing-error-mes.patch
# git format-patch 2.1.11-30.el7 -N --start-number 159 --topo-order
Patch159: 0159-wizard-fix-save-users-changes-after-reviewing-dump-d.patch
# git format-patch 2.1.11-31.el7 -N --start-number 160 --topo-order
#Patch160: 0160-translations-update-zanata-configuration.patch
#Patch161: 0161-spec-install-global_configuration-stuff.patch
Patch162: 0162-lib-introduce-a-new-function-returning-base-user-con.patch
Patch163: 0163-utils-make-arguments-of-a-list-func-const.patch
Patch164: 0164-conf-files-be-able-to-make-directories-optional.patch
Patch165: 0165-lib-introduce-global-configuration-option-for-exclud.patch
Patch166: 0166-dd-add-a-function-for-compressing-dumpdirs.patch
Patch167: 0167-uploader-use-shared-dd_create_archive-function.patch
Patch168: 0168-testsuite-add-a-test-for-AlwaysExcludedElements.patch
Patch169: 0169-lib-introduce-parser-of-ISO-date-strings.patch
Patch170: 0170-reported_to-add-a-function-formatting-reported_to-li.patch
Patch171: 0171-plugins-port-reporters-to-add_reported_to_entry.patch
Patch172: 0172-lib-add-function-for-removing-userinfo-from-URIs.patch
Patch173: 0173-uploader-save-remote-name-in-reported_to.patch
Patch174: 0174-curl-return-URLs-without-userinfo.patch
Patch175: 0175-ureport-enable-attaching-of-arbitrary-values.patch
# git format-patch 2.1.11-32.el7 -N --start-number 176 --topo-order
Patch176: 0176-curl-fix-typo-Ingoring-Ignoring.patch
Patch177: 0177-testsuite-add-test-for-uid_in_group.patch
Patch178: 0178-dd-make-function-uid_in_group-public.patch
Patch179: 0179-curl-add-possibility-to-configure-SSH-keys.patch
Patch180: 0180-uploader-allow-empty-username-and-password.patch
Patch181: 0181-uploader-move-username-and-password-to-the-advanced-.patch
#Patch182: 0182-spec-add-uploader-config-files-and-related-man-page.patch
Patch183: 0183-uploader-add-possibility-to-set-SSH-keyfiles.patch
Patch184: 0184-uploader-etc-libreport-plugins-upload.conf-as-defaul.patch
Patch185: 0185-bugzilla-make-the-event-configurable.patch
Patch186: 0186-report-gtk-offer-users-to-create-private-ticket.patch
Patch187: 0187-event-config-add-support-for-restricted-access.patch
Patch188: 0188-lib-move-CREATE_PRIVATE_TICKET-to-the-global-configu.patch
Patch189: 0189-testsuite-add-simple-helper-macros.patch
Patch190: 0190-bugzilla-don-t-report-private-problem-as-comment.patch
#Patch191: 0191-spec-add-workflow-for-RHEL-anonymous-report-files.patch
Patch192: 0192-Add-workflow-for-RHEL-anonymous-report.patch
Patch193: 0193-report-gtk-Require-Reproducer-for-RHTSupport.patch
Patch194: 0194-rhtsupport-Discourage-users-from-opening-one-shot-cr.patch
Patch195: 0195-testsuite-problem_data-add-problem_data_reproducible.patch
Patch196: 0196-rhtsupport-Discourage-users-from-reporting-in-non-Re.patch
Patch197: 0197-augeas-trim-spaces-before-key-value.patch
#Patch198: 0198-spec-add-Problem-Format-API.patch
Patch199: 0199-lib-add-Problem-Format-API.patch
Patch200: 0200-rhtsupport-use-problem-report-API-to-create-descript.patch
Patch201: 0201-rhtsupport-add-pkg_vendor-reproducer-and-reproducibl.patch
Patch202: 0202-rhtsupport-attach-all-dump-dir-s-element-to-a-new-ca.patch
Patch203: 0203-lib-remove-unused-function-make_description_bz.patch
Patch204: 0204-mailx-use-problem-report-api-to-define-an-emais-cont.patch
Patch205: 0205-mailx-mail-formatting-add-comment-right-after-onelin.patch
Patch206: 0206-mailx-introduce-debug-parameter-D.patch
Patch207: 0207-mailx-stop-creating-dead.letter-on-mailx-failures.patch
Patch208: 0208-lib-allow-report-SELinux-denial-from-sealert-under-c.patch
Patch209: 0209-lib-problem-report-API-check-fseek-return-code.patch
Patch210: 0210-RHTSupport-include-count-in-Support-cases.patch
Patch211: 0211-configure-set-version-to-2.1.11.1.patch
Patch212: 0212-Translation-updates.patch
Patch213: 0213-reportclient-honor-ABRT_VERBOSE.patch
Patch214: 0214-tree-wide-introduce-stop_on_not_reportable-option.patch
Patch215: 0215-rhtsupport-fix-a-double-free-of-config-at-exit.patch
Patch216: 0216-reportclient-fix-verbosity-test.patch
Patch217: 0217-report-newt-free-allocated-variables-don-t-close-dd-.patch
# git format-patch 2.1.11-38.el7 -N --start-number 218 --topo-order
#Patch218: 0218-spec-allow-deprecated-declarations-warning.patch
Patch219: 0219-augeas-trim-spaces-on-eol-around-value-separator.patch
Patch220: 0220-reporter-ureport-change-default-URL-to-FAF.patch
Patch221: 0221-dump_dir-introduce-dd_copy_file.patch
Patch222: 0222-report-wrap-more-dump-dir-functions.patch
Patch223: 0223-wizard-fix-the-broken-Show-log-widget.patch
#Patch224: 0224-spec-add-workflow-for-adding-data-to-existing-case.patch
Patch225: 0225-workflows-add-workflow-for-adding-data-to-existing-c.patch
# git format-patch 2.1.11-39.el7 -N --start-number 226 --topo-order
Patch226: 0226-reporter-rhtsupport-remove-dependency-of-redhat-acce.patch
# git format-patch 2.1.11-40.el7 -N --start-number 227 --topo-order
Patch227: 0227-potfiles-fix-issue-in-POTFILES.in.patch
Patch228: 0228-Translation-updates.patch
# git format-patch 2.1.11-42.el7 -N --start-number 229 --topo-order
Patch229: 0229-dd-extend-the-scope-of-DD_DONT_WAIT_FOR_LOCK.patch
Patch230: 0230-dd-log-lock-warning-only-once-not-x-times-per-sec.patch
Patch231: 0231-dd-add-functions-for-opening-dd-item.patch
Patch232: 0232-testsuite-Add-macros-for-value-comparison.patch
Patch233: 0233-testsuite-assert-for-common-function-results.patch
Patch234: 0234-testsuite-expose-the-last-check-result.patch
Patch235: 0235-testsuite-fix-dd_open_item_file-test.patch
Patch236: 0236-tests-include-testsuite.h-in-the-dist-archive.patch
#Patch237: 0237-spec-include-testsuite-headers-in-the-devel-package.patch
# git format-patch 2.1.11-43.el7 -N --start-number 238 --topo-order
Patch238: 0238-lib-dump_dir-Clean-up-on-failure-in-dd_delete.patch
Patch239: 0239-dump_dir-allow-semi-recursive-locking.patch
# git format-patch 2.1.11-44.el7 -N --start-number 240 --topo-order
Patch240: 0240-lib-Add-get_env_variable-function.patch
Patch241: 0241-lib-add-get-env-variable-from-a-file.patch
Patch242: 0242-dd-introduce-dd_get_env_variable.patch
Patch243: 0243-coverity-Remove-check-for-null-pointer-with-no-effec.patch
Patch244: 0244-coverity-Change-data-type-for-bug_id-variable-def-44.patch
Patch245: 0245-coverity-Remove-deadcode-def47.patch
Patch246: 0246-coverity-Check-return-value-of-fstat-call-def31.patch
Patch247: 0247-coverity-fix-def9.patch
Patch248: 0248-coverity-fix-def6.patch
Patch249: 0249-coverity-fix-def7.patch
Patch250: 0250-gui-port-to-gtk-3.13.patch
Patch251: 0251-Replacing-gtk_misc_set_alignment-and-gtk_misc_set_pa.patch
Patch252: 0252-gui-fix-build-errors-introduced-in-the-previous-comm.patch
Patch253: 0253-Replacing-gtk_alignment_new.patch
Patch254: 0254-Replacing-gtk_widget_set_margin_left-and-gtk_widget_.patch
Patch255: 0255-gui-wrap-lines-for-human-readable-files.patch
Patch256: 0256-gui-replace-gtk_widget_override-functions.patch
Patch257: 0257-wizard-remove-old-gtk-conditionals.patch
Patch258: 0258-wizard-replace-deprecated-gtk3-functions.patch
Patch259: 0259-lib-xatonum-Bail-out-with-null-strings.patch
Patch260: 0260-gui-wizard-gtk-Fix-never-read-assignment.patch
Patch261: 0261-lib-event_config-Remove-pointless-assignment.patch
Patch262: 0262-lib-file_obj-Don-t-dereference-null-pointers.patch
Patch263: 0263-Removing-gtk_tree_view_set_rules_hint.patch
Patch264: 0264-lib-problem_data-Use-g_strsplit.patch
Patch265: 0265-plugins-rhbz-Don-t-call-strlen-on-attachment-data.patch
Patch266: 0266-cli-Unpack-command-line-argument-parsing-logic.patch
Patch267: 0267-cli-run-command-Replace-use-of-vfork-with-fork.patch
Patch268: 0268-Shut-Coverity-up.patch
Patch269: 0269-lib-spawn-Explicitly-initialize-array.patch
Patch270: 0270-lib-copy_file_recursive-Use-GLib-abstractions.patch
# git format-patch 2.1.11-45.el7 -N --start-number 271 --topo-order
Patch271: 0271-lib-dump_dir-Restore-log-level.patch
# git format-patch 2.1.11-48.el7 -N --start-number=272 --topo-order
Patch272: 0272-dirsize-Skip-dirs-in-which-sosreport-is-being-genera.patch
# git format-patch 2.1.11-49.el7 -N --start-number=272 --topo-order

# git is need for '%%autosetup -S git' which automatically applies all the
# patches above. Please, be aware that the patches must be generated
# by 'git format-patch'
BuildRequires: git

BuildRequires: dbus-devel
BuildRequires: gtk3-devel
BuildRequires: curl-devel
BuildRequires: desktop-file-utils
BuildRequires: xmlrpc-c-devel
BuildRequires: python-devel
BuildRequires: gettext
BuildRequires: libxml2-devel
BuildRequires: libtar-devel
BuildRequires: intltool
BuildRequires: libtool
BuildRequires: nss-devel
BuildRequires: texinfo
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: newt-devel
BuildRequires: libproxy-devel
BuildRequires: satyr-devel >= %{satyr_ver}
BuildRequires: doxygen
BuildRequires: systemd-devel
BuildRequires: augeas-devel
BuildRequires: augeas
Requires: libreport-filesystem = %{version}-%{release}
# required for update from old report library, otherwise we obsolete report-gtk
# and all it's plugins, but don't provide the python bindings and the sealert
# end-up with: can't import report.GtkIO
# FIXME: can be removed when F15 will EOLed, needs to stay in rhel6!
Requires: libreport-python = %{version}-%{release}
Requires: satyr >= %{satyr_ver}


# for rhel6
%if 0%{?rhel} == 6
BuildRequires: gnome-keyring-devel
%else
BuildRequires: libgnome-keyring-devel
%endif

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

%description
Libraries providing API for reporting different problems in applications
to different bug targets like Bugzilla, ftp, trac, etc...

%package filesystem
Summary: Filesystem layout for libreport
Group: Applications/File

%description filesystem
Filesystem layout for libreport

%package devel
Summary: Development libraries and headers for libreport
Group: Development/Libraries
Requires: libreport = %{version}-%{release}

%description devel
Development libraries and headers for libreport

%package web
Summary: Library providing network API for libreport
Group: System Environment/Libraries
Requires: libreport = %{version}-%{release}

%description web
Library providing network API for libreport

%package web-devel
Summary: Development headers for libreport-web
Group: Development/Libraries
Requires: libreport-web = %{version}-%{release}

%description web-devel
Development headers for libreport-web

%package python
Summary: Python bindings for report-libs
# Is group correct here? -
Group: System Environment/Libraries
Requires: libreport = %{version}-%{release}
Provides: report = 0:0.23-1
Obsoletes: report < 0:0.23-1
# in report the rhtsupport is in the main package, so we need to install it too
# report is only in RHEL6, we do not need to carry the dependency to newer RHELs
%if 0%{?rhel} == 6
Requires: libreport-plugin-rhtsupport
%endif

%description python
Python bindings for report-libs.

%package cli
Summary: %{name}'s command line interface
Group: User Interface/Desktops
Requires: %{name} = %{version}-%{release}

%description cli
This package contains simple command line tool for working
with problem dump reports

%package newt
Summary: %{name}'s newt interface
Group: User Interface/Desktops
Requires: %{name} = %{version}-%{release}
Provides: report-newt = 0:0.23-1
Obsoletes: report-newt < 0:0.23-1

%description newt
This package contains a simple newt application for reporting
bugs

%package gtk
Summary: GTK front-end for libreport
Group: User Interface/Desktops
Requires: libreport = %{version}-%{release}
Requires: libreport-plugin-reportuploader = %{version}-%{release}
Requires: fros >= 1.0
%if 0%{?rhel} >= 6
%else
Requires: pygobject3
%endif
Provides: report-gtk = 0:0.23-1
Obsoletes: report-gtk < 0:0.23-1

%description gtk
Applications for reporting bugs using libreport backend

%package gtk-devel
Summary: Development libraries and headers for libreport
Group: Development/Libraries
Requires: libreport-gtk = %{version}-%{release}

%description gtk-devel
Development libraries and headers for libreport-gtk

%package plugin-kerneloops
Summary: %{name}'s kerneloops reporter plugin
Group: System Environment/Libraries
Requires: curl
Requires: %{name} = %{version}-%{release}
Requires: libreport-web = %{version}-%{release}

%description plugin-kerneloops
This package contains plugin which sends kernel crash information to specified
server, usually to kerneloops.org.

%package plugin-logger
Summary: %{name}'s logger reporter plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}

%description plugin-logger
The simple reporter plugin which writes a report to a specified file.

%package plugin-mailx
Summary: %{name}'s mailx reporter plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: mailx

%description plugin-mailx
The simple reporter plugin which sends a report via mailx to a specified
email address.

%package plugin-bugzilla
Summary: %{name}'s bugzilla plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libreport-web = %{version}-%{release}

%package plugin-ureport
Summary: %{name}'s micro report plugin
BuildRequires: json-c-devel
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libreport-web = %{version}-%{release}

%description plugin-ureport
Uploads micro-report to abrt server

%description plugin-bugzilla
Plugin to report bugs into the bugzilla.

%package plugin-rhtsupport
Summary: %{name}'s RHTSupport plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libreport-web = %{version}-%{release}

%description plugin-rhtsupport
Plugin to report bugs into RH support system.

%package compat
Summary: %{name}'s compat layer for obsoleted 'report' package
Group: System Environment/Libraries
Requires: libreport = %{version}-%{release}
Requires: %{name}-plugin-bugzilla = %{version}-%{release}
Requires: %{name}-plugin-rhtsupport = %{version}-%{release}

%description compat
Provides 'report' command-line tool.

%package plugin-reportuploader
Summary: %{name}'s reportuploader plugin
Group: System Environment/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libreport-web = %{version}-%{release}

%description plugin-reportuploader
Plugin to report bugs into anonymous FTP site associated with ticketing system.

%if 0%{?fedora}
%package fedora
Summary: Default configuration for reporting bugs via Fedora infrastructure
Group: Applications/File
Requires: %{name} = %{version}-%{release}

%description fedora
Default configuration for reporting bugs via Fedora infrastructure used to
easily configure the reporting process for Fedora systems. Just install this
package and you're done.
%endif

%if 0%{?rhel}
%package rhel
Summary: Default configuration for reporting bugs via Red Hat infrastructure
Group: Applications/File
Requires: %{name} = %{version}-%{release}

%description rhel
Default configuration for reporting bugs via Red Hat infrastructure used to
easily configure the reporting process for Red Hat systems. Just install this
package and you're done.

%package rhel-bugzilla
Summary: Default configuration for reporting bugs to Red Hat Bugzilla
Group: Applications/File
Requires: %{name} = %{version}-%{release}
Requires: libreport-plugin-bugzilla = %{version}-%{release}
Requires: libreport-plugin-ureport = %{version}-%{release}

%description rhel-bugzilla
Default configuration for reporting bugs to Red Hat Bugzilla used to easily
configure the reporting process for Red Hat systems. Just install this package
and you're done.

%package rhel-anaconda-bugzilla
Summary: Default configuration for reporting anaconda bugs to Red Hat Bugzilla
Group: Applications/File
Requires: %{name} = %{version}-%{release}
Requires: libreport-plugin-bugzilla = %{version}-%{release}

%description rhel-anaconda-bugzilla
Default configuration for reporting Anaconda problems to Red Hat Bugzilla used
to easily configure the reporting process for Red Hat systems. Just install
this package and you're done.
%endif

%package anaconda
Summary: Default configuration for reporting anaconda bugs
Group: Applications/File
Requires: %{name} = %{version}-%{release}
Requires: libreport-plugin-reportuploader = %{version}-%{release}
# The line below should be removed in RHEL7 GA
Requires: libreport-plugin-bugzilla = %{version}-%{release}
%if 0%{?rhel}
Requires: libreport-plugin-rhtsupport = %{version}-%{release}
%endif

%description anaconda
Default configuration for reporting Anaconda problems or uploading the gathered
data over ftp/scp...

%prep
# http://www.rpm.org/wiki/PackagerDocs/Autosetup
# Default '__scm_apply_git' is 'git apply && git commit' but this workflow
# doesn't allow us to create a new file within a patch, so we have to use
# 'git am' (see /usr/lib/rpm/macros for more details)
%define __scm_apply_git(qp:m:) %{__git} am
%autosetup -S git


%build
autoreconf --force --install
intltoolize --force --copy
CFLAGS="%{optflags} -Werror -Wno-error=deprecated-declarations" %configure --enable-doxygen-docs --disable-silent-rules
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir}
%find_lang %{name}

# Remove byte-compiled python files generated by automake.
# automake uses system's python for all *.py files, even
# for those which needs to be byte-compiled with different
# version (python2/python3).
# rpm can do this work and use the appropriate python version.
find $RPM_BUILD_ROOT -name "*.py[co]" -delete

# remove all .la and .a files
find $RPM_BUILD_ROOT -name '*.la' -or -name '*.a' | xargs rm -f
mkdir -p $RPM_BUILD_ROOT/%{_initrddir}
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/events.d/
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/%{name}/events/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/events/
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%{name}/workflows/

# After everything is installed, remove info dir
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir

# Remove unwanted Fedora specific workflow configuration files
%if 0%{!?fedora:1}
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraCCpp.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraKerneloops.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraPython.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraVmcore.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraXorg.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraLibreport.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_FedoraJava.xml
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_fedora.conf
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_fedora.conf.5
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_AnacondaFedora.xml
%endif

# Remove unwanted RHEL specific workflow configuration files
%if 0%{!?rhel:1}
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELCCpp.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELKerneloops.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELPython.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELvmcore.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELxorg.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELLibreport.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELJava.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_uReport.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_AnacondaRHEL.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_AnacondaRHELBugzilla.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaCCpp.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaKerneloops.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaPython.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaVmcore.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaXorg.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaLibreport.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELBugzillaJava.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDataCCpp.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDataJava.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDataKerneloops.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDataLibreport.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDataPython.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDatavmcore.xml
rm -f $RPM_BUILD_ROOT/%{_datadir}/libreport/workflows/workflow_RHELAddDataxorg.xml
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_rhel.conf
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_rhel_add_data.conf
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_uReport.conf
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_rhel.conf.5
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_uReport.conf.5
rm -f $RPM_BUILD_ROOT%{_mandir}/man5/report_rhel_bugzilla.conf.5
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%check
make check|| {
    # find and print the logs of failed test
    # do not cat tests/testsuite.log because it contains a lot of bloat
    find tests/testsuite.dir -name "testsuite.log" -print -exec cat '{}' \;
    exit 1
}

%post gtk
/sbin/ldconfig
# update icon cache
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%postun gtk
/sbin/ldconfig
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
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%post web -p /sbin/ldconfig


%postun web -p /sbin/ldconfig


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README COPYING
%config(noreplace) %{_sysconfdir}/%{name}/report_event.conf
%config(noreplace) %{_sysconfdir}/%{name}/forbidden_words.conf
%config(noreplace) %{_sysconfdir}/%{name}/ignored_words.conf
%{_libdir}/libreport.so.*
%{_libdir}/libabrt_dbus.so.*
%{_mandir}/man5/report_event.conf.5*
%{_mandir}/man5/forbidden_words.conf.5*
# filesystem package owns /usr/share/augeas/lenses directory
%{_datadir}/augeas/lenses/libreport.aug

%files filesystem
%defattr(-,root,root,-)
%dir %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/events.d/
%dir %{_sysconfdir}/%{name}/events/
%dir %{_sysconfdir}/%{name}/plugins/
%dir %{_datadir}/%{name}/events/
%dir %{_datadir}/%{name}/workflows/

%files devel
%defattr(-,root,root,-)
# Public api headers:
%doc apidoc/html/*.{html,png,css,js}
%{_includedir}/libreport/libreport_types.h
%{_includedir}/libreport/client.h
%{_includedir}/libreport/dump_dir.h
%{_includedir}/libreport/event_config.h
%{_includedir}/libreport/problem_data.h
%{_includedir}/libreport/problem_report.h
%{_includedir}/libreport/report.h
%{_includedir}/libreport/run_event.h
%{_includedir}/libreport/file_obj.h
%{_includedir}/libreport/config_item_info.h
%{_includedir}/libreport/workflow.h
%{_includedir}/libreport/ureport.h
%{_includedir}/libreport/global_configuration.h
# Private api headers:
%{_includedir}/libreport/internal_abrt_dbus.h
%{_includedir}/libreport/internal_libreport.h
%{_includedir}/libreport/xml_parser.h
%{_includedir}/libreport/helpers
%{_libdir}/libreport.so
%{_libdir}/libabrt_dbus.so
%{_libdir}/pkgconfig/libreport.pc
%dir %{_includedir}/libreport

%files web
%defattr(-,root,root,-)
%{_libdir}/libreport-web.so.*

%files web-devel
%defattr(-,root,root,-)
%{_libdir}/libreport-web.so
%{_includedir}/libreport/libreport_curl.h
%{_libdir}/pkgconfig/libreport-web.pc

%files python
%defattr(-,root,root,-)
%{python_sitearch}/report/*
%{python_sitearch}/reportclient/*

%files cli
%defattr(-,root,root,-)
%{_bindir}/report-cli
%{_mandir}/man1/report-cli.1.gz

%files newt
%defattr(-,root,root,-)
%{_bindir}/report-newt
%{_mandir}/man1/report-newt.1.gz

%files gtk
%defattr(-,root,root,-)
%{_bindir}/report-gtk
%{_libdir}/libreport-gtk.so.*
%config(noreplace) %{_sysconfdir}/libreport/events.d/emergencyanalysis_event.conf
%{_mandir}/man5/emergencyanalysis_event.conf.5.*
%{_datadir}/%{name}/events/report_EmergencyAnalysis.xml
%{_mandir}/man1/report-gtk.1.gz


%files gtk-devel
%defattr(-,root,root,-)
%{_libdir}/libreport-gtk.so
%{_includedir}/libreport/internal_libreport_gtk.h
%{_libdir}/pkgconfig/libreport-gtk.pc

%files plugin-kerneloops
%defattr(-,root,root,-)
%{_datadir}/%{name}/events/report_Kerneloops.xml
%{_mandir}/man*/reporter-kerneloops.*
%{_bindir}/reporter-kerneloops

%files plugin-logger
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/libreport/events/report_Logger.conf
%{_mandir}/man5/report_Logger.conf.5.*
%{_datadir}/%{name}/events/report_Logger.xml
%{_datadir}/%{name}/workflows/workflow_Logger.xml
%{_datadir}/%{name}/workflows/workflow_LoggerCCpp.xml
%config(noreplace) %{_sysconfdir}/libreport/events.d/print_event.conf
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_logger.conf
%{_mandir}/man5/print_event.conf.5.*
%{_mandir}/man5/report_logger.conf.5.*
%{_bindir}/reporter-print
%{_mandir}/man*/reporter-print.*

%files plugin-mailx
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/libreport/plugins/mailx.conf
%{_datadir}/%{name}/conf.d/plugins/mailx.conf
%{_datadir}/%{name}/events/report_Mailx.xml
%{_datadir}/%{name}/workflows/workflow_Mailx.xml
%{_datadir}/%{name}/workflows/workflow_MailxCCpp.xml
%{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.mailx.xml
%config(noreplace) %{_sysconfdir}/libreport/events.d/mailx_event.conf
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_mailx.conf
%{_mandir}/man5/mailx.conf.5.*
%{_mandir}/man5/mailx_event.conf.5.*
%{_mandir}/man5/report_mailx.conf.5.*
%{_mandir}/man*/reporter-mailx.*
%{_bindir}/reporter-mailx

%files plugin-ureport
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/libreport/plugins/ureport.conf
%{_datadir}/%{name}/conf.d/plugins/ureport.conf
%{_bindir}/reporter-ureport
%{_mandir}/man1/reporter-ureport.1.gz
%{_mandir}/man5/ureport.conf.5.gz
%{_datadir}/%{name}/events/report_uReport.xml
%{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.ureport.xml

%files plugin-bugzilla
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla.conf
%{_datadir}/%{name}/conf.d/plugins/bugzilla.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_libreport.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_kernel.conf
%{_datadir}/%{name}/events/report_Bugzilla.xml
%config(noreplace) %{_sysconfdir}/libreport/events/report_Bugzilla.conf
%config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_event.conf
%{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.bugzilla.xml
# FIXME: remove with the old gui
%{_mandir}/man1/reporter-bugzilla.1.gz
%{_mandir}/man5/report_Bugzilla.conf.5.*
%{_mandir}/man5/bugzilla_event.conf.5.*
%{_mandir}/man5/bugzilla.conf.5.*
%{_mandir}/man5/bugzilla_format.conf.5.*
%{_mandir}/man5/bugzilla_formatdup.conf.5.*
%{_mandir}/man5/bugzilla_format_libreport.conf.5.*
%{_mandir}/man5/bugzilla_format_kernel.conf.5.*
%{_bindir}/reporter-bugzilla

%files plugin-rhtsupport
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/libreport/plugins/rhtsupport.conf
%{_datadir}/%{name}/conf.d/plugins/rhtsupport.conf
%{_datadir}/%{name}/events/report_RHTSupport.xml
%{_datadir}/%{name}/events/report_RHTSupport_AddData.xml
%{_datadir}/dbus-1/interfaces/com.redhat.problems.configuration.rhtsupport.xml
%attr(600,-,-)%{_sysconfdir}/%{name}/cert-api.access.redhat.com.pem
%config(noreplace) %{_sysconfdir}/libreport/events.d/rhtsupport_event.conf
%{_mandir}/man1/reporter-rhtsupport.1.gz
%{_mandir}/man5/rhtsupport.conf.5.*
%{_mandir}/man5/rhtsupport_event.conf.5.*
%{_bindir}/reporter-rhtsupport

%files compat
%defattr(-,root,root,-)
%{_bindir}/report
%{_mandir}/man1/report.1.gz

%files plugin-reportuploader
%defattr(-,root,root,-)
%{_mandir}/man*/reporter-upload.*
%{_mandir}/man5/uploader_event.conf.5.*
%{_mandir}/man5/report_uploader.conf.5.*
%{_bindir}/reporter-upload
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_uploader.conf
%config(noreplace) %{_sysconfdir}/libreport/events.d/uploader_event.conf
%{_datadir}/%{name}/events/report_Uploader.xml
%{_datadir}/%{name}/workflows/workflow_Upload.xml
%{_datadir}/%{name}/workflows/workflow_UploadCCpp.xml
%config(noreplace) %{_sysconfdir}/libreport/events/report_Uploader.conf
%{_mandir}/man5/report_Uploader.conf.5.*
%config(noreplace) %{_sysconfdir}/libreport/plugins/upload.conf
%{_datadir}/%{name}/conf.d/plugins/upload.conf
%{_mandir}/man5/upload.conf.5.*

%if 0%{?fedora}
%files fedora
%defattr(-,root,root,-)
%{_datadir}/%{name}/workflows/workflow_FedoraCCpp.xml
%{_datadir}/%{name}/workflows/workflow_FedoraKerneloops.xml
%{_datadir}/%{name}/workflows/workflow_FedoraPython.xml
%{_datadir}/%{name}/workflows/workflow_FedoraVmcore.xml
%{_datadir}/%{name}/workflows/workflow_FedoraXorg.xml
%{_datadir}/%{name}/workflows/workflow_FedoraLibreport.xml
%{_datadir}/%{name}/workflows/workflow_FedoraJava.xml
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_fedora.conf
%{_mandir}/man5/report_fedora.conf.5.*
%endif

%if 0%{?rhel}
%files rhel
%defattr(-,root,root,-)
%{_datadir}/%{name}/workflows/workflow_RHELCCpp.xml
%{_datadir}/%{name}/workflows/workflow_RHELKerneloops.xml
%{_datadir}/%{name}/workflows/workflow_RHELPython.xml
%{_datadir}/%{name}/workflows/workflow_RHELvmcore.xml
%{_datadir}/%{name}/workflows/workflow_RHELxorg.xml
%{_datadir}/%{name}/workflows/workflow_RHELLibreport.xml
%{_datadir}/%{name}/workflows/workflow_RHELJava.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDataCCpp.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDataJava.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDataKerneloops.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDataLibreport.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDataPython.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDatavmcore.xml
%{_datadir}/%{name}/workflows/workflow_RHELAddDataxorg.xml
%{_datadir}/%{name}/workflows/workflow_uReport.xml
%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_uReport.conf
%{_mandir}/man5/report_rhel.conf.5.*
%{_mandir}/man5/report_uReport.conf.5.*

%files rhel-bugzilla
%defattr(-,root,root,-)
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaCCpp.xml
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaKerneloops.xml
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaPython.xml
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaVmcore.xml
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaXorg.xml
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaLibreport.xml
%{_datadir}/%{name}/workflows/workflow_RHELBugzillaJava.xml
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
%{_mandir}/man5/report_rhel_bugzilla.conf.5.*

%files rhel-anaconda-bugzilla
%defattr(-,root,root,-)
%{_datadir}/%{name}/workflows/workflow_AnacondaRHELBugzilla.xml
%endif

%files anaconda
%defattr(-,root,root,-)
%if 0%{?fedora}
%{_datadir}/%{name}/workflows/workflow_AnacondaFedora.xml
%endif
%if 0%{?rhel}
%{_datadir}/%{name}/workflows/workflow_AnacondaRHEL.xml
%endif
%{_datadir}/%{name}/workflows/workflow_AnacondaUpload.xml
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/anaconda_event.conf
%config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_anaconda_event.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_anaconda.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_anaconda.conf
%{_mandir}/man5/anaconda_event.conf.5.*
%{_mandir}/man5/bugzilla_anaconda_event.conf.5.*
%{_mandir}/man5/bugzilla_format_anaconda.conf.5.*
%{_mandir}/man5/bugzilla_formatdup_anaconda.conf.5.*


%changelog
* Tue Aug 20 2019 Ernestas Kulik <ekulik@redhat.com> - 2.1.11-49
- Add patch for rhbz#1671232

* Wed Aug 14 2019 Ernestas Kulik <ekulik@redhat.com> - 2.1.11-48
- Add patch to fix failing test due to changes in #1688368

* Tue Aug 13 2019 Ernestas Kulik <ekulik@redhat.com> - 2.1.11-47
- Rebuild due to translations not being merged

* Tue Aug 13 2019 Ernestas Kulik <ekulik@redhat.com> - 2.1.11-46
- Enable patches for #1688368

* Thu Jul 25 2019 Ernestas Kulik <ekulik@redhat.com> - 2.1.11-45
- Add patches for rhbz#1717306

* Thu Jul 25 2019 Ernestas Kulik <ekulik@redhat.com> - 2.1.11-44
- Add patches for rhbz#1671233

* Tue Nov 20 2018 Martin Kutlak <mkutlak@redhat.com> - 2.1.11-43
- dd: extend the scope of DD_DONT_WAIT_FOR_LOCK
- dd: log lock warning only once not x times per sec
- dd: add functions for opening dd item
- testsuite: Add macros for value comparison
- testsuite: assert for common function results
- testsuite: expose the last check result
- testsuite: fix dd_open_item_file test
- tests: include testsuite.h in the dist archive
- spec: include testsuite headers in the devel package
- Related: #1588272, #1613236

* Wed Aug 08 2018 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-42
- Translation updates
- Related: #1549672

* Mon Aug 06 2018 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-41
- potfiles: fix issue in POTFILES.in
- Related: #1449646

* Tue Jan 23 2018 Martin Kutlak <mkutlak@redhat.com> - 2.1.11-40
- Remove dependency on redhat-access-insights
- Related: #1524481

* Thu Oct 26 2017 Martin Kutlak <mkutlak@redhat.com> - 2.1.11-39
- Introduce workflow for adding data to existing case
- Change default URL to the FAF server
- wizard: fix 'Show log' window not displaying correctly
- augeas: fix parsing spaces in configuration files
- Related: #1303326, #1435256, #1463313

* Tue Feb 21 2017 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-38
- free allocated variables, don't close dd twice
- Related: #1257159

* Thu Feb  9 2017 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-37
- rebuild

* Wed Feb  8 2017 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-36
- introduce 'stop_on_not_reportable' option
- fix a double free of config at exit in reporter-rhtsupport
- Related: #1373094, #1257159

* Thu Sep  1 2016 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-35
- Translation updates
- Related: #1304240

* Fri Apr 15 2016 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-34
- include count in Support cases
- Related: #1258482

* Wed Apr 13 2016 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-33
- lib: allow report SELinux denial from sealert under common user
- mailx: stop creating dead.letter on mailx failures
- mailx: introduce debug parameter -D
- mailx: mail formatting: add comment right after %%oneline
- mailx: use problem report api to define an emais' content
- lib: remove unused function make_description_bz
- rhtsupport: attach all dump dir's element to a new case
- rhtsupport: add pkg_vendor, reproducer and reproducible to description
- rhtsupport: use problem report API to create description
- lib: add Problem Format API
- augeas: trim spaces before key value
- rhtsupport: Discourage users from reporting in non Red Hat stuff
- rhtsupport: Discourage users from opening one-shot crashes
- report-gtk: Require Reproducer for RHTSupport
- Add workflow for RHEL anonymous report
- bugzilla: don't report private problem as comment
- lib: move CREATE_PRIVATE_TICKET to the global configuration
- event config: add support for 'restricted access'
- report-gtk: offer users to create private ticket
- bugzilla: make the event configurable
- uploader: /etc/libreport/plugins/upload.conf as default conf file
- dd: make function uid_in_group() public
- uploader: add possibility to set SSH keyfiles
- uploader: move username and password to the advanced options
- uploader: allow empty username and password
- curl: add possibility to configure SSH keys
- Resolves #1289513, #1277849, #1289513, #1279453, #1258482, #1236613, #1261358, #1281312, #1309317, #1264921

* Wed Feb 17 2016 Matej Habrnal <mhabrnal@redhat.com> - 2.1.11-32
- Save remote name in reported_to
- Add a function for compressing dumpdirs
- Introduce global configuration + option for excluded elements
- attach the URL of the uploaded problem to the relevant report
- Resolves: #1300780

* Thu Oct 29 2015 Jakub Filak <jfilak@redhat.com> - 2.1.11-31
- save all files changed by the reporter in the reporting GUI
- Fixes CVE-2015-5302
- Related: #1266853

* Thu Sep 17 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-30
- ureport test fix
- Related: #1223805

* Thu Sep 17 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-29
- authenticated micro-reporting fixes
- spec: require redhat-access-insights
- Related: #1223805

* Fri Aug 14 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-28
- don't warn about missing 'type' if the locking fails
- don't spit unnecessary debug messages
- Related: #1243280, #1243280

* Wed Jul 29 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-27
- Update translations
- Related: #1169386

* Thu Jul 9 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-26
- lib: fix a SEGV in list_possible_events()
- Related: #1224984

* Tue Jul 7 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-25
- add support for abrt-cli over DBus functionality
- Related: #1224984

* Thu Jul 2 2015 Richard Marko <rmarko@redhat.com> - 2.1.11-24
- ureport: add functionality to use consumer certificate
- report-python: fix getVersion_fromOSRELEASE
- RHTSupport: include reported_to in Support cases
- Resolves: #1223805, #1198551, #1197108

* Sat May 23 2015 Jakub Filak <jfilak@redhat.com> - 2.1.11-23
- do not open files outside a dump directory
- Related: #1217483

* Tue May 05 2015 Jakub Filak <jfilak@redhat.com> - 2.1.11-22
- switch the default dump dir mode to 0750
- harden against directory traversal, crafted symbolic links
- avoid race-conditions in dump dir opening
- Resolves: #1212098, #1217483, #1217500

* Wed Jan 14 2015 Jakub Filak <jfilak@redhat.com> - 2.1.11-21
- ureport: fix command line arguments parsing
- Resolves: #1182091

* Thu Jan 08 2015 Jakub Filak <jfilak@redhat.com> - 2.1.11-20
- ureport: use HTTP Basic access auth instead of SSL mutual auth
- Related: #1140224

* Wed Dec 10 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-19
- configuration: open the event config dialog on enter key and double-click
- Related: #1067123

* Mon Dec 08 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-18
- ureport: uReport_ContactEmail setting can be left empty
- Related: #1150388

* Wed Nov 05 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-17
- ureport: disable uReport authentication if 'rhsm' certificates are missing
- Related: #1140224

* Mon Nov 03 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-16
- ureport: SSLClientAuth setting is set to 'rhsm' by default
- Related: #1140224

* Fri Oct 24 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-15
- Translation updates
- workflows: do not use the Retrace server
- Related: #1094203

* Thu Oct 23 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-14
- ureport: don not fail with multiple entitlement certs
- ureport: don not use uReport_URL in reporter-rhtsupport
- Related: #1139987, #1140224

* Thu Oct 09 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-13
- rhtsupport: attach contact email to uReport
- rhtsupport: send ureport before creating description
- ureport: fix a bug in the response parser
- ureport: update the man page
- uploader: accept empty string as password
- Resolves: #1150388
- Related: #1139987, #1066486

* Thu Oct 02 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-12
- localization fixes
- update man pages
- provide workflows for logger, mailx, reportuploader
- uploader: correct capitalization of the event name
- rhtsupport: re-prompt for credentials
- rhtsupport: submit ureport
- uploader: allow secure password/credentials input for crash upload
- make_description: user-friendly order and add reason to the list
- make_description: add not_reportable to the list
- python-report: parse release/version from os-release
- ureport: Attach portal cases
- ureport: Add authentication support when sending attachments
- ureport: Add option to include hostname and machine id in uReport    2014-09-19
- ureport: Add entitlement HTTP headers when using RHSM certificate authorization  2014-09-19
- fix: huge debug log messages causing libreport to SEGV   2014-09-22
- augeas: exclude bugzilla format configurations
- bugzilla: add comment to closed bugs too
- SELinux AVC: include 'package' in bugzilla bug reports
- gui: close dialogues on Enter key
- gui: fix: collapsing Advanced section in configuration doesn't change size of window
- gui: allow users to reconfigure libreport and retry reporting
- Resolves: #965963, #1087866, #1014788, #1104313, #1066486, #1067440, #1101240, #1139987, #1140044, #1067143, #1094203, #1142380, #1139922, #1139557, #1140224, #1087861, #1069917, #1066520, #1075452, #1067123, #1056101, #1084028, #1087866

* Mon Aug 4 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-11
- stop using deprecated json-c API
- Resolves: #1125743

* Wed Apr 30 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-10
- update due to Bugzilla RPC changes
- Resolves: #1090465

* Mon Mar 10 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-9
- do not export empty configuration options as environment variables
- translation updates
- Resolves: #1062498, #1073610

* Wed Mar 05 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-8
- fix Swedish translation strings
- Resolves: #1070882

* Wed Feb 26 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-7
- send an ureport before creating a customer case
- correct name of RH Customer Portal in Anaconda
- fix suggestion text for screen casting programs
- fix typos in error messages
- translation updates
- Resolves: #1064961, #1069111, #1069340

* Wed Feb 12 2014 Jakub Filak <jfilak@redhat.com> - 2.1.11-6
- turn off Bugzilla for Anaconda bugs in GA releases
- Provide SYSLOG_FACILITY when logging through journal
- KB article URL as a link to help for ABRT configuration
- load the user list of ignored words
- localization: properly handle locales with encoding suffix
- event configuration: load default values from configuration directory
- Resolves: #1029438, #1062135, #1063320, #1063339, #1063804, #1064261

* Thu Jan 30 2014 Jakub Filak <jfilak@redhat.com> 2.1.11-5
- report-cli: use the Client API for communication to user
- workflow_RHELvmcore: run analyze_VMcore too
- Resolves: #1058845, #1059651

* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 2.1.11-4
- Mass rebuild 2014-01-24

* Wed Jan 22 2014 Jakub Filak <jfilak@redhat.com> 2.1.11-3
- ureport - add support for client-side authentication
- Resolves: #1053042

* Tue Jan 21 2014 Jakub Filak <jfilak@redhat.com> 2.1.11-2
- define D-Bus configuration interfaces
- add Java Reporting workflows
- remove Workflows tab in Preferences
- Resolves: #1054713, #1055610, #1055633

* Thu Jan 09 2014 Jakub Filak <jfilak@redhat.com> 2.1.11-1
- Update translations
- map_string_t: fix overflow detection in "to int conversion"
- add type agnostic functions for map_string_t
- %%description spelling fix.
- remove left over debug stmts from conf files fns
- spec: remove RHEL files from non-RHEL builds
- update titles of RHTS workflows
- spec: add a package which ships Anaconda RHEL BZ WFS
- add Anaconda Bugzilla reporting workflows for RHEL
- spec: add a package which ships RHEL Bugzilla workflows
- add Bugzilla reporting workflows for RHEL
- remove file options not matching any setting
- Resolves: #1015093, #1035352, #1035377, #1050152

* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 2.1.7-5
- Mass rebuild 2013-12-27

* Mon Nov 18 2013 Jakub Filak <jfilak@redhat.com> 2.1.7-4
- Use the RHEL-specific FAF URL by default
- Load a config file from several directories
- Resolves: #1031701

* Fri Nov 08 2013 Jakub Filak <jfilak@redhat.com> 2.1.7-3
- Disable reporting to Red Hat Customer Portal for Anaconda bugs
- Resolves: #1015554

* Thu Nov 07 2013 Jakub Filak <jfilak@redhat.com> 2.1.7-2
- Enable reporting to Red Hat Bugzilla for Anaconda bugs
- Enable reporting to Red Hat Customer Portal for Anaconda bugs
- Resolves: #1015554

* Wed Sep 11 2013 Jakub Filak <jfilak@redhat.com> 2.1.7-1
- Fix problem_item_format() to work properly after 2038 on x32. #691
- Use proper json-c requirement in libreport-web.pc.
- abrt-cli info: even -s 10 should show one-liners. #690
- add checks for existing dumpdir items - closes #164
- Create helper functions for sha1-hashing strings. #694
- can now use custom repo filters for enabling repos, related abrt/abrt#688
- add docstrings, remove global variable - related #171
- fixed exception handling - closes #173
- added checks for locked dump directory to dd_* functions, closes #133
- fixed the symlinks handling in get_file_list abrt/abrt#686
- make the build in the the build directory to not pollute the source tree
- fixed debugInfoDownload so that it can process local repos - closes #48
- Increase text size limit from 1Mb to 8 MB. rhbz#887570.
- print warning when there is not engough free space for debuginfos, closes #170
- autogen.sh: improve dependency parser
- ignore directories without type element - rhbz#958968
- abrt_xmlrpc: increase XML_SIZE_LIMIT to 4 mbytes. rhbz#961520.
- ask user to create a private report if it contains sensitive data - rhbz#960549
- updated translation rhbz#860555
- updated transifex url
- do not leak file rhbz#997871
- in KDE session open URLs in kde-open
- report-gtk: use wrapped text for warning labels
- spec: remove abrt-screencast
- remove obsoleted abrt-screencast
- Fix create_symlink_lockfile() to not emit ENOENT when asked not to.
- do not store potentially big data in /tmp
- New public function create_symlink_lockfile()
- Resolves: #958968, #981271

* Mon Jul 29 2013 Jakub Filak <jfilak@redhat.com> 2.1.6-2
- link with gobject libraries
- use RHTSupport in RHEL workflows

* Fri Jul 26 2013 Jakub Filak <jfilak@redhat.com> 2.1.6-1
- add related packages version in emergency event
- replace functions deprecated in Gtk-3.10 with their substitutes
- fixed the bugzilla private group names rhbz#985881
- workflows: add Anaconda work flow for RHEL
- add missing manual pages for configuration files, binaries and scripts
- added options to create private bz tickets rhbz#803772
- skip the workflow selection if there is only 1 available closes #167
- added missing workflows for Fedora rhbz#866027
- spec: double up percent signs in chagelog entries
- spec: make anaconda package description more generic
- spec: install RHEL anaconda work flow
- spec: added new workflow files rhbz#866027
- spec: build only workflow subpkg relevant for host's OS
- spec: install all manual pages
- spec: install only documentation files
- spec: drop unnecessary Obsoletes and Provides
- spec: add manual pages to packages
- spec: specify all config files
- spec: replace btparser with satyr
- move non-conf XML files from /etc/libreport/ to /usr/share/libreport/
- Update satyr support, drop btparser compatibility
- fixed typo in config file related #866027
- resize the config window upon collapsing Advanced section
- rhbz: test xmlrpc env for errors in abrt_xmlrpc_call_params()
- rhbz: test rhbz_new_bug() return value for errors
- wizard: show accurate messages
- spec: add dependency on fros rhbz#958979
- use fros instead of hard dependency on recordmydesktop rhbz#958979
- Resolves: #965937, #973167

* Fri Jun 14 2013 Jakub Filak <jfilak@redhat.com> 2.1.5-1
- make the uploader event available for all report types
- ureport: add conversion from abrt vmcore type to ureport KERNELOOPS type
- fixed relro flags rhbz#812283
- rhbz: don't pass NULL in platform argument
- add function getting information about dump dir for uid
- anaconda: add proper configuration
- rhbz: do not try to attach empty files
- try to delete dump dirs using abrtd in the first step
- workflow config: use scrollbars instead of enormous window size
- Resolves: #971117, #958961

* Fri May 10 2013 Jiri Moskovcak <jmoskovc@redhat.com> 2.1.4-5
- removed dependency on recordmydesktop rhbz#959475

* Mon May 06 2013 Jakub Filak <jfilak@redhat.com> 2.1.4-4
- bump release number

* Mon May 06 2013 Jakub Filak <jfilak@redhat.com> 2.1.4-3
- create last_occurrence at the time of the first crash

* Fri May 03 2013 Jakub Filak <jfilak@redhat.com> 2.1.4-2
- update translation
- reporter-bugzilla: provide version of libreport

* Mon Apr 29 2013 Jakub Filak <jfilak@redhat.com> 2.1.4-1
- support /etc/os-release
- added flag to not retry locking the incomplete problem dir
- ureport: save solutions in not-reportable item
- wizard: make value column click-sortable too
- wizard: fix clickability of the item list column header
- wizard: eliminate evd->error_msg member
- wizard: remove a bunch of evd->foo members
- debuginfo downloader should enable repos matching *debug* closes #138
- Replace "THANKYOU" with EXIT_STOP_EVENT_RUN exit code (70)
- debuginfo downloader: fix DebugInfoDownload::download() error paths.
- report-gtk: handle user cancellation gracefully
- logging: refine errors reporting
- emit a message when searching bugzilla for duplicates closes #151
- reporter-upload: create tarball with the name based on directory's name
- reporter-rhtsupport: generate archive name from problem dir name
- added report-cli event for anaconda should help with rhbz#950544
- ss: skip option holding NULL values
- spec: added new event for anaconda reporting rhbz#926916
- distinguish the event configuration by problem type in the UI closes #149
- report-gtk: show Next Step btn at workflow start
- curl upload helper: upload data with "application/octet-stream" content type
- reporter-rhtsupport: fix hint query to use correct URL

* Fri Apr 12 2013 Jakub Filak <jfilak@redhat.com> 2.1.3-3
- fixed reporting from anaconda in text mode (#949603)

* Thu Apr  4 2013 Jiri Moskovcak <jmoskovc@redhat.com> 2.1.3-2
- fixed reporting from anaconda
- Resolves: #926916

* Wed Mar 27 2013 Jakub Filak <jfilak@redhat.com> 2.1.3-1
- rhbz: get id of duplicate from correct field
- change the "exited with" message with something less technical closes #143
- Integration with satyr
- dump_dir_accessible_by_uid(): clear errno if error didn't occur
- reporter-rhtsupport: improve logging
- reporter-rhtsupport: upload file to BigFileURL if it is large
- dd: document used errno values in dump_dir_accessible_by_uid()
- add rhel package with appropriate workflow definitions
- add workflow definitions for RHEL
- improve is_text_file() to not treat valid Unicode as bad_chars
- reporter-rhtsupport: fix double-free error
- reporter-upload: move file upload function to lib/
- reporter-upload: factor out HTTP PUT upload
- reporter-rhtsupport: skip hints check if uploaded data is really large
- reporter-rhtsupport: make -t[CASE_ID] work without FILEs. Closes #140
- reporter-rhtsupport: factor out tarball creation
- RHTS support: regularize order of functions and comments
- fread_with_reporting: make progress indicator less noisy
- report-gtk: update excluded elements check boxes before emergency analysis event
- Resolves: #921941

* Fri Mar 22 2013 Jakub Filak <jfilak@redhat.com> 2.1.2-2
- add a patch which fixes a problem with empty archives in emergency analysis

* Tue Mar 19 2013 Jakub Filak <jfilak@redhat.com> 2.1.2-1
- always treat os-release as textual related to rhbz#922433
- is_text_file(): bump allowable non-ASCII chars from 2%% to 10%%. Closes rhbz#922433
- report-gtk: don't clear warnings after reporting is finished
- report-gtk: show tabs only in verbose expert mode
- report-gtk: prettify the workflow buttons rhbz#917694
- report-gtk: add a button to report reporting failures
- uReport: do not show URL twice in error output
- uReport: detect missing type field at client side
- uReport: add more explanatory message when upload fails
- uReport: improve messages. Closes #579
- workflows: a less confusing event name for reporting to Fedora infrastructure
- workflows: correct an event name for reporting to Fedora in anaconda config
- fixed workflow localization closes #137
- run_event_state: expose children_count in python wrapper
- add the proxy options to the addvanced section of event configurations
- don't suid before running yum related to rhbz#759443
- update translation
- ss: stop reconnecting to the session bus
- ss: destroy all timeout GSources attached to the main context
- ss: add a timeout to the waiting for the Completed signal
- dd: convert time at lock time
- spawn_next_command: make process group creation optional
- fork_execv_on_steroids: fix close/move order of fds, move getpwuid out of fork
- problem API: generate UUID if is missing instead of DUPHASH
- fix logic of 'Dont ask me again' dialogues (stop returning true for all options)
- make [p]error_msg[_and_die] more fork-in-multithreaded-app safe
- Make forking code paths more robust.
- curl_debug: fix use of "%%.*s" (need to pass an int, not size_t)
- curl_debug: prettify debug output
- Resolves: #871126, #885055, #890778, #901467, #916389, #917684, #917694, #919536, #922433, #923117

* Thu Feb 07 2013 Jakub Filak <jfilak@redhat.com> 2.1.1-1
- move 'reporter-mailx' from post-create event to notify(-dup) event
- reporter-bugzilla: use base64 XMLRPC type for encoded data instead of string type
- ureport: fix extra quoting when reporting error messages
- Resolves: #908210

* Tue Feb 05 2013 Jakub Filak <jfilak@redhat.com> 2.1.0-2
- configure libreport to be in conflict with abrt < 2.1.0

* Mon Feb 04 2013 Jakub Filak <jfilak@redhat.com> 2.1.0-1
- dd: unify error handling in save_binary_file()
- dd_sanitize: don't sanitize symlinks
- rpm: preserve old configuration for <F17 and <REHL7
- configure: change defaults to be compliant with /var/tmp/abrt
- configure: fix dump dir mode help string
- dd: always sanitize mode of saved file
- rhbz: replace obsolete methods by their substitutes
- reporter-rhtsupport: improve error detection and logging
- mailx: remove extra trailing newline in help text
- spec: add requires section for pygobject3
- reporter-rhtsupport: retain " Beta" suffix in version. Closes rhbz#896090
- Fix bugs discoverent by Coverity
- bz: swap 'bug id' arg with 'item name' arg in attach fn call
- dd: move dir accessibility check from abrt to libreport
- don't overwrite "type" rhbz#902828
- move chown functionality from ABRT DBus to libreport
- expose configure cmd options for dump dir mode and ownership
- cli: guard against user ^Z-ing editor and being stuck
- report-cli: don't close tty fd too early
- report-cli: switch terminal's fg process group to editor's one; and back
- dd: open symlinks on request
- minor fix to the pkg-config file
- reporter-rhtsupport: extract error message from Strata-Message: header
- add build time condition for dump dir ownership schema
- reporter-bz: post a comment to dup bug, if we found a dup. version 2.
- report-cli: use Client API
- report-cli: add event name prefix before question
- run_event: default callbacks for logging and errors
- make default dump dir mode configurable at build time
- Stop reading text files one byte at a time
- make dd_delete_item check that dd is locked
- never follow symlinks rhbz#887866
- Revert "reporter-bz: post a comment to dup bug, if we found a dup."
- wizard: make radio-button text wrap
- reporter-bz: post a comment to dup bug, if we found a dup.
- added missing article
- make the dependency on recordmydesktop soft - related to rhbz#891512
- cli: use !ec_skip_review as indicator that the event is a reporter
- Add and use "report-cli" event instead of removed "report-cli -r" option
- cli: remove superfluous problem_data_free() call
- uReport: add more explanatory message when upload fails
- report-cli rework
- don't require recordmydesktop on RHEL rhbz#891512
- fixed the relro flags rhbz#812283
- bugzilla_format_kernel.conf: Attach dmesg element. Closes rhbz#826058
- bugzilla_format_kernel.conf: fix %%summary
- Make get_dirsize_find_largest_dir less talkative.
- Minor fixes: robustify start_command(), fix style, fix English in msgs
- Fix typo, remove c-format from a not c-formatted message
- Resolves: #826058, #902828

* Tue Jan  1 2013 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.20-2
- don't require recordmydesktop on rhel

* Wed Dec 19 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.20-1
- New version 2.0.20
- updated po files
- add abrt-screencast to POTFILES.in
- added screen casting support to the wizard
- fix memory leaks in workflow code
- report_problem_in_dir(): make LIBREPORT_DEL_DIR work
- add Yes/No dialog saving answer
- refactor: move ask_yes_no_save_result from wizard to libreport-gtk
- added anaconda workflows rhbz#885690
- report-python: export dd_delete_item too
- report-python: export DD_OPEN_READONLY too
- strtrimch: optimize it a bit
- show only workflows applicable to actual problem directory
- report-gtk: destroy global text cache only once
- change rules for FILENAME_NOT_REPORTABLE to always include trailing period.
- ask for BZ login/BZ pwd if Login attempt failed
- ask for BZ login/BZ password if not provided by conf
- remove new line from ask/ask_password responses
- add ask_yes_no_yesforever() to Python client API
- make client API independent on translation
- run_event: use client functions for the communication callbacks
- clean the workflow buttons when refreshing the event page
- Fix a bug - inverted check for failed rename() call
- wrap the not_reportable label .trac#908
- don't show events without configuration in preferences .trac#881
- - implemented saving/loading configuratio for workflows - related to trac#822
- reporter-bz: add AVC's description added to BZ comment
- add microseconds to dump dir name (problem ID)
- teach reporter-bugzilla to read BZ ID from reported_to element
- teach reporter-bugzilla to add reporter to CC
- introduce a function deleting dd's element
- introduce a function getting no. of Bytes of dd's element
- make event config name immutable
- fixed segv in the last commit
- made struct workflow private related to trac#822
- don't show the spinner if the problem is not reportable trac#852
- made the config_item_info structure private
- added workflows trac#822
- added x,--expert cmdline option to enable expert mode
- switch comment and event selector page
- use get_ and set_ functions to access event_config_t
- reporter-bz: don't return NULL on %%non_existing_item%% - use "" instead
- refactoring the xml and conf loader code related to trac#822
- reporter-bugzilla: add a --debug option
- reporter-bz: fix a summary line formatting bug
- let logging_callback and post_run_callback members be None
- expose make_run_event_state_forwarding() in Python API
- reporter-bz: change syntax of bugzilla_format_*.conf to require "text::", not "text:"
- reporter-bz: add support for line continuation and simple text in bugzilla_format*.conf

* Mon Dec 03 2012 Jakub Filak <jfilak@redhat.com> 2.0.19-3
- add a description of AVC to bugzilla comment 0

* Mon Nov 26 2012 Jakub Filak <jfilak@redhat.com> 2.0.19-2
- fix bugzilla summary formatting
- Resolves: #879846

* Wed Nov 14 2012 Jakub Filak <jfilak@redhat.com> 2.0.19-1
- introduce a new formating feature for Bugzilla plugin
- use gtk_show_uri() instead of own launcher
- update kerneloops urls
- don't force the minimal rating trac#854
- add support for forwarding of report client requests
- fix i18n in event client communication protocol
- add event name to the error message - can't get secret item
- switch all load_conf_file() calls to use skipKeysWithoutValue=false
- hide the spinner when the event processing is finishes trac#852
- add a method for loading of configuration of a single event
- unlock secret collection only on meaningful demand
- fix secret item look up for gnome-keyring

* Thu Nov 01 2012 Jakub Filak <jfilak@redhat.com> 2.0.18-1
- reporter-bz: tighten up checking that BZ server gave us its version; fix recently broken settings parsing
- reporter-bz: make selinux-policy special case controllable from config file
- reporter-bz: if we create a new bug but cross-version dup exists, add a note
- reporter-bz: make rhbz_search_duphash static, use it more widely

* Wed Oct 24 2012 Jakub Filak <jfilak@redhat.com> 2.0.17-1
- update CWD after stealing of a dump directory
- get product/version from system configuration
- shorten bz summary if its length exceeds 255 chars
- add full kerneloops to the uReport
- reporter-bz: require bz version match when searching for dups. Closes rhbz#849833
- reporter-bz: eliminate bugzilla_struct::b_product - use auto var instead
- Move struct bugzilla_struct to its only user, reporter-bugzilla.c
- reporter-bz: do not needlessly open dd if -f; assorted small fixes
- added relro to reportclient.so and _pyreport.so rhbz#812283
- bz reporter: include ROOTDIR, OS_RELEASE_IN_ROOTDIR, EXECUTABLE elements
- Fix report-newt segfault
- Resolves: #741647, #812283, #849833, #867118, #869032

* Thu Oct 11 2012 Jakub Filak <jfilak@redhat.com> 2.0.16-1
- expand events from a chain and process expanded events separately
- report-gtk: move selection of event to a right place
- fix a crash while report-gtk startup (use the correct variable)
- wizard: allow "non-reportable" reporting for experts; disallow it for non-experts
- fix typo in function name, remove unnecessary forward declaratioins
- wizard: fix a thinko in last commit (thanks Jakub)
- wizard: check for NON_REPORTABLE file, stop if it exists.FILE
- wizard: remove unnecessary if (1) {...} block. No code changes
- don't update the selected event while processing it
- check D-Bus err name without leaking nor crashing
- ureport: always include offset
- add Makefile target release-fix
- Resolves: #864803, #864803, #863595

* Fri Oct 05 2012 Jakub Filak <jfilak@redhat.com> 2.0.15-1
- remove unnecessary flag from words highlighting functions
- report-gtk: rework forbidden words highlighting
- add xmalloc_fopen_fgetline_fclose helper for reading one-line files
- update GUI before highlighting of forbidden words
- clear warnings after switching to a next page
- tweak conditions in show next forbidden word functions
- reporter-ureport: respect chrooted os_release
- Fix typos.
- rhbz#861679: report-gtk: immediately release dump directory lock
- add a few helpers for reading files as one malloced block

* Fri Sep 21 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.14-1
- added error callback to get notification about download failure rhbz#786640
- rhbz#767186: show a link to a page describing the ABRT configuration
- spec: silence rpmdiff rhbz#857425
- don't show the credential in logs rhbz#856960
- rhbz#852165: warn if adding commands without any rule condition
- rhbz#851855: process ureport server errors correctly
- reporter-bugzilla: fix adding users to CC. (Partially?) closes rhbz#841338
- Resolves: #786640, #767186, #857425, #856960, #852165, #851855, #841338

* Wed Aug 29 2012 Jakub Filak <jfilak@redhat.com> 2.0.13-2
- increment the release number due to rebuild for F17 package

* Tue Aug 21 2012 Jakub Filak <jfilak@redhat.com> 2.0.13-1
- rhbz#741255: don't autodetect executable for sealert reports
- reporter-ureport: save backtrace hash to reported_to
- trac#683: show the description file in bugzilla comment 0
- trac#684: report-gtk saves only loaded files
- reporter-ureport: allow sending attachments
- event_config_dialog: make it resizable; tweak Uploader hint
- add python binding for problem_data_send_to_abrt
- reporter-ureport: attach bug ID from reported_to
- reporter-ureport: make configurable only URL to a server
- Resolves: #741255

* Wed Aug 15 2012 Jakub Filak <jfilak@redhat.com> 2.0.12-5
- rhbz#741255: don't autodetect executable for sealert reports
- show message from the server for known uReports
- trac#678: reporter-bugzilla: do not attach empty files
- Resolves: #741255

* Tue Aug 14 2012 Jakub Filak <jfilak@redhat.com> 2.0.12-4
- rhbz#846389: generate koops description according to rhbz std template
- trac#556: skip not provided bz bug description template fields
- report-gtk: don't log THANKYOU message
- added internal_libreport.h into POTFILES.in rhbz#801255
- updated po files
- Resolves: #801255, #846389

* Fri Aug 10 2012 Jakub Filak <jfilak@redhat.com> 2.0.12-3
- wizard: small changes to message texts and one function name
- trac#623: dd_opendir() fails if time file doesn't contain valid time stamp
- trac#660: report-cli asks for premission to send sensitive data
- trac#660: report-gtk asks for permission to send sensitive data
- trac#660: report-gtk: introduce generic ask_yes_no() function for options
- trac#660: add support for sendining-sensitive-data event option
- Do not check for analyzer == "Kerneloops" when appending "TAINTED" msg
- fix leaks in list_possible_events()

* Tue Aug 7 2012 Jakub Filak <jfilak@redhat.com> 2.0.12-2
- report-gtk: fixed bug in automatic running of next event
- don't try to delete dump dir which doesn't exist rhbz#799909
- Resolves: #799909

* Fri Aug 3 2012 Jakub Filak <jfilak@redhat.com> 2.0.12-1
- new upstream release
- trac#642: run the next event if the current one finished without errors
- trac#641: don't allow event chain to continue, if user don't want to steal a directory
- trac#640: report-gtk replaces 'Forward' button with 'Close' button on finished reporting
- Fix bugs uncovered by Coverity. Closes rhbz#809416
- Resolves: #809416

* Tue Jul 31 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.11-1
- new upstream release

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.10-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jun 01 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.10-4
- fixed build on rhel7

* Mon May 14 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.10-3
- fixed compatibility with bugzilla 4.2
- Resolved: #820985, #795548

* Mon Apr 02 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.10-2
- added cgroups filename define

* Mon Mar 26 2012 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.10-1
- updated to latest upstream

* Mon Jan 23 2012 Dan HorĂ¡k <dan@danny.cz> - 2.0.8-6
- rebuilt for json-c-0.9-4.fc17

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.8-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Dec 20 2011 Nikola Pajkovsky <npajkovs@redhat.com> 2.0.8-4
- 768647 - [abrt] libreport-plugin-bugzilla-2.0.8-3.fc16: libreport_xatou:
           Process /usr/bin/reporter-bugzilla was killed by signal 11 (SIGSEGV)

* Fri Dec 09 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.8-3
- fixed few crashes in bodhi plugin

* Thu Dec 08 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.8-2
- fixed crash in bodhi plugin
- re-upload better backtrace if available
- fixed dupe finding for selinux
- don't duplicate comments in bugzilla
- fixed problem with empty release

* Tue Dec 06 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.8-1
- new version
- added bodhi plugin rhbz#655783
- one tab per file on details page rhbz#751833
- search box search thru all data (should help with privacy) rhbz#748457
- fixed close button position rhbz#741230
- rise the attachment limit to 4kb rhbz#712602
- fixed make check (rpath problem)
- save chnages in editable lines rhbz#710100
- ignore backup files rhbz#707959
- added support for proxies rhbz#533652
- Resolves: 753183 748457 737991 723219 712602 711986 692274 636000 631856 655783 741257 748457 741230 712602 753183 748457 741230 712602 710100 707959 533652

* Sat Nov 05 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.7-2
- bumped release

* Fri Nov 04 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.7-1
- new version
- added support for bodhi (preview)
- dropped unused patches
- reporter-bugzilla/rhts: add code to prevent duplicate reporting. Closes rhbz#727494 (dvlasenk@redhat.com)
- wizard: search thru all items + tabbed details rhbz#748457 (jmoskovc@redhat.com)
- wizard: add "I don't know what caused this problem" checkbox. Closes rhbz#712508 (dvlasenk@redhat.com)
- reporter-bugzilla: add optional 'Product' parameter. Closes rhbz#665210 (dvlasenk@redhat.com)
- rhbz#728190 - man pages contain suspicious version string (npajkovs@redhat.com)
- reporter-print: expand leading ~/ if present. Closes rhbz#737991 (dvlasenk@redhat.com)
- reporter-rhtsupport: ask rs/problems endpoint before creating new case. (working on rhbz#677052) (dvlasenk@redhat.com)
- reporter-mailx: use Bugzilla's output format. Closes rhbz#717321. (dvlasenk@redhat.com)
- report-newt: add option to display version (rhbz#741590) (mlichvar@redhat.com)
- Resolves: #727494 #748457 #712508 #665210 rhbz#728190 #737991 #677052 #717321 #741590

* Fri Oct 07 2011 Nikola Pajkovsky <npajkovs@redhat.com> 2.0.6-2
- refuse reporting when not reportable file exist

* Mon Oct 03 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.6-1
- updated to the latest upstrem
- just a bug fixing release

* Mon Sep 26 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5.982-1
- re-fix rhbz#730887
- re-fixed prgname (nice icons in gnome3) rhbz#741231
- Resolves: #741231 #730887

* Thu Sep 22 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-9
- don't allow sending reports with bad rating rhbz#672023
- don't allow reporting without duphash rhbz#739182
- tell users to fill out reports in English rhbz#734037
- fixed config for kerneloops reporter rhbz#731189
- Resolves: #672023 #739182 #734037 #731189

* Fri Sep 09 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-8
- allow bugzilla to send binary files
- Related: #733448

* Tue Aug 30 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-7
- added glob support to event xml files
- changed handling of long text files
- added a simple editor as a fallback when no editor is installed (i.e in anaconda) rhbz#728479
- Resolves: #733448 #728479

* Tue Aug 16 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-6
- improved release parsing rhbz#730887
- Resolves: #730887

* Fri Aug 12 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-5
- more anaconda fixes
- Resolves: #729537

* Tue Aug 02 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-4
- silent keyring warning rhbz#692433
- further improvements to Anaconda compatibility

* Fri Jul 29 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-3
- enable bugzilla reporter for analyzer=libreport rhbz#725970
- improved compatibility with anaconda

* Thu Jul 21 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-2
- obsolete report in rawhide properly rhbz#723320
- added button to add attachments
- ignore backup files
- improved support for interactive plugins
- added description text for logger
- added python bindings for interactive plugins
- Resolves: #723320

* Mon Jul 18 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.5-1
- move reporter plugins from abrt to libreport
- fixed provides/obsolete to properly obsolete report package
- wizard: make more fields editable

* Mon Jul 11 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.4-3
- bump release

* Mon Jun 27 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.4-2
- removed Provides/Obsoletes: report-gtk

* Mon Jun 20 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.4-1
- new upstream release
- cleaned some header files

* Thu Jun 16 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.3-1
- added report-cli
- updated translation

* Wed Jun 01 2011 Jiri Moskovcak <jmoskovc@redhat.com> 2.0.2-1
- initial packaging