public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/rpm] pmatilai-v6: - split cron-job into a sub-package to avoid silly deps on core rpm
@ 2026-11-23 9:25 Panu Matilainen
0 siblings, 0 replies; only message in thread
From: Panu Matilainen @ 2026-11-23 9:25 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/rpm
Branch : pmatilai-v6
Commit : d9ecaeb35a45fbc6d94605365132d8927cf8f089
Author : Panu Matilainen <pmatilai@fedoraproject.org>
Date : 2009-05-14T07:27:25+00:00
Stats : +59/-8 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/rpm/c/d9ecaeb35a45fbc6d94605365132d8927cf8f089?branch=pmatilai-v6
Log:
- split cron-job into a sub-package to avoid silly deps on core rpm
(#500722)
- rpm requires coreutils but not in %%post
- build with libcap and libacl
- fix pgp pubkey signature tag parsing
---
diff --git a/rpm-4.7.0-prtsig.patch b/rpm-4.7.0-prtsig.patch
new file mode 100644
index 0000000..7096240
--- /dev/null
+++ b/rpm-4.7.0-prtsig.patch
@@ -0,0 +1,29 @@
+diff --git a/rpmio/rpmpgp.c b/rpmio/rpmpgp.c
+index 3819449..eb5d627 100644
+--- a/rpmio/rpmpgp.c
++++ b/rpmio/rpmpgp.c
+@@ -638,13 +638,13 @@ static int pgpPrtSigParams(pgpTag tag, uint8_t pubkey_algo, uint8_t sigtype,
+ return 0;
+ }
+
+-static int pgpPrtSig(pgpTag tag, const uint8_t *h, size_t hlen, pgpDig _dig)
++static int pgpPrtSig(pgpTag tag, const uint8_t *h, size_t hlen,
++ pgpDig _dig, pgpDigParams _digp)
+ {
+ uint8_t version = h[0];
+ uint8_t * p;
+ size_t plen;
+ int rc;
+- pgpDigParams _digp = _dig ? &_dig->signature : NULL;
+
+ switch (version) {
+ case 3:
+@@ -1170,7 +1170,7 @@ static int pgpPrtPkt(const uint8_t *pkt, size_t pleft,
+ h = pkt + 1 + plen;
+ switch (tag) {
+ case PGPTAG_SIGNATURE:
+- rc = pgpPrtSig(tag, h, hlen, _dig);
++ rc = pgpPrtSig(tag, h, hlen, _dig, _digp);
+ break;
+ case PGPTAG_PUBLIC_KEY:
+ /* Get the public key fingerprint. */
diff --git a/rpm.spec b/rpm.spec
index 7f17f21..afd5f9d 100644
--- a/rpm.spec
+++ b/rpm.spec
@@ -1,6 +1,6 @@
# rawhide doesn't have new enough lzma yet
%bcond_with lzma
-# sqlite backend is broken atm, disabled for now
+# sqlite backend is pretty useless
%bcond_with sqlite
# just for giggles, option to build with internal Berkeley DB
%bcond_with int_bdb
@@ -21,7 +21,7 @@
Summary: The RPM package management system
Name: rpm
Version: %{rpmver}
-Release: 3%{?dist}
+Release: 4%{?dist}
Group: System Environment/Base
Url: http://www.rpm.org/
Source0: http://rpm.org/releases/testing/%{name}-%{srcver}.tar.bz2
@@ -40,6 +40,7 @@ Patch3: rpm-4.6.0-fedora-specspo.patch
# Patches already in upstream
Patch200: rpm-4.7.0-findlang-kde3.patch
+Patch201: rpm-4.7.0-prtsig.patch
# These are not yet upstream
Patch300: rpm-4.7.0-extra-provides.patch
@@ -49,14 +50,12 @@ Patch301: rpm-4.6.0-niagara.patch
# SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD
License: GPLv2+
-Requires(post): coreutils
+Requires: coreutils
%if %{without int_bdb}
# db recovery tools, rpmdb_util symlinks
Requires: db4-utils = %{bdbver}
%endif
Requires: popt >= 1.10.2.1
-Requires: crontabs
-Requires: logrotate
Requires: curl
%if %{without int_bdb}
@@ -84,6 +83,8 @@ BuildRequires: ncurses-devel
BuildRequires: bzip2-devel >= 0.9.0c-2
BuildRequires: python-devel >= 2.2
BuildRequires: lua-devel >= 5.1
+BuildRequires: libcap-devel
+BuildRequires: libacl-devel
%if %{with lzma}
BuildRequires: lzma-devel >= 4.42
%endif
@@ -174,6 +175,16 @@ BuildArch: noarch
This package contains API documentation for developing applications
that will manipulate RPM packages and databases.
+%package cron
+Summary: Create daily logs of installed packages.
+Group: System Environment/Base
+BuildArch: noarch
+Requires: crontabs logrotate rpm = %{version}-%{release}
+
+%description cron
+This package contains a cron job which creates daily logs of installed
+packages on a system.
+
%prep
%setup -q -n %{name}-%{srcver} %{?with_int_bdb:-a 1}
%patch0 -p1 -b .devel-autodep
@@ -182,6 +193,7 @@ that will manipulate RPM packages and databases.
%patch3 -p1 -b .fedora-specspo
%patch200 -p1 -b .findlang-kde3
+%patch201 -p1 -b .prtsig
%patch300 -p1 -b .extra-prov
%patch301 -p1 -b .niagara
@@ -211,6 +223,8 @@ export CPPFLAGS CFLAGS LDFLAGS
%{?with_sqlite: --enable-sqlite3} \
--with-lua \
--with-selinux \
+ --with-cap \
+ --with-acl \
--enable-python
make %{?_smp_mflags}
@@ -288,8 +302,6 @@ exit 0
%defattr(-,root,root,-)
%doc GROUPS COPYING CREDITS ChangeLog.bz2 doc/manual/[a-z]*
-%{_sysconfdir}/cron.daily/rpm
-%config(noreplace,missingok) %{_sysconfdir}/logrotate.d/rpm
%dir %{_sysconfdir}/rpm
%attr(0755, root, root) %dir /var/lib/rpm
@@ -384,14 +396,24 @@ exit 0
%{_libdir}/librp*[a-z].so
%{_mandir}/man8/rpmgraph.8*
%{_bindir}/rpmgraph
-
%{_libdir}/pkgconfig/rpm.pc
+%files cron
+%defattr(-,root,root)
+%{_sysconfdir}/cron.daily/rpm
+%config(noreplace) %{_sysconfdir}/logrotate.d/rpm
+
%files apidocs
%defattr(-,root,root)
%doc doc/librpm/html/*
%changelog
+* Thu May 14 2009 Panu Matilainen <pmatilai@redhat.com> - 4.7.0-4
+- split cron-job into a sub-package to avoid silly deps on core rpm (#500722)
+- rpm requires coreutils but not in %%post
+- build with libcap and libacl
+- fix pgp pubkey signature tag parsing
+
* Tue Apr 21 2009 Panu Matilainen <pmatilai@redhat.com> - 4.7.0-3
- couple of merge-review fixes (#226377)
- eliminate bogus leftover rpm:rpm rpmdb ownership
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-23 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-23 9:25 [rpms/rpm] pmatilai-v6: - split cron-job into a sub-package to avoid silly deps on core rpm Panu Matilainen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox