packages: abrt/abrt-rpm.patch, abrt/abrt.spec, abrt/rpmkey-pld.patch - up t...

glen glen at pld-linux.org
Mon Mar 15 00:02:50 CET 2010


Author: glen                         Date: Sun Mar 14 23:02:50 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 1.0.7

---- Files affected:
packages/abrt:
   abrt-rpm.patch (1.1 -> 1.2) , abrt.spec (1.15 -> 1.16) , rpmkey-pld.patch (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/abrt/abrt-rpm.patch
diff -u packages/abrt/abrt-rpm.patch:1.1 packages/abrt/abrt-rpm.patch:1.2
--- packages/abrt/abrt-rpm.patch:1.1	Mon Dec  7 12:43:25 2009
+++ packages/abrt/abrt-rpm.patch	Mon Mar 15 00:02:41 2010
@@ -8,9 +8,9 @@
      -DBIN_DIR=\"$(bindir)\" \
      -DVAR_RUN=\"$(VAR_RUN)\" \
      -DCONF_DIR=\"$(CONF_DIR)\" \
---- abrt-1.0.0/src/Daemon/RPM.cpp~	2009-12-07 13:30:42.000000000 +0200
-+++ abrt-1.0.0/src/Daemon/RPM.cpp	2009-12-07 13:30:44.935229032 +0200
-@@ -15,9 +15,11 @@
+--- abrt-1.0.7/src/Daemon/RPM.cpp~	2010-02-08 21:22:13.000000000 +0200
++++ abrt-1.0.7/src/Daemon/RPM.cpp	2010-03-15 00:26:28.929435334 +0200
+@@ -33,9 +33,11 @@
  
  void CRPM::LoadOpenGPGPublicKey(const char* pFileName)
  {
@@ -22,7 +22,7 @@
      if (pgpReadPkts(pFileName, &pkt, &pklen) != PGPARMOR_PUBKEY)
      {
          free(pkt);
-@@ -33,11 +35,13 @@
+@@ -51,11 +53,13 @@
          }
      }
      free(pkt);
@@ -36,7 +36,7 @@
      rpmts ts = rpmtsCreate();
      rpmdbMatchIterator iter = rpmtsInitIterator(ts, RPMTAG_NAME, pPackage, 0);
      Header header = rpmdbNextIterator(iter);
-@@ -79,12 +83,14 @@
+@@ -97,12 +101,14 @@
      }
      rpmdbFreeIterator(iter);
      rpmtsFree(ts);
@@ -51,22 +51,22 @@
      rpmts ts = rpmtsCreate();
      rpmdbMatchIterator iter = rpmtsInitIterator(ts, RPMTAG_NAME, pPackage, 0);
      Header header = rpmdbNextIterator(iter);
-@@ -113,12 +119,14 @@
-     }
+@@ -128,11 +134,13 @@
      rpmdbFreeIterator(iter);
      rpmtsFree(ts);
-+#endif
      return ret;
++#endif
  }
  
  std::string GetDescription(const char* pPackage)
  {
-     std::string pDescription = "";
+-    std::string pDescription;
++    std::string pDescription = "";
 +#if 0
      rpmts ts = rpmtsCreate();
      rpmdbMatchIterator iter = rpmtsInitIterator(ts, RPMTAG_NAME, pPackage, 0);
      Header header = rpmdbNextIterator(iter);
-@@ -134,12 +142,14 @@
+@@ -148,12 +156,14 @@
      }
      rpmdbFreeIterator(iter);
      rpmtsFree(ts);
@@ -76,12 +76,13 @@
  
  std::string GetComponent(const char* pFileName)
  {
-     std::string ret = "";
+-    std::string ret;
++    std::string ret = "";
 +#if 0
      rpmts ts = rpmtsCreate();
      rpmdbMatchIterator iter = rpmtsInitIterator(ts, RPMTAG_BASENAMES, pFileName, 0);
      Header header = rpmdbNextIterator(iter);
-@@ -158,12 +168,14 @@
+@@ -172,12 +182,14 @@
  
      rpmdbFreeIterator(iter);
      rpmtsFree(ts);
@@ -89,14 +90,14 @@
      return ret;
  }
  
