]> git.pld-linux.org Git - packages/libax25.git/blame - libax25.spec
- updated URLs
[packages/libax25.git] / libax25.spec
CommitLineData
0ac5f741 1#
eeee03af 2# Conditional build:
788f8e10 3%bcond_without static_libs # static library
eeee03af 4#
45d2f1c9 5Summary: ax25 libraries for hamradio applications
d3872947 6Summary(pl.UTF-8): Biblioteki ax25 dla aplikacji hamradio
45d2f1c9 7Name: libax25
df4adb2d 8Version: 0.0.11
31d67267 9Release: 5
615c25fa 10License: LGPL v2.1+
936e61bb 11Group: Libraries
788f8e10 12Source0: https://downloads.sourceforge.net/ax25/%{name}-%{version}.tar.gz
2e58bb5e 13# Source0-md5: c6ea01e81118451e2e892e634c576c17
b824226c 14Patch0: libadd.patch
788f8e10 15URL: https://ax25.sourceforge.net/
728b690d 16BuildRequires: autoconf
17BuildRequires: automake
18BuildRequires: libtool
b824226c 19BuildRequires: zlib-devel
45d2f1c9 20BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62962ece 21
44cb0d8d
JB
22%define _localstatedir /var/lib
23
62962ece 24%description
62962ece 25These libraries are used for applications that need to get to some
26special structures used in hamradio.
27
414213be 28%description -l pl.UTF-8
615c25fa
JB
29Te biblioteki są wykorzystywane przez aplikacje wymagające specjalnych
30struktur używanych przez urządzenia hamradio.
62962ece 31
32%package devel
45d2f1c9 33Summary: ax25 libraries development files
d3872947 34Summary(pl.UTF-8): Pliki dla programistów używających bibliotek ax25
936e61bb 35Group: Development/Libraries
bc0f3016 36Requires: %{name} = %{version}-%{release}
615c25fa
JB
37Requires: glibc-devel >= 2.1
38Requires: zlib-devel
62962ece 39
40%description devel
41The extra files needed to compile hamradio utilities.
42
414213be
JR
43%description devel -l pl.UTF-8
44Dodatkowe pliki potrzebne do kompilacji programów dla radioamatorów.
62962ece 45
45d2f1c9 46%package static
47Summary: ax25 static libraries
d3872947 48Summary(pl.UTF-8): Biblioteki statyczne ax25
936e61bb 49Group: Development/Libraries
bc0f3016 50Requires: %{name}-devel = %{version}-%{release}
45d2f1c9 51
52%description static
53ax25 static libraries.
54
414213be 55%description static -l pl.UTF-8
45d2f1c9 56Biblioteki statyczne ax25.
57
62962ece 58%prep
59%setup -q
b824226c 60%patch0 -p1
62962ece 61
62%build
73b08de8 63rm -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
73rm -rf $RPM_BUILD_ROOT
44cb0d8d 74install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25
62962ece 75
615c25fa
JB
76%{__make} install installconf \
77 DESTDIR=$RPM_BUILD_ROOT
62962ece 78
79%clean
80rm -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
This page took 0.104352 seconds and 4 git commands to generate.