]> git.pld-linux.org Git - packages/awznode.git/blob - awznode.spec
- tabs in preamble
[packages/awznode.git] / awznode.spec
1 #
2 # Conditional build:
3 %bcond_with     non_hams        # allow to connect non hams stations
4 #
5 Summary:        Easy configurable node/gateway (AX25)
6 Summary(pl.UTF-8):      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:         %{name}-fhs.patch
18 Patch2:         %{name}-non_hams.patch
19 BuildRequires:  libax25-devel
20 BuildRequires:  zlib-devel
21 Requires:       ax25-tools >= 0.0.8
22 Requires:       libax25 >= 0.0.9
23 Requires:       zlib >= 1.1.3
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _localstatedir  /var/lib
27
28 %description
29 Easy node/gateway software for AX25 procotole. It's usable tool if you
30 want create gateway packetradio <> Internet (both sides).
31
32 %description -l pl.UTF-8
33 Prosty przekaźnik/brama dla protokołu AX25. Przydatne narzędzie przy
34 budowaniu bramek packetradio <> Internet.
35
36 %prep
37 %setup -q -n %{name}-v%{version}-%{_pre}
38 %patch0 -p0
39 %patch1 -p1
40 %{?with_non_hams:%patch2 -p1}
41
42 %build
43 # not autoconf-generated, it doesn't take any parameters
44 ./configure
45 %{__make} \
46         CC="%{__cc}" \
47         CFLAGS="%{rpmcflags} -Wall"
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25/{node,flex} \
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
55
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
59
60 install node            $RPM_BUILD_ROOT%{_sbindir}
61 install nodeusers       $RPM_BUILD_ROOT%{_sbindir}
62 install flexd           $RPM_BUILD_ROOT%{_sbindir}
63
64 install etc/help/*.hlp          $RPM_BUILD_ROOT%{_libdir}/ax25/node/help
65
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
73
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
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc CHANGES README
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/*
89 %{_libdir}/ax25
90 %{_mandir}/man?/*
91 %{_localstatedir}/ax25/*
This page took 0.077717 seconds and 3 git commands to generate.