- std::string GetPackage(const char* pFileName)
+ char* GetPackage(const char* pFileName)
  {
-     std::string ret = "";
+     char* ret = NULL;
 +#if 0
      rpmts ts = rpmtsCreate();
      rpmdbMatchIterator iter = rpmtsInitIterator(ts, RPMTAG_BASENAMES, pFileName, 0);
      Header header = rpmdbNextIterator(iter);
-@@ -179,5 +191,6 @@
+@@ -188,5 +200,6 @@
  
      rpmdbFreeIterator(iter);
      rpmtsFree(ts);

================================================================
Index: packages/abrt/abrt.spec
diff -u packages/abrt/abrt.spec:1.15 packages/abrt/abrt.spec:1.16
--- packages/abrt/abrt.spec:1.15	Sun Mar 14 23:23:49 2010
+++ packages/abrt/abrt.spec	Mon Mar 15 00:02:41 2010
@@ -3,14 +3,13 @@
 # - fixes to get working with jbj rpm
 Summary:	Automatic bug detection and reporting tool
 Name:		abrt
-Version:	1.0.0
-Release:	0.6
+Version:	1.0.7
+Release:	0.7
 License:	GPL v2+
 Group:		Applications/System
 URL:		https://fedorahosted.org/abrt/
-#Source0:	http://jmoskovc.fedorapeople.org/%{name}-%{version}.tar.gz
-Source0:	%{name}-%{version}.tar.gz
-# Source0-md5:	62a8a6a1d7712472133b97b38469683e
+Source0:	http://jmoskovc.fedorapeople.org/%{name}-%{version}.tar.gz
+# Source0-md5:	edb93af31b1bc7b5653ccbf7bb6b4dce
 Source1:	%{name}.init
 Patch0:		%{name}-rpm.patch
 Patch1:		%{name}-pld.patch
@@ -40,10 +39,15 @@
 BuildRequires:	xmlrpc-c-devel >= 1.20.3-1
 BuildRequires:	zlib-devel
 Requires(postun):	/usr/sbin/groupdel
+Requires(postun):	/usr/sbin/userdel
+Requires(pre):	/bin/id
 Requires(pre):	/usr/bin/getgid
 Requires(pre):	/usr/sbin/groupadd
+Requires(pre):	/usr/sbin/useradd
 Requires:	%{name}-libs = %{version}-%{release}
 Provides:	group(abrt)
+Provides:	user(abrt)
+Obsoletes:	abrt-plugin-sqlite3
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -78,10 +82,7 @@
 # only if gtk2 version < 2.17
 #Requires: python-sexy
 Provides:	abrt-applet = %{version}-%{release}
-Provides:	bug-buddy
 Obsoletes:	abrt-applet < 0.0.5
-Obsoletes:	bug-buddy
-Obsoletes:	bug-buddy
 Conflicts:	abrt-applet < 0.0.5
 
 %description gui
@@ -92,7 +93,6 @@
 Group:		Libraries
 Requires:	%{name} = %{version}-%{release}
 Requires:	elfutils
-Requires:	gdb >= 7.0-3
 Requires:	yum-utils
 
 %description addon-ccpp
@@ -114,33 +114,15 @@
 Summary:	abrt's kerneloops addon
 Group:		Libraries
 Requires:	%{name} = %{version}-%{release}
-Requires:	%{name}-plugin-kerneloopsreporter = %{version}-%{release}
+Requires:	curl
 Obsoletes:	abrt-plugin-kerneloops
+Obsoletes:	abrt-plugin-kerneloopsreporter
 Obsoletes:	kerneloops
 
 %description addon-kerneloops
-This package contains plugins for kernel crashes information
-collecting.
-
-%package plugin-kerneloopsreporter
-Summary:	abrt's kerneloops reporter plugin
-Group:		Libraries
-Requires:	%{name} = %{version}-%{release}
-Requires:	curl
-
-%description plugin-kerneloopsreporter
-This package contains reporter plugin, that sends, collected by abrt's
-kerneloops addon, information about kernel crashes to specified
-server, e.g. kerneloops.org.
-
-%package plugin-sqlite3
-Summary:	abrt's SQLite3 database plugin
-Group:		Libraries
-Requires:	%{name} = %{version}-%{release}
-
-%description plugin-sqlite3
-This package contains SQLite3 database plugin. It is used for storing
-the data required for creating a bug report.
+This package contains plugin for collecting kernel crash information
+and reporter plugin which sends this information to specified server,
+usually to kerneloops.org.
 
 %package plugin-logger
 Summary:	abrt's logger reporter plugin
@@ -148,7 +130,7 @@
 Requires:	%{name} = %{version}-%{release}
 
 %description plugin-logger
-The simple reporter plugin, which writes a report to a specified file.
+The simple reporter plugin which writes a report to a specified file.
 
 %package plugin-mailx
 Summary:	abrt's mailx reporter plugin
@@ -157,7 +139,7 @@
 Requires:	mailx
 
 %description plugin-mailx
-The simple reporter plugin, which sends a report via mailx to a
+The simple reporter plugin which sends a report via mailx to a
 specified email.
 
 %package plugin-runapp
@@ -217,12 +199,20 @@
 
 %description addon-python
 This package contains python hook and python analyzer plugin for
-hadnling uncaught exception in python programs.
+handling uncaught exception in python programs.
 
 %package cli
 Summary:	abrt's command line interface
 Group:		X11/Applications
 Requires:	%{name} = %{version}-%{release}
+# analyzers
+Requires:	%{name}-addon-ccpp
+Requires:	%{name}-addon-kerneloops
+Requires:	%{name}-addon-python
+# reporters
+Requires:	%{name}-plugin-logger
+Requires:	%{name}-plugin-sosreport
+Requires:	%{name}-plugin-ticketuploader
 
 %description cli
 This package contains simple command line client for controling abrt
@@ -231,17 +221,26 @@
 %package desktop
 Summary:	Virtual package to install all necessary packages for usage from desktop environment
 Group:		X11/Applications
+# This package gets installed when anything requests bug-buddy -
+# happens when users upgrade Fn to Fn+1;
+# or if user just wants "typical desktop installation".
+# Installing abrt-desktop should result in the abrt which works without
+# any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed)
 Requires:	%{name} = %{version}-%{release}
 Requires:	%{name}-addon-ccpp = %{version}-%{release}
 Requires:	%{name}-addon-kerneloops = %{version}-%{release}
 Requires:	%{name}-addon-python = %{version}-%{release}
-Requires:	%{name}-plugin-bugzilla = %{version}-%{release}
-#Requires:	%{name}-plugin-firefox = %{version}-%{release}
-Requires:	%{name}-plugin-logger = %{version}-%{release}
-Requires:	%{name}-plugin-sqlite3 = %{version}-%{release}
+# Default config of addon-ccpp requires gdb
+Requires:	%{name}-gui
+Requires:	%{name}-plugin-logger
+Requires:	%{name}-plugin-sosreport
+Requires:	%{name}-plugin-ticketuploader
+Requires:	gdb >= 7.0-3
+Provides:	bug-buddy
+Obsoletes:	bug-buddy
 
 %description desktop
-Virtual package to make easy default instalation on desktop
+Virtual package to make easy default installation on desktop
 environments.
 
 %prep
@@ -284,7 +283,8 @@
 rm -rf $RPM_BUILD_ROOT
 
 %pre
-%groupadd -g 182 abrt
+%groupadd -g 248 abrt
+%useradd -u 248 -g abrt -d /etc/abrt -s /sbin/nologin abrt
 
 %post
 /sbin/chkconfig --add abrtd
@@ -298,6 +298,7 @@
 
 %postun
 if [ "$1" = "0" ]; then
+	%userremove abrt
 	%groupremove abrt
 fi
 
@@ -309,30 +310,39 @@
 %doc README
 %attr(755,root,root) %{_sbindir}/abrtd
 %attr(755,root,root) %{_bindir}/%{name}-debuginfo-install
-%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
+%attr(755,root,root) %{_bindir}/%{name}-backtrace
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/%{name}.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/gpg_keys
 /etc/dbus-1/system.d/dbus-%{name}.conf
 %attr(754,root,root) /etc/rc.d/init.d/abrtd
 %dir %attr(775,root,abrt) /var/cache/%{name}
-%dir /var/cache/%{name}-di
 %dir /var/run/%{name}
 %dir %{_sysconfdir}/%{name}
 %dir %{_sysconfdir}/%{name}/plugins
 %dir %{_libdir}/%{name}
+%{_mandir}/man1/%{name}-backtrace.1*
 %{_mandir}/man8/abrtd.8*
 %{_mandir}/man5/%{name}.conf.5*
 %{_mandir}/man7/%{name}-plugins.7*
-%{_mandir}/man5/pyhook.conf.5*
 %{_datadir}/polkit-1/actions/org.fedoraproject.abrt.policy
 %{_datadir}/dbus-1/system-services/com.redhat.abrt.service
 
+# plugin-sqlite3
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/SQLite3.conf
+%attr(755,root,root) %{_libdir}/%{name}/libSQLite3.so
+%{_mandir}/man7/%{name}-SQLite3.7*
+
 %files libs
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libABRTUtils.so.*.*.*
 %attr(755,root,root) %ghost %{_libdir}/libABRTUtils.so.0
+%attr(755,root,root) %{_libdir}/libABRTdUtils.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libABRTdUtils.so.0
 
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libABRTUtils.so
+%attr(755,root,root) %{_libdir}/libABRTdUtils.so
 
 %files gui
 %defattr(644,root,root,755)
@@ -346,45 +356,32 @@
 
 %files addon-ccpp
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/CCpp.conf
 %attr(755,root,root) %{_libdir}/%{name}/libCCpp.so
-%attr(755,root,root) %{_libexecdir}/hookCCpp
+%attr(755,root,root) %{_libexecdir}/abrt-hook-ccpp
+%dir %{_localstatedir}/cache/%{name}-di
 
 #%files plugin-firefox
 #%{_libdir}/%{name}/libFirefox.so*
 
 %files addon-kerneloops
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsScanner.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Kerneloops.conf
 %attr(755,root,root) %{_bindir}/dumpoops
 %attr(755,root,root) %{_libdir}/%{name}/libKerneloops.so
 %attr(755,root,root) %{_libdir}/%{name}/libKerneloopsScanner.so
 %{_mandir}/man7/%{name}-KerneloopsScanner.7*
 
-%files plugin-kerneloopsreporter
-%defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/KerneloopsReporter.conf
-%attr(755,root,root) %{_libdir}/%{name}/libKerneloopsReporter.so
-%{_libdir}/%{name}/KerneloopsReporter.GTKBuilder
-%{_mandir}/man7/%{name}-KerneloopsReporter.7*
-
-%files plugin-sqlite3
-%defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/SQLite3.conf
-%attr(755,root,root) %{_libdir}/%{name}/libSQLite3.so
-%{_mandir}/man7/%{name}-SQLite3.7*
-
 %files plugin-logger
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/Logger.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Logger.conf
 %attr(755,root,root) %{_libdir}/%{name}/libLogger.so
 %{_libdir}/%{name}/Logger.GTKBuilder
 %{_mandir}/man7/%{name}-Logger.7*
 
 %files plugin-mailx
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/Mailx.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Mailx.conf
 %attr(755,root,root) %{_libdir}/%{name}/libMailx.so
 %{_libdir}/%{name}/Mailx.GTKBuilder
 %{_mandir}/man7/%{name}-Mailx.7*
@@ -396,40 +393,40 @@
 
 %files plugin-sosreport
 %defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/SOSreport.conf
 %attr(755,root,root) %{_libdir}/%{name}/libSOSreport.so
 
 %files plugin-bugzilla
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Bugzilla.conf
 %attr(755,root,root) %{_libdir}/%{name}/libBugzilla.so
 %{_libdir}/%{name}/Bugzilla.GTKBuilder
 %{_mandir}/man7/%{name}-Bugzilla.7*
 
 %files plugin-catcut
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/Catcut.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Catcut.conf
 %attr(755,root,root) %{_libdir}/%{name}/libCatcut.so
 %{_libdir}/%{name}/Catcut.GTKBuilder
 #%{_mandir}/man7/%{name}-Catcut.7*
 
 %files plugin-ticketuploader
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/TicketUploader.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/TicketUploader.conf
 %attr(755,root,root) %{_libdir}/%{name}/libTicketUploader.so
 %{_libdir}/%{name}/TicketUploader.GTKBuilder
 %{_mandir}/man7/%{name}-TicketUploader.7*
 
 %files plugin-filetransfer
 %defattr(644,root,root,755)
-%config(noreplace) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/FileTransfer.conf
 %attr(755,root,root) %{_libdir}/%{name}/libFileTransfer.so
 %{_mandir}/man7/%{name}-FileTransfer.7*
 
 %files addon-python
 %defattr(644,root,root,755)
-%attr(2755, root, abrt) %{_bindir}/%{name}-pyhook-helper
-%config(noreplace) %{_sysconfdir}/%{name}/pyhook.conf
-#%{python_sitearch}/ABRTUtils.so
+%attr(4755,abrt,abrt) %{_libexecdir}/abrt-hook-python
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/plugins/Python.conf
 %attr(755,root,root) %{_libdir}/%{name}/libPython.so
 %{py_sitescriptdir}/*.py[co]
 
@@ -448,6 +445,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.16  2010/03/14 23:02:41  glen
+- up to 1.0.7
+
 Revision 1.15  2010/03/14 22:23:49  glen
 - path to pld rpm key
 

================================================================
Index: packages/abrt/rpmkey-pld.patch
diff -u packages/abrt/rpmkey-pld.patch:1.1 packages/abrt/rpmkey-pld.patch:1.2
--- packages/abrt/rpmkey-pld.patch:1.1	Sun Mar 14 23:23:49 2010
+++ packages/abrt/rpmkey-pld.patch	Mon Mar 15 00:02:41 2010
@@ -1,11 +1,12 @@
---- abrt-1.0.0/src/Daemon/abrt.conf~	2009-11-22 21:50:18.000000000 +0200
-+++ abrt-1.0.0/src/Daemon/abrt.conf	2010-03-15 00:19:44.286779419 +0200
-@@ -6,7 +6,7 @@
- # only crashes in signed packages will be analyzed.
- OpenGPGCheck = no
- # GPG keys
--OpenGPGPublicKeys = /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora
-+OpenGPGPublicKeys = /etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
- # Blacklisted packages
- BlackList = nspluginwrapper
- # Enabled plugins. There has to be exactly one database plugin
+--- abrt-1.0.7/src/Daemon/gpg_keys~	2010-02-12 18:31:59.000000000 +0200
++++ abrt-1.0.7/src/Daemon/gpg_keys	2010-03-15 00:30:17.102537684 +0200
+@@ -1,7 +1,2 @@
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta-2
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-auxiliary
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-beta-2
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-beta
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-former
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-release
+-/etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-legacy-rhx
++/etc/pki/rpm-gpg/PLD-2.0-Ac-GPG-key.asc
++/etc/pki/rpm-gpg/PLD-3.0-Th-GPG-key.asc
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/abrt/abrt-rpm.patch?r1=1.1&r2=1.2&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/abrt/abrt.spec?r1=1.15&r2=1.16&f=u
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/abrt/rpmkey-pld.patch?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list