[aggregate] Make the -ios subpackage noarch

Yanko Kaneti yaneti at fedoraproject.org
Mon May 20 15:35:54 UTC 2013


commit b171322f4772e4ba098367cedbb1974c1c9a1864
Author: Yanko Kaneti <yaneti at declera.com>
Date:   Mon May 20 18:35:29 2013 +0300

    Make the -ios subpackage noarch

 .gitignore             |    1 +
 aggregate-fedora.patch |   29 +++++++++++++++++++++++
 aggregate.spec         |   59 ++++++++++++++++++++++++++++++++++++++++++++++++
 sources                |    1 +
 4 files changed, 90 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..25e1c1e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/aggregate-1.6.tar.gz
diff --git a/aggregate-fedora.patch b/aggregate-fedora.patch
new file mode 100644
index 0000000..2c07ef9
--- /dev/null
+++ b/aggregate-fedora.patch
@@ -0,0 +1,29 @@
+diff -ur aggregate-1.6/Makefile.in aggregate-1.6.fedora/Makefile.in
+--- aggregate-1.6/Makefile.in	2002-03-06 18:59:37.000000000 +0200
++++ aggregate-1.6.fedora/Makefile.in	2011-05-20 17:40:32.719987024 +0300
+@@ -25,8 +25,8 @@
+ INSTALL = @INSTALL@
+ DEFS = @DEFS@
+ LIBS = @LIBS@
+-CFLAGS = -O
+-LDFLAGS = -s
++CFLAGS = @CFLAGS@
++LDFLAGS = @LDFLAGS@
+ prefix = @prefix@
+ 
+ SHELL = /bin/sh
+@@ -41,10 +41,10 @@
+ 	rm -f *.o
+ 
+ install: $(PROGS)
+-	$(INSTALL) -m 0755 aggregate $(prefix)/bin/
+-	$(INSTALL) -m 0644 aggregate.1 $(prefix)/man/man1/
+-	$(INSTALL) -m 0755 aggregate-ios $(prefix)/bin/
+-	$(INSTALL) -m 0644 aggregate-ios.1 $(prefix)/man/man1/
++	$(INSTALL) -D -m 0755 aggregate $(DESTDIR)$(prefix)/bin/aggregate
++	$(INSTALL) -p -D -m 0644 aggregate.1 $(DESTDIR)$(prefix)/share/man/man1/aggregate.1
++	$(INSTALL) -D -m 0755 aggregate-ios $(DESTDIR)$(prefix)/bin/aggregate-ios
++	$(INSTALL) -p -D -m 0644 aggregate-ios.1 $(DESTDIR)$(prefix)/share/man/man1/aggregate-ios.1
+ 
+ .c.o:
+ 	$(CC) -c $(CPPFLAGS) $(DEFS) $(CFLAGS) $<
diff --git a/aggregate.spec b/aggregate.spec
new file mode 100644
index 0000000..e85aed6
--- /dev/null
+++ b/aggregate.spec
@@ -0,0 +1,59 @@
+Name:           aggregate
+Version:        1.6
+Release:        3%{?dist}
+Summary:        IPv4 CIDR prefix aggregator
+
+License:        ISC
+URL:            http://ftp.isc.org/isc/aggregate/
+Source0:        http://ftp.isc.org/isc/aggregate/aggregate-%{version}.tar.gz
+Patch0:         aggregate-fedora.patch
+
+%description
+aggregate takes a list of prefixes in conventional format on stdin, 
+and performs two optimizations to attempt to reduce the length of 
+the prefix list.
+
+
+%package ios
+Summary: Cisco/IOS IPv4 prefix lists aggregator
+Requires: aggregate
+BuildArch: noarch
+
+%description ios
+aggregate-ios takes Cisco IOS configuration on stdin, and optimizes 
+any prefix filters found using aggregate.
+
+%prep
+%setup -q
+chmod -x LICENSE
+%patch0 -p1 -b .fedora
+
+
+%build
+%configure
+make %{?_smp_mflags}
+
+
+%install
+make install DESTDIR=$RPM_BUILD_ROOT
+
+
+%files
+%{_bindir}/aggregate
+%{_mandir}/man1/aggregate.1.*
+%doc HISTORY LICENSE
+
+%files ios
+%{_bindir}/aggregate-ios
+%{_mandir}/man1/aggregate-ios.1.*
+
+
+%changelog
+* Mon May 20 2013 Yanko Kaneti <yaneti at declera.com> 1.6-3
+- Make the -ios subpackage noarch
+
+* Fri Dec  9 2011 Yanko Kaneti <yaneti at declera.com> 1.6-2
+- Some changes suggested by review comment #1
+
+* Fri May 20 2011 Yanko Kaneti <yaneti at declera.com> 1.6-1
+- First attempt at packaging.
diff --git a/sources b/sources
index e69de29..3e9542c 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+6fcc515388bf2c5b0c8f9f733bfee7e1  aggregate-1.6.tar.gz


More information about the scm-commits mailing list