]>
Commit | Line | Data |
---|---|---|
0ac5f741 | 1 | # |
eeee03af | 2 | # Conditional build: |
788f8e10 | 3 | %bcond_without static_libs # static library |
eeee03af | 4 | # |
45d2f1c9 | 5 | Summary: ax25 libraries for hamradio applications |
d3872947 | 6 | Summary(pl.UTF-8): Biblioteki ax25 dla aplikacji hamradio |
45d2f1c9 | 7 | Name: libax25 |
df4adb2d | 8 | Version: 0.0.11 |
31d67267 | 9 | Release: 5 |
615c25fa | 10 | License: LGPL v2.1+ |
936e61bb | 11 | Group: Libraries |
788f8e10 | 12 | Source0: https://downloads.sourceforge.net/ax25/%{name}-%{version}.tar.gz |
2e58bb5e | 13 | # Source0-md5: c6ea01e81118451e2e892e634c576c17 |
b824226c | 14 | Patch0: libadd.patch |
788f8e10 | 15 | URL: https://ax25.sourceforge.net/ |
728b690d | 16 | BuildRequires: autoconf |
17 | BuildRequires: automake | |
18 | BuildRequires: libtool | |
b824226c | 19 | BuildRequires: zlib-devel |
45d2f1c9 | 20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
62962ece | 21 | |
44cb0d8d JB |
22 | %define _localstatedir /var/lib |
23 | ||
62962ece | 24 | %description |
62962ece | 25 | These libraries are used for applications that need to get to some |
26 | special structures used in hamradio. | |
27 | ||
414213be | 28 | %description -l pl.UTF-8 |
615c25fa JB |
29 | Te biblioteki są wykorzystywane przez aplikacje wymagające specjalnych |
30 | struktur używanych przez urządzenia hamradio. | |
62962ece | 31 | |
32 | %package devel | |
45d2f1c9 | 33 | Summary: ax25 libraries development files |
d3872947 | 34 | Summary(pl.UTF-8): Pliki dla programistów używających bibliotek ax25 |
936e61bb | 35 | Group: Development/Libraries |
bc0f3016 | 36 | Requires: %{name} = %{version}-%{release} |
615c25fa JB |
37 | Requires: glibc-devel >= 2.1 |
38 | Requires: zlib-devel | |
62962ece | 39 | |
40 | %description devel | |
41 | The extra files needed to compile hamradio utilities. | |
42 | ||
414213be JR |
43 | %description devel -l pl.UTF-8 |
44 | Dodatkowe pliki potrzebne do kompilacji programów dla radioamatorów. | |
62962ece | 45 | |
45d2f1c9 | 46 | %package static |
47 | Summary: ax25 static libraries | |
d3872947 | 48 | Summary(pl.UTF-8): Biblioteki statyczne ax25 |
936e61bb | 49 | Group: Development/Libraries |
bc0f3016 | 50 | Requires: %{name}-devel = %{version}-%{release} |
45d2f1c9 | 51 | |
52 | %description static | |
53 | ax25 static libraries. | |
54 | ||
414213be | 55 | %description static -l pl.UTF-8 |
45d2f1c9 | 56 | Biblioteki statyczne ax25. |
57 | ||
62962ece | 58 | %prep |
59 | %setup -q | |
b824226c | 60 | %patch0 -p1 |
62962ece | 61 | |
62 | %build | |
73b08de8 | 63 | rm -f missing |
728b690d | 64 | %{__libtoolize} |
be85bf0a | 65 | %{__aclocal} |
2620ca53 | 66 | %{__autoconf} |
67 | %{__automake} | |
ca1429e7 | 68 | %configure \ |
b1974791 | 69 | %{!?with_static_libs:--disable-static} |
45d2f1c9 | 70 | %{__make} |
62962ece | 71 | |
72 | %install | |
73 | rm -rf $RPM_BUILD_ROOT | |
44cb0d8d | 74 | install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25 |
62962ece | 75 | |
615c25fa JB |
76 | %{__make} install installconf \ |
77 | DESTDIR=$RPM_BUILD_ROOT | |
62962ece | 78 | |
79 | %clean | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
45d2f1c9 | 82 | %post -p /sbin/ldconfig |
62962ece | 83 | %postun -p /sbin/ldconfig |
84 | ||
85 | %files | |
45d2f1c9 | 86 | %defattr(644,root,root,755) |
615c25fa JB |
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 | |
45d2f1c9 | 92 | %dir %{_sysconfdir}/ax25 |
615c25fa JB |
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 | |
45d2f1c9 | 96 | %dir %{_localstatedir}/ax25 |
615c25fa JB |
97 | %{_mandir}/man5/axports.5* |
98 | %{_mandir}/man5/nrports.5* | |
99 | %{_mandir}/man5/rsports.5* | |
62962ece | 100 | |
101 | %files devel | |
45d2f1c9 | 102 | %defattr(644,root,root,755) |
615c25fa JB |
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* | |
45d2f1c9 | 110 | |
b1974791 | 111 | %if %{with static_libs} |
45d2f1c9 | 112 | %files static |
113 | %defattr(644,root,root,755) | |
615c25fa JB |
114 | %{_libdir}/libax25.a |
115 | %{_libdir}/libax25io.a | |
ca1429e7 | 116 | %endif |