public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/pgpdump] epel10: Initial SETUP.
@ 2026-08-09 3:08 Christopher Meng
0 siblings, 0 replies; only message in thread
From: Christopher Meng @ 2026-08-09 3:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/pgpdump
Branch : epel10
Commit : 506d211a70ae9833482fcc4ca0af5c167abe3c0e
Author : Christopher Meng <rpm@cicku.me>
Date : 2013-11-20T09:06:02+08:00
Stats : +87/-0 in 4 file(s)
URL : https://src.fedoraproject.org/rpms/pgpdump/c/506d211a70ae9833482fcc4ca0af5c167abe3c0e?branch=epel10
Log:
Initial SETUP.
---
diff --git a/.gitignore b/.gitignore
index e69de29..cb4e8a6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pgpdump-0.28.tar.gz
diff --git a/1201ba18ff2981beb68f38ea817d0e8226950a85.patch b/1201ba18ff2981beb68f38ea817d0e8226950a85.patch
new file mode 100644
index 0000000..86f2412
--- /dev/null
+++ b/1201ba18ff2981beb68f38ea817d0e8226950a85.patch
@@ -0,0 +1,47 @@
+From 1201ba18ff2981beb68f38ea817d0e8226950a85 Mon Sep 17 00:00:00 2001
+From: Christopher Meng <cickumqt@gmail.com>
+Date: Fri, 15 Nov 2013 11:14:56 +0800
+Subject: [PATCH] Adaption for Fedora packaging.
+
+1. Preserve the timestamp.(Will help people to see the real time of files were generated)
+
+2. Correct the permissions for standard. As far as I can tell you, 755 is the standard for binaries and 644 is the standard for non-executable files.
+
+3. Add DESTDIR support as RPM needs to install files to a pseudo folder first which doesn't need to be granted any root access like /usr, and when we build RPMs we never use root to build.
+
+PS: I'm packaging pgpdump for Fedora.
+---
+ Makefile.in | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/Makefile.in b/Makefile.in
+index a0269a3..b7528ff 100644
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -8,7 +8,7 @@ LDFLAGS = @LDFLAGS@
+ VERSION = `git tag | tail -1 | sed -e 's/v//'`
+
+ RM = rm -f
+-INSTALL = install -c
++INSTALL = install -cp
+
+ INCS = pgpdump.h
+ SRCS = pgpdump.c types.c tagfuncs.c packet.c subfunc.c signature.c keys.c \
+@@ -37,10 +37,10 @@ distclean:
+ $(RM) $(OBJS) $(PROG) $(CNF) $(MKF)
+
+ install: all
+- $(INSTALL) -d $(bindir)
+- $(INSTALL) -m 555 $(PROG) $(bindir)
+- $(INSTALL) -d $(mandir)/man1
+- $(INSTALL) -m 444 $(MAN) $(mandir)/man1
++ $(INSTALL) -d $(DESTDIR)$(bindir)
++ $(INSTALL) -pm755 $(PROG) $(DESTDIR)$(bindir)
++ $(INSTALL) -d $(DESTDIR)$(mandir)/man1
++ $(INSTALL) -pm644 $(MAN) $(DESTDIR)$(mandir)/man1
+
+ archive:
+ git archive master -o ~/pgpdump-$(VERSION).tar --prefix=pgpdump-$(VERSION)/
+--
+1.8.4
+
diff --git a/pgpdump.spec b/pgpdump.spec
new file mode 100644
index 0000000..dcd76dc
--- /dev/null
+++ b/pgpdump.spec
@@ -0,0 +1,38 @@
+Name: pgpdump
+Version: 0.28
+Release: 1%{?dist}
+Summary: PGP packet visualizer
+License: MIT
+URL: http://www.mew.org/~kazu/proj/pgpdump/
+Source0: http://www.mew.org/~kazu/proj/pgpdump/%{name}-%{version}.tar.gz
+# The patch being merged into upstream solved:
+# 1. Wrong permissions like 555 but not 755, 444 but not 644.
+# 2. RPM DESTDIR support
+# 3. Preserve the timestamp when installing files.
+Patch0: https://github.com/cicku/pgpdump/commit/1201ba18ff2981beb68f38ea817d0e8226950a85.patch
+BuildRequires: bzip2-devel
+BuildRequires: zlib-devel
+
+%description
+pgpdump is a PGP packet visualizer which displays the packet format of
+OpenPGP (RFC 4880) and PGP version 2 (RFC 1991).
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+make install DESTDIR=%{buildroot}
+
+%files
+%doc CHANGES COPYRIGHT README.md
+%{_bindir}/pgpdump
+%{_mandir}/man1/pgpdump.1*
+
+%changelog
+* Fri Aug 09 2013 Christopher Meng <rpm@cicku.me> - 0.28-1
+- Initial Package.
diff --git a/sources b/sources
index e69de29..5a15766 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+4a98f608c8f295e5415c1ea0b5c35d83 pgpdump-0.28.tar.gz
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-09 3:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-09 3:08 [rpms/pgpdump] epel10: Initial SETUP Christopher Meng
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox