From 8de3799b923ab0436819c95002fc191fbcca00c2 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 27 Jun 2009 23:48:12 +0000 Subject: Add support for building rpm packages. Now just a rpmbuild -ta will do. --- .cvsignore | 1 + ChangeLog | 1 + Makefile.am | 2 +- ax25-tools.spec.in | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ configure.ac | 7 ++++- 5 files changed, 91 insertions(+), 2 deletions(-) create mode 100644 ax25-tools.spec.in diff --git a/.cvsignore b/.cvsignore index 37f00c0..bcfdf9c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1,4 +1,5 @@ aclocal.m4 +ax25-tools.spec autom4te.cache config.cache config.h diff --git a/ChangeLog b/ChangeLog index 8ca2cf0..7cd0baf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -13,6 +13,7 @@ ax25-tools (0.0.10) * removed old kernel patches for yum support for kernels 2.0.36 and 2.2.1. In the unexpected case somebody should still need them the patches can be found in older releases and the source archive. + * Add support for building rpm packages. -- Ralf Baechle DL5RB Sat, 6 Jun 2009 17:36:01 +0100 diff --git a/Makefile.am b/Makefile.am index c587c3f..3215b0f 100644 --- a/Makefile.am +++ b/Makefile.am @@ -4,7 +4,7 @@ installconf: SUBDIRS = ax25 hdlcutil kiss 6pack netrom rose tcpip user_call yamdrv dmascc -EXTRA_DIST = pathnames.h +EXTRA_DIST = pathnames.h ax25-tools.spec INCLUDES = -DAX25_SYSCONFDIR=\""$(sysconfdir)/ax25/"\" \ -DAX25_LOCALSTATEDIR=\""$(localstatedir)/ax25/"\" diff --git a/ax25-tools.spec.in b/ax25-tools.spec.in new file mode 100644 index 0000000..2b04509 --- /dev/null +++ b/ax25-tools.spec.in @@ -0,0 +1,82 @@ +Name: ax25-tools +Version: @BASEVERSION@@EXTRAVERSION@ +Release: 1 +Summary: Tools used to configure an ax.25 enabled computer + +Group: Applications/Communications +License: GPLv2+ +URL: http://www.linux-ax25.org/ +Source0: http://www.linux-ax25.org/pub/%{name}/%{name}-@VERSION@.tar.gz +BuildRoot: %{_tmppath}/%{name}-@VERSION@-%{release}-root-%(%{__id_u} -n) + +%description +ax25-tools is a collection of tools that are used to configure an ax.25 enabled +computer. They will configure interfaces and assign callsigns to ports as well +as Net/ROM and ROSE configuration. + + * m6pack - handle multiple 6pack TNCs on a single interface + * ax25d - general purpose AX.25, NET/ROM and Rose daemon + * axctl - configure/Kill running AX.25 connections + * axparms - configure AX.25 interfaces + * axspawn - allow automatic login to a Linux system + * beacon - transmit periodic messages on an AX.25 port + * bpqparms - configure BPQ ethernet devices + * mheardd - display AX.25 calls recently heard + * rxecho - transparently route AX.25 packets between ports + * mheard - collect information about packet activity + * dmascc_cfg - configure dmascc devices + * sethdlc - get/set Linux HDLC packet radio modem driver port information + * smmixer - get/set Linux soundcard packet radio modem driver mixer + * smdiag - Linux soundcard packet radio modem driver diagnostics utility + * kissattach - Attach a KISS or 6PACK interface + * kissnetd - create a virtual network + * kissparms - configure KISS TNCs + * mkiss - attach multiple KISS interfaces + * net2kiss - convert a network AX.25 driver to a KISS stream on a pty + * netromd - send and receive NET/ROM routing messages + * nodesave - saves NET/ROM routing information + * nrattach - start a NET/ROM interface + * nrparms - configure a NET/ROM interface + * nrsdrv - KISS to NET/ROM serial converter + * rsattach - start a ROSE interface + * rsdwnlnk - user exit from the ROSE network + * rsmemsiz - monitor the ROSE subsystem + * rsusers.sh - monitor AX.25, NET/ROM and ROSE users + * rsparms - configure a ROSE interface + * rsuplnk - User entry into the ROSE network + * rip98d - RIP98 routing daemon + * ttylinkd - TTYlink daemon for AX.25, NET/ROM, ROSE and IP + * ax25_call - Make an AX.25 connection + * netrom_call - Make a NET/ROM connection + * rose_call - Make a ROSE connection + * tcp_call - Make a TCP connection + * yamcfg - configure a YAM interface + +%prep +%setup -q -n %{name}-@VERSION@ + +%build +%configure +make %{?_smp_mflags} + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT + +#don't include these twice +rm -rf $RPM_BUILD_ROOT%{_docdir}/%{name}/ + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING README +%doc yamdrv/README.yamdrv user_call/README.user_call tcpip/ttylinkd.README dmascc/README.dmascc +%{_bindir}/* +%{_sbindir}/* +%{_mandir}/man?/* + +%changelog +* Sat Jun 27 2009 Ralf Baechle +- Initial version diff --git a/configure.ac b/configure.ac index 01dbdc7..c65509d 100644 --- a/configure.ac +++ b/configure.ac @@ -76,5 +76,10 @@ if test "x$GCC" = "xyes"; then fi fi -AC_CONFIG_FILES([netrom/Makefile tcpip/Makefile ax25/Makefile ax25/axgetput/Makefile Makefile rose/Makefile user_call/Makefile kiss/Makefile 6pack/Makefile hdlcutil/Makefile hdlcutil/fl/Makefile yamdrv/Makefile dmascc/Makefile]) +basever=$(echo $PACKAGE_VERSION | sed -e 's@-.*$@@') +AC_SUBST(BASEVERSION, [$basever]) +extraver=$(echo $PACKAGE_VERSION | sed -e 's@@<:@^-@:>@*-@@' -e 's@-@_@') +AC_SUBST(EXTRAVERSION, [$extraver]) + +AC_CONFIG_FILES([netrom/Makefile tcpip/Makefile ax25/Makefile ax25/axgetput/Makefile Makefile rose/Makefile user_call/Makefile kiss/Makefile 6pack/Makefile hdlcutil/Makefile hdlcutil/fl/Makefile yamdrv/Makefile dmascc/Makefile ax25-tools.spec]) AC_OUTPUT -- cgit v1.2.3