-
Notifications
You must be signed in to change notification settings - Fork 8
/
aprsdigi.spec.in
102 lines (86 loc) · 3.02 KB
/
aprsdigi.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
Summary: AX.25 Automatic Position Reporting System aprsdigi and aprsmon
Name: aprsdigi
Version: @VERSION@
Release: 7
License: GPLv2+
Group: Applications/Communications
Source: https://github.com/n2ygk/aprsdigi/archive/v%{version}.tar.gz
Url: https://github.com/n2ygk/aprsdigi
Requires: libax25 >= 0.0.7, systemd, logrotate
BuildRequires: systemd-units, libax25-devel, automake, autoconf
%changelog
* Sat Jun 20 2015 Alan Crosswell <[email protected]>
- update to reflect hosting at github.com
- add automake, autoconf to BuildRequires
- add logrotate to Requires
* Sun Sep 23 2012 Alan Crosswell <[email protected]>
- add libax25-devel to BuildRequires
- make the spec file pass rpmlint
* Sat Sep 08 2012 Alan Crosswell <[email protected]>
- Update to reflect hosting at sourceforge.net
- Track changes to rpm SPEC specs!
- Add systemd-based aprsdigi.service & aprsbeacon.service and remove aprsdigi.init
- Add logrotate
* Fri Aug 29 2009 Alan Crosswell <[email protected]>
- Update to use configure to set version, install initscript.
* Fri Dec 28 2001 Alan Crosswell <[email protected]>
- Try to make a new RPM, but first need to find RPMs for libax25.
* Mon Apr 05 1999 Alan Crosswell <[email protected]>
- Initial rpm
%description
Aprsdigi is a specialized Amateur Packet Radio (AX.25) UI-frame digipeater
for the Automatic Position Reporting System, APRS(tm).
Aprsmon collects and displays standard AX.25 UI text frames in a format similar
to that output by a standard TNC in "Monitor ON" mode and is intended
to be used with programs like javAPRS which wish to see a TNC data
stream over a TCP connection.
%prep
%setup -q -n aprsdigi-%{version}
%build
aclocal
automake --add-missing
autoconf
./configure
make
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
install -D -m 644 aprsdigi.service ${RPM_BUILD_ROOT}%{_unitdir}/aprsdigi.service
install -D -m 644 aprsbeacon.service ${RPM_BUILD_ROOT}%{_unitdir}/aprsbeacon.service
install -D -m 644 aprsdigi.logrotate ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/aprsdigi
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ $1 -eq 1 ] ; then
%{_bindir}/systemctl enable aprsdigi.service >/dev/null 2>&1 || :
%{_bindir}/systemctl enable aprsbeacon.service >/dev/null 2>&1 || :
fi
%preun
if [ $1 -eq 0 ]; then
%{_bindir}/systemctl -q disable aprsdigi.service >/dev/null 2>&1 || :
%{_bindir}/systemctl -q stop aprsdigi.service >/dev/null 2>&1 || :
%{_bindir}/systemctl -q disable aprsbeacon.service >/dev/null 2>&1 || :
%{_bindir}/systemctl -q stop aprsbeacon.service >/dev/null 2>&1 || :
fi
%postun
if [ $1 -ge 1 ] ; then
%{_bindir}/systemctl daemon-reload >/dev/null 2>&1 || :
%{_bindir}/systemctl -q try-restart aprsdigi.service >/dev/null 2>&1 || :
%{_bindir}/systemctl -q try-estart aprsbeacon.service >/dev/null 2>&1 || :
fi
%files
%doc README
%doc INSTALL
%doc COPYING
%doc NEWS
%doc ChangeLog
%doc TODO
%doc AUTHORS
%doc aprsdigi.lsm
%doc examples
%{_sbindir}/aprsdigi
%{_sbindir}/aprsmon
%{_unitdir}/aprsbeacon.service
%{_unitdir}/aprsdigi.service
%{_sysconfdir}/logrotate.d/aprsdigi
%{_mandir}/man8