]>
Commit | Line | Data |
---|---|---|
459747d1 | 1 | # |
2 | # Conditional build: | |
2cf78d71 | 3 | %bcond_with non_hams # allow to connect non hams stations |
459747d1 | 4 | # |
2e637a40 | 5 | Summary: Easy configurable node/gateway (AX25) |
9d5670d9 | 6 | Summary(pl.UTF-8): Prosto konfigurowalny przekaźnik/brama (AX25) |
2e637a40 | 7 | Name: awznode |
4e6378b4 PG |
8 | %define _pre pre2 |
9 | Version: 0.4 | |
2cf78d71 | 10 | Release: 0.%{_pre}%{?with_non_hams:nonhams} |
4e6378b4 | 11 | Epoch: 1 |
8b8de0c5 | 12 | License: GPL |
2e637a40 | 13 | Group: Applications/Communications |
9aa18b1f | 14 | Source0: ftp://ftp.funet.fi/pub/ham/unix/Linux/packet/awznode/%{name}-v%{version}-%{_pre}.tar.gz |
1084d547 | 15 | # Source0-md5: 02f26da4c4db0260c297e1cac6c9d1f5 |
459747d1 | 16 | Patch0: %{name}-configure.patch |
2cf78d71 JB |
17 | Patch1: %{name}-fhs.patch |
18 | Patch2: %{name}-non_hams.patch | |
2e637a40 | 19 | BuildRequires: libax25-devel |
4e6378b4 | 20 | BuildRequires: zlib-devel |
2e637a40 | 21 | Requires: ax25-tools >= 0.0.8 |
4e6378b4 PG |
22 | Requires: libax25 >= 0.0.9 |
23 | Requires: zlib >= 1.1.3 | |
24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
525fa72a | 25 | |
2cf78d71 JB |
26 | %define _localstatedir /var/lib |
27 | ||
525fa72a | 28 | %description |
2e637a40 | 29 | Easy node/gateway software for AX25 procotole. It's usable tool if you |
8b8de0c5 | 30 | want create gateway packetradio <> Internet (both sides). |
525fa72a | 31 | |
a0c0de8f JR |
32 | %description -l pl.UTF-8 |
33 | Prosty przekaźnik/brama dla protokołu AX25. Przydatne narzędzie przy | |
8b8de0c5 | 34 | budowaniu bramek packetradio <> Internet. |
525fa72a | 35 | |
36 | %prep | |
4e6378b4 | 37 | %setup -q -n %{name}-v%{version}-%{_pre} |
525fa72a | 38 | %patch0 -p0 |
2cf78d71 JB |
39 | %patch1 -p1 |
40 | %{?with_non_hams:%patch2 -p1} | |
525fa72a | 41 | |
42 | %build | |
2cf78d71 JB |
43 | # not autoconf-generated, it doesn't take any parameters |
44 | ./configure | |
9aa18b1f | 45 | %{__make} \ |
2cf78d71 JB |
46 | CC="%{__cc}" \ |
47 | CFLAGS="%{rpmcflags} -Wall" | |
525fa72a | 48 | |
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
2cf78d71 | 51 | install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25/{node,flex} \ |
8b8de0c5 JB |
52 | $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \ |
53 | $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \ | |
54 | $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
2e637a40 | 55 | |
29f82b79 | 56 | install etc/loggedin $RPM_BUILD_ROOT%{_localstatedir}/ax25/node |
57 | install etc/lastlog $RPM_BUILD_ROOT%{_localstatedir}/ax25/node | |
58 | install etc/gateways $RPM_BUILD_ROOT%{_localstatedir}/ax25/flex | |
2e637a40 | 59 | |
29f82b79 | 60 | install node $RPM_BUILD_ROOT%{_sbindir} |
61 | install nodeusers $RPM_BUILD_ROOT%{_sbindir} | |
62 | install flexd $RPM_BUILD_ROOT%{_sbindir} | |
2e637a40 | 63 | |
29f82b79 | 64 | install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help |
2e637a40 | 65 | |
29f82b79 | 66 | install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 |
67 | install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
68 | install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
69 | install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
70 | install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
71 | install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
72 | install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25 | |
2e637a40 | 73 | |
29f82b79 | 74 | install man/nodeusers.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
75 | install man/node.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
76 | install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5 | |
77 | install man/node.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
525fa72a | 78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %files | |
83 | %defattr(644,root,root,755) | |
cd69e43e | 84 | %doc CHANGES README |
8b8de0c5 JB |
85 | %attr(755,root,root) %{_sbindir}/nodeusers |
86 | %attr(755,root,root) %{_sbindir}/flexd | |
87 | %attr(4775,root,root) %{_sbindir}/node | |
88 | %attr(600,root,root) %{_sysconfdir}/ax25/* | |
2cf78d71 | 89 | %{_libdir}/ax25 |
2e637a40 | 90 | %{_mandir}/man?/* |
2cf78d71 | 91 | %{_localstatedir}/ax25/* |