3 %bcond_without static_libs # don't build static library
5 Summary: ax25 libraries for hamradio applications
6 Summary(pl.UTF-8): Biblioteki ax25 dla aplikacji hamradio
12 Source0: http://dl.sourceforge.net/ax25/%{name}-%{version}.tar.gz
13 # Source0-md5: c6ea01e81118451e2e892e634c576c17
15 URL: http://ax25.sourceforge.net/
16 BuildRequires: autoconf
17 BuildRequires: automake
18 BuildRequires: libtool
19 BuildRequires: zlib-devel
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _localstatedir /var/lib
25 These libraries are used for applications that need to get to some
26 special structures used in hamradio.
28 %description -l pl.UTF-8
29 Te biblioteki są wykorzystywane przez aplikacje wymagające specjalnych
30 struktur używanych przez urządzenia hamradio.
33 Summary: ax25 libraries development files
34 Summary(pl.UTF-8): Pliki dla programistów używających bibliotek ax25
35 Group: Development/Libraries
36 Requires: %{name} = %{version}-%{release}
37 Requires: glibc-devel >= 2.1
41 The extra files needed to compile hamradio utilities.
43 %description devel -l pl.UTF-8
44 Dodatkowe pliki potrzebne do kompilacji programów dla radioamatorów.
47 Summary: ax25 static libraries
48 Summary(pl.UTF-8): Biblioteki statyczne ax25
49 Group: Development/Libraries
50 Requires: %{name}-devel = %{version}-%{release}
53 ax25 static libraries.
55 %description static -l pl.UTF-8
56 Biblioteki statyczne ax25.
69 %{!?with_static_libs:--disable-static}
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25
76 %{__make} install installconf \
77 DESTDIR=$RPM_BUILD_ROOT
80 rm -rf $RPM_BUILD_ROOT
82 %post -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
86 %defattr(644,root,root,755)
87 %doc AUTHORS ChangeLog NEWS README
88 %attr(755,root,root) %{_libdir}/libax25.so.*.*.*
89 %attr(755,root,root) %ghost %{_libdir}/libax25.so.0
90 %attr(755,root,root) %{_libdir}/libax25io.so.*.*.*
91 %attr(755,root,root) %ghost %{_libdir}/libax25io.so.0
92 %dir %{_sysconfdir}/ax25
93 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ax25/axports
94 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ax25/nrports
95 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ax25/rsports
96 %dir %{_localstatedir}/ax25
97 %{_mandir}/man5/axports.5*
98 %{_mandir}/man5/nrports.5*
99 %{_mandir}/man5/rsports.5*
102 %defattr(644,root,root,755)
103 %attr(755,root,root) %{_libdir}/libax25.so
104 %attr(755,root,root) %{_libdir}/libax25io.so
105 %{_libdir}/libax25.la
106 %{_libdir}/libax25io.la
107 %{_includedir}/netax25/*.h
108 %{_mandir}/man3/ax25.3*
109 %{_mandir}/man3/rose.3*
111 %if %{with static_libs}
113 %defattr(644,root,root,755)
115 %{_libdir}/libax25io.a