]> git.pld-linux.org Git - packages/libax25.git/blob - libax25.spec
fe1dc56435071305f905324671f576eb52fd91a6
[packages/libax25.git] / libax25.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static library
4 #
5 Summary:        ax25 libraries for hamradio applications
6 Summary(pl.UTF-8):      Biblioteki ax25 dla aplikacji hamradio
7 Name:           libax25
8 Version:        0.0.11
9 Release:        5
10 License:        LGPL v2.1+
11 Group:          Libraries
12 Source0:        http://dl.sourceforge.net/ax25/%{name}-%{version}.tar.gz
13 # Source0-md5:  c6ea01e81118451e2e892e634c576c17
14 Patch0:         libadd.patch
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)
21
22 %define         _localstatedir          /var/lib
23
24 %description
25 These libraries are used for applications that need to get to some
26 special structures used in hamradio.
27
28 %description -l pl.UTF-8
29 Te biblioteki są wykorzystywane przez aplikacje wymagające specjalnych
30 struktur używanych przez urządzenia hamradio.
31
32 %package devel
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
38 Requires:       zlib-devel
39
40 %description devel
41 The extra files needed to compile hamradio utilities.
42
43 %description devel -l pl.UTF-8
44 Dodatkowe pliki potrzebne do kompilacji programów dla radioamatorów.
45
46 %package static
47 Summary:        ax25 static libraries
48 Summary(pl.UTF-8):      Biblioteki statyczne ax25
49 Group:          Development/Libraries
50 Requires:       %{name}-devel = %{version}-%{release}
51
52 %description static
53 ax25 static libraries.
54
55 %description static -l pl.UTF-8
56 Biblioteki statyczne ax25.
57
58 %prep
59 %setup -q
60 %patch0 -p1
61
62 %build
63 rm -f missing
64 %{__libtoolize}
65 %{__aclocal}
66 %{__autoconf}
67 %{__automake}
68 %configure \
69         %{!?with_static_libs:--disable-static}
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25
75
76 %{__make} install installconf \
77         DESTDIR=$RPM_BUILD_ROOT
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %post   -p /sbin/ldconfig
83 %postun -p /sbin/ldconfig
84
85 %files
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*
100
101 %files devel
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*
110
111 %if %{with static_libs}
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libax25.a
115 %{_libdir}/libax25io.a
116 %endif
This page took 0.071069 seconds and 2 git commands to generate.