From 22619c79c7fd08ca69f6d77b3258645f8ba99a17 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 17 May 2022 05:07:08 -0400 Subject: [PATCH] import plotnetcfg-0.4.1-18.el9 --- .gitignore | 1 + .plotnetcfg.metadata | 1 + SOURCES/0001-Pass-LDFLAGS-to-the-linker.patch | 27 +++++ SPECS/plotnetcfg.spec | 100 ++++++++++++++++++ 4 files changed, 129 insertions(+) create mode 100644 .gitignore create mode 100644 .plotnetcfg.metadata create mode 100644 SOURCES/0001-Pass-LDFLAGS-to-the-linker.patch create mode 100644 SPECS/plotnetcfg.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9b299e3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/plotnetcfg-0.4.1-4f5c452.tar.gz diff --git a/.plotnetcfg.metadata b/.plotnetcfg.metadata new file mode 100644 index 0000000..5bd6888 --- /dev/null +++ b/.plotnetcfg.metadata @@ -0,0 +1 @@ +f45274aa6aa116ad02ca1be963530fa9a958c8f2 SOURCES/plotnetcfg-0.4.1-4f5c452.tar.gz diff --git a/SOURCES/0001-Pass-LDFLAGS-to-the-linker.patch b/SOURCES/0001-Pass-LDFLAGS-to-the-linker.patch new file mode 100644 index 0000000..a6bf975 --- /dev/null +++ b/SOURCES/0001-Pass-LDFLAGS-to-the-linker.patch @@ -0,0 +1,27 @@ +From c6868e91438ed81257b939f0a36c1abeda207c26 Mon Sep 17 00:00:00 2001 +Message-Id: +From: Jiri Benc +Date: Thu, 17 Feb 2022 16:28:06 +0100 +Subject: [PATCH] Pass LDFLAGS to the linker + +Signed-off-by: Jiri Benc +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 0423f3198c09..54d7aa552f1b 100644 +--- a/Makefile ++++ b/Makefile +@@ -13,7 +13,7 @@ plotnetcfg: args.o ethtool.o frontend.o handler.o if.o label.o main.o match.o ne + handlers/bridge.o handlers/master.o handlers/openvswitch.o handlers/veth.o \ + handlers/vlan.o \ + frontends/dot.o frontends/json.o +- gcc -o $@ $+ $(libs) ++ gcc $(LDFLAGS) -o $@ $+ $(libs) + + args.o: args.c args.h + ethtool.o: ethtool.c ethtool.h +-- +2.34.1 + diff --git a/SPECS/plotnetcfg.spec b/SPECS/plotnetcfg.spec new file mode 100644 index 0000000..3d5160e --- /dev/null +++ b/SPECS/plotnetcfg.spec @@ -0,0 +1,100 @@ +%global commit 4f5c45238ef77e5d6b88bc403432bd59de7efde9 +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + +Name: plotnetcfg +Version: 0.4.1 +Release: 18%{?dist} +Summary: A tool to plot network configuration + +License: GPLv2+ +URL: https://github.com/jbenc/plotnetcfg +Source0: https://github.com/jbenc/plotnetcfg/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz +Patch0: 0001-Pass-LDFLAGS-to-the-linker.patch + +BuildRequires: make +BuildRequires: gcc, jansson-devel +Requires: jansson + +%description +plotnetcfg is a tool that output a diagram of network configuration on the +host in a form suitable for graphviz. + +%prep +%autosetup -n %{name}-%{commit} + +%build +%set_build_flags +make %{?_smp_mflags} CFLAGS="%{build_cflags}" LDFLAGS="%{build_ldflags}" + +%install +%make_install + +%files +%license COPYING +%doc README +%{_sbindir}/plotnetcfg +%{_mandir}/man5/* +%{_mandir}/man8/* + +%changelog +* Thu Feb 17 2022 Jiri Benc - 0.4.1-18 +- Fixed build flags [2044887] + +* Mon Aug 09 2021 Mohan Boddu - 0.4.1-17 +- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags + Related: rhbz#1991688 + +* Fri Apr 16 2021 Mohan Boddu - 0.4.1-16 +- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 + +* Wed Jan 27 2021 Fedora Release Engineering - 0.4.1-15 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Sat Aug 01 2020 Fedora Release Engineering - 0.4.1-14 +- Second attempt - Rebuilt for + https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Tue Jul 28 2020 Fedora Release Engineering - 0.4.1-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jan 30 2020 Fedora Release Engineering - 0.4.1-12 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Jul 26 2019 Fedora Release Engineering - 0.4.1-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.4.1-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Tue Jul 17 2018 Jiri Benc - 0.4.1-9 +- added gcc to BuildRequires + +* Fri Jul 13 2018 Fedora Release Engineering - 0.4.1-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Fri Feb 09 2018 Fedora Release Engineering - 0.4.1-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.4.1-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.4.1-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.4.1-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Feb 04 2016 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jul 27 2015 Jiri Benc - 0.4.1-2 +- clarified the current license + +* Mon Jul 27 2015 Jiri Benc - 0.4.1-1 +- updated to v0.4.1 + +* Thu Jun 18 2015 Fedora Release Engineering - 0.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Apr 15 2015 Jiri Benc - 0.3-1 +- initial packaging