summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.cvsignore1
-rw-r--r--ChangeLog1
-rw-r--r--Makefile.am2
-rw-r--r--ax25-apps.spec.in52
-rw-r--r--configure.ac2
5 files changed, 56 insertions, 2 deletions
diff --git a/.cvsignore b/.cvsignore
index 7bdb315..aec2cf5 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -3,6 +3,7 @@ Makefile
Makefile.in
aclocal.m4
autom4te.cache
+ax25-apps.spec
config.guess
config.h
config.h.in
diff --git a/ChangeLog b/ChangeLog
index d2ad4bf..6ca7471 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,7 @@ ax25-apps (0.0.8)
* Fix various application crashes.
* Support for UNIX98 pseudo terminals.
* New option -S to silence call for use in shell scripts.
+ * Add support for building rpm packages.
ax25-apps (0.0.7)
* Added opentrac to listen, Thanks to Scott Miller
diff --git a/Makefile.am b/Makefile.am
index b81c242..adacbc2 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,6 +1,6 @@
SUBDIRS = ax25ipd ax25rtd call listen ax25mond
-EXTRA_DIST = pathnames.h
+EXTRA_DIST = pathnames.h ax25-apps.spec
installconf:
@for app in $(SUBDIRS); do $(MAKE) -C $$app installconf; done
diff --git a/ax25-apps.spec.in b/ax25-apps.spec.in
new file mode 100644
index 0000000..c91ccc9
--- /dev/null
+++ b/ax25-apps.spec.in
@@ -0,0 +1,52 @@
+Name: ax25-apps
+Version: @BASEVERSION@@EXTRAVERSION@
+Release: 1
+Summary: AX.25 ham radio applications
+
+Group: Applications/Communications
+#ax25ipd is BSD licensed, rest is GPLv2+
+License: GPLv2+ and BSD
+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
+This package provides specific user applications for hamradio that use AX.25
+Net/ROM or ROSE network protocols:
+
+ * axcall: a general purpose AX.25, NET/ROM and ROSE connection program.
+ * axlisten: a network monitor of all AX.25 traffic heard by the system.
+ * ax25ipd: an RFC1226 compliant daemon which provides encapsulation of
+ AX.25 traffic over IP.
+ * ax25mond: retransmits data received from sockets into an AX.25 monitor
+ socket.
+
+%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 ax25ipd/COPYING.ax25ipd ax25ipd/HISTORY.ax25ipd ax25ipd/README.ax25ipd
+%doc ax25rtd/TODO.ax25rtd ax25rtd/README.ax25rtd
+%{_bindir}/*
+%{_sbindir}/*
+%{_mandir}/man?/*
+
+%changelog
+* Sat Jun 27 2009 Ralf Baechle <ralf@linux-mips.org>
+- Initial version
diff --git a/configure.ac b/configure.ac
index e543c1f..d939949 100644
--- a/configure.ac
+++ b/configure.ac
@@ -60,6 +60,6 @@ if test "x$GCC" = "xyes"; then
fi
fi
-AC_CONFIG_FILES([call/Makefile ax25ipd/Makefile listen/Makefile Makefile ax25rtd/Makefile ax25mond/Makefile])
+AC_CONFIG_FILES([call/Makefile ax25ipd/Makefile listen/Makefile Makefile ax25rtd/Makefile ax25mond/Makefile ax25-apps.spec])
AC_OUTPUT