From 116a66ce96ac6fa7535727d76ff471a6e0a19c8f Mon Sep 17 00:00:00 2001 From: Sergey Cherevko Date: Thu, 11 Jan 2024 10:41:58 +0300 Subject: [PATCH] import pgpdump-0.35-1.el8 --- .gitignore | 1 + .pgpdump.metadata | 1 + ...ba18ff2981beb68f38ea817d0e8226950a85.patch | 47 ++++++++ SPECS/pgpdump.spec | 107 ++++++++++++++++++ 4 files changed, 156 insertions(+) create mode 100644 .gitignore create mode 100644 .pgpdump.metadata create mode 100644 SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch create mode 100644 SPECS/pgpdump.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ccb846e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pgpdump-0.35.tar.gz diff --git a/.pgpdump.metadata b/.pgpdump.metadata new file mode 100644 index 0000000..3f7178e --- /dev/null +++ b/.pgpdump.metadata @@ -0,0 +1 @@ +1db9fa1b60309985c4bf3f7eea279dbf609c6418 SOURCES/pgpdump-0.35.tar.gz diff --git a/SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch b/SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch new file mode 100644 index 0000000..86f2412 --- /dev/null +++ b/SOURCES/1201ba18ff2981beb68f38ea817d0e8226950a85.patch @@ -0,0 +1,47 @@ +From 1201ba18ff2981beb68f38ea817d0e8226950a85 Mon Sep 17 00:00:00 2001 +From: Christopher Meng +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/SPECS/pgpdump.spec b/SPECS/pgpdump.spec new file mode 100644 index 0000000..11ca5aa --- /dev/null +++ b/SPECS/pgpdump.spec @@ -0,0 +1,107 @@ +Name: pgpdump +Version: 0.35 +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 +BuildRequires: make +BuildRequires: bzip2-devel +BuildRequires: zlib-devel +BuildRequires: gcc + +%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 + +%build +%configure +%make_build + +%install +%make_install + +%files +%doc CHANGES README.md +%license COPYRIGHT +%{_bindir}/pgpdump +%{_mandir}/man1/pgpdump.1* + +%changelog +* Thu Jan 11 2024 Sergey Cherevko - 0.35-1 +- Rebuilt for MSVSphere 8.9 + +* Fri May 27 2022 Nick Bebout - 0.35-1 +- Update to 0.35 + +* Fri Jan 21 2022 Fedora Release Engineering - 0.33-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Fri Jul 23 2021 Fedora Release Engineering - 0.33-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jan 27 2021 Fedora Release Engineering - 0.33-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.33-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.33-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.33-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.33-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Jul 23 2018 Nick Bebout - 0.33-3 +- Rebuild to fix FTBFS + +* Fri Jul 13 2018 Fedora Release Engineering - 0.33-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Mon Jul 9 2018 Nick Bebout - 0.33-1 +- Update to 0.33 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.32-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Sep 10 2017 Nick Bebout - 0.32-1 +- Update to 0.32 + +* Thu Aug 03 2017 Fedora Release Engineering - 0.31-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.31-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.31-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon May 09 2016 Nick Bebout - 0.31-1 +- Update to 0.31 - fix buffer overflow + +* Wed Apr 27 2016 Nick Bebout - 0.30-1 +- Update to 0.30 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.29-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Jun 18 2015 Fedora Release Engineering - 0.29-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sun Aug 17 2014 Fedora Release Engineering - 0.29-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Fri Aug 01 2014 Christopher Meng - 0.29-1 +- Update to 0.29 + +* Sat Jun 07 2014 Fedora Release Engineering - 0.28-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Fri Aug 09 2013 Christopher Meng - 0.28-1 +- Initial Package.