]> git.pld-linux.org Git - packages/awznode.git/blob - awznode.spec
- working Source0 URL
[packages/awznode.git] / awznode.spec
1 #
2 # Conditional build:
3 # _with_non_hams        - allow to connect non hams stations
4 #
5 Summary:        Easy configurable node/gateway (AX25)
6 Summary(pl):    Prosto konfigurowalny przeka¼nik/brama (AX25)
7 Name:           awznode
8 %define         _pre    pre2
9 Version:        0.4
10 Release:        0.%{_pre}%{?_with_non_hams:nonhams}
11 Epoch:          1
12 License:        GPL
13 Group:          Applications/Communications
14 Source0:        ftp://ftp.funet.fi/pub/ham/unix/Linux/packet/awznode/%{name}-v%{version}-%{_pre}.tar.gz
15 # Source0-md5:  02f26da4c4db0260c297e1cac6c9d1f5
16 Patch0:         %{name}-configure.patch
17 Patch1:         awznode-non_hams.patch
18 BuildRequires:  libax25-devel
19 BuildRequires:  zlib-devel
20 Requires:       ax25-tools >= 0.0.8
21 Requires:       libax25 >= 0.0.9
22 Requires:       zlib >= 1.1.3
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 Easy node/gateway software for AX25 procotole. It's usable tool if you
27 want create gateway packetradio <> Internet (both sides).
28
29 %description -l pl
30 Prosty przeka¼nik/brama dla protoko³u AX25. Przydatne narzêdzie przy
31 budowaniu bramek packetradio <> Internet.
32
33 %prep
34 %setup -q -n %{name}-v%{version}-%{_pre}
35 %patch0 -p0
36 %{?_with_non_hams:%patch1 -p1}
37
38 %build
39 %configure
40 %{__make} \
41         CC="%{__cc} %{rpmcflags} -Wall"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT/var/ax25/{node,flex} \
46         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \
47         $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
48         $RPM_BUILD_ROOT%{_sysconfdir}/ax25
49
50 install etc/loggedin   $RPM_BUILD_ROOT/var/ax25/node
51 install etc/lastlog    $RPM_BUILD_ROOT/var/ax25/node
52 install etc/gateways   $RPM_BUILD_ROOT/var/ax25/flex
53
54 install node $RPM_BUILD_ROOT%{_sbindir}
55 install nodeusers $RPM_BUILD_ROOT%{_sbindir}
56 install flexd $RPM_BUILD_ROOT%{_sbindir}
57
58 install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help
59
60 install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
61 install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
62 install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
63 install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
64 install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
65 install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
66 install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
67
68 install man/nodeusers.1  $RPM_BUILD_ROOT%{_mandir}/man1
69 install man/node.conf.5  $RPM_BUILD_ROOT%{_mandir}/man5
70 install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5
71 install man/node.8       $RPM_BUILD_ROOT%{_mandir}/man8
72
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %files
77 %defattr(644,root,root,755)
78 %doc CHANGES README
79 %attr(755,root,root) %{_sbindir}/nodeusers
80 %attr(755,root,root) %{_sbindir}/flexd
81 %attr(4775,root,root) %{_sbindir}/node
82 %attr(600,root,root) %{_sysconfdir}/ax25/*
83 %{_mandir}/man?/*
84 /var/ax25/*
This page took 0.043096 seconds and 3 git commands to generate.