]> git.pld-linux.org Git - packages/awznode.git/blob - awznode.spec
- use configure
[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.icm.edu.pl/vol/rzm0/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} CC="%{__cc} %{rpmcflags} -Wall"
41
42 %install
43 rm -rf $RPM_BUILD_ROOT
44 install -d $RPM_BUILD_ROOT/var/ax25/{node,flex} \
45         $RPM_BUILD_ROOT{%{_sbindir},%{_bindir},%{_libdir}/ax25/node/help} \
46         $RPM_BUILD_ROOT%{_mandir}/man{1,5,8} \
47         $RPM_BUILD_ROOT%{_sysconfdir}/ax25
48
49 install etc/loggedin   $RPM_BUILD_ROOT/var/ax25/node
50 install etc/lastlog    $RPM_BUILD_ROOT/var/ax25/node
51 install etc/gateways   $RPM_BUILD_ROOT/var/ax25/flex
52
53 install node $RPM_BUILD_ROOT%{_sbindir}
54 install nodeusers $RPM_BUILD_ROOT%{_sbindir}
55 install flexd $RPM_BUILD_ROOT%{_sbindir}
56
57 install etc/help/*.hlp $RPM_BUILD_ROOT%{_libdir}/ax25/node/help
58
59 install etc/node.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
60 install etc/node.perms.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
61 install etc/node.info.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
62 install etc/node.motd.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
63 install etc/node.users.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
64 install etc/node.routes.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
65 install etc/flexd.conf.ex $RPM_BUILD_ROOT%{_sysconfdir}/ax25
66
67 install man/nodeusers.1  $RPM_BUILD_ROOT%{_mandir}/man1
68 install man/node.conf.5  $RPM_BUILD_ROOT%{_mandir}/man5
69 install man/node.perms.5 $RPM_BUILD_ROOT%{_mandir}/man5
70 install man/node.8       $RPM_BUILD_ROOT%{_mandir}/man8
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %files
76 %defattr(644,root,root,755)
77 %doc CHANGES README
78 %attr(755,root,root) %{_sbindir}/nodeusers
79 %attr(755,root,root) %{_sbindir}/flexd
80 %attr(4775,root,root) %{_sbindir}/node
81 %attr(600,root,root) %{_sysconfdir}/ax25/*
82 %{_mandir}/man?/*
83 /var/ax25/*
This page took 0.030581 seconds and 4 git commands to generate.