3 %bcond_without static_libs # static library
5 Summary: OpenR2 - MFC/R2 signalling over E1 lines
6 Summary(pl.UTF-8): OpenR2 - sygnały MFC/R2 po liniach E1
10 License: LGPL v2+ (library), GPL v2+ (utilities)
12 #Source0Download: https://github.com/moises-silva/openr2/releases
13 Source0: https://github.com/moises-silva/openr2/archive/v%{version}/%{name}-%{version}.tar.gz
14 # Source0-md5: 5858020ad014c111f6f7a8c86758da6c
15 Patch0: %{name}-nosvn.patch
16 Patch1: %{name}-opt.patch
17 Patch2: %{name}-libdir.patch
18 URL: https://libopenr2.org/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: dahdi-linux-devel
22 BuildRequires: libtool
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 OpenR2 is a library that implements the MFC/R2 signalling over E1
27 lines using the Zapata Telephony interface (or DAHDI).
29 %description -l pl.UTF-8
30 OpenR2 to biblioteka implementująca przesyłanie sygnałów MFC/R2 po
31 liniach E1 przy użyciu interfejsu Zapata Telephony (lub DAHDI).
34 Summary: Header files for OpenR2 library
35 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki OpenR2
37 Group: Development/Libraries
38 Requires: %{name} = %{version}-%{release}
41 Header files for OpenR2 library.
43 %description devel -l pl.UTF-8
44 Pliki nagłówkowe biblioteki OpenR2.
47 Summary: Static OpenR2 library
48 Summary(pl.UTF-8): Statyczna biblioteka OpenR2
50 Group: Development/Libraries
51 Requires: %{name}-devel = %{version}-%{release}
54 Static OpenR2 library.
56 %description static -l pl.UTF-8
57 Statyczna biblioteka OpenR2.
72 %{!?with_static_libs:--disable-static}
76 rm -rf $RPM_BUILD_ROOT
79 DESTDIR=$RPM_BUILD_ROOT
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
85 %postun -p /sbin/ldconfig
88 %defattr(644,root,root,755)
89 %doc AUTHORS CREDITS ChangeLog NEWS README TODO doc/README.asterisk doc/asterisk
90 %attr(755,root,root) %{_bindir}/r2dtmf_detect
91 %attr(755,root,root) %{_bindir}/r2test
92 %attr(755,root,root) %{_libdir}/libopenr2.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libopenr2.so.3
94 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/r2proto.conf
95 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/r2test.conf
96 %{_mandir}/man5/r2test.conf.5*
97 %{_mandir}/man8/r2test.8*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_libdir}/libopenr2.so
102 %{_libdir}/libopenr2.la
103 %{_includedir}/openr2
104 %{_includedir}/openr2.h
106 %if %{with static_libs}
108 %defattr(644,root,root,755)
109 %{_libdir}/libopenr2.a