blob: d8002f20b69ecff851ae3bc6887f5ad26c82cb03 (
plain)
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
|
Name: libax25
Version: @BASEVERSION@@EXTRAVERSION@
Release: 1
Summary: AX.25 library for hamradio applications
Group: System Environment/Libraries
License: LGPLv2+
URL: http://www.linux-ax25.org/
Source0: http://www.linux-ax25.org/pub/%{name}/%{name}-@VERSION@.tar.gz
BuildRoot: %{_tmppath}/%{name}-@VERSION@-%{release}-root-%(%{__id_u} -n)
BuildRequires: zlib-devel
%description
libax25 is a library for ham radio applications that use the AX.25, NETROM
or ROSE protocols. Included are routines to do ax25 address parsing, common
ax25 application config file parsing, etc.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package static
Summary: Static library files for %{name}
Group: Development/Libraries
Requires: %{name}-static = %{version}-%{release}
%description static
The %{name}-static package contains the libax25 and libax25io libraries
for static linking. You only need these for static linking applications.
%prep
%setup -q -n %{name}-@VERSION@
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT installconf
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%dir %{_sysconfdir}/ax25
%config(noreplace) %{_sysconfdir}/ax25/axports
%config(noreplace) %{_sysconfdir}/ax25/nrports
%config(noreplace) %{_sysconfdir}/ax25/rsports
%{_libdir}/*.so.*
%{_mandir}/man?/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%files static
%defattr(-,root,root,-)
%{_libdir}/*.a
%changelog
* Sat Jun 27 2009 Ralf Baechle <ralf@linux-mips.org>
- Initial version
|