]> git.pld-linux.org Git - packages/openr2.git/commitdiff
- new auto/th/openr2-1.3.2-1
authorJakub Bogusz <qboosh@pld-linux.org>
Tue, 23 May 2017 20:04:19 +0000 (22:04 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Tue, 23 May 2017 20:04:19 +0000 (22:04 +0200)
openr2-nosvn.patch [new file with mode: 0644]
openr2-opt.patch [new file with mode: 0644]
openr2.spec [new file with mode: 0644]

diff --git a/openr2-nosvn.patch b/openr2-nosvn.patch
new file mode 100644 (file)
index 0000000..9714832
--- /dev/null
@@ -0,0 +1,13 @@
+--- openr2-1.3.2/src/Makefile.am.orig  2011-10-10 07:40:32.000000000 +0200
++++ openr2-1.3.2/src/Makefile.am       2017-05-23 21:45:49.228777613 +0200
+@@ -3,10 +3,6 @@
+ AM_CFLAGS += -DOR2_TRACE_STACKS
+ endif
+-if HAVE_SVNVERSION
+-AM_CFLAGS += -DREVISION=\"$(shell svnversion -n .)\"
+-endif
+-
+ lib_LTLIBRARIES = libopenr2.la
+ include_HEADERS = openr2/openr2.h 
diff --git a/openr2-opt.patch b/openr2-opt.patch
new file mode 100644 (file)
index 0000000..27fd738
--- /dev/null
@@ -0,0 +1,14 @@
+--- openr2-1.3.2/configure.in.orig     2011-10-10 07:40:32.000000000 +0200
++++ openr2-1.3.2/configure.in  2017-05-23 21:48:14.155442614 +0200
+@@ -27,11 +27,6 @@
+ AC_CONFIG_HEADERS(config.h)
+ AM_INIT_AUTOMAKE
+-# let's default to compile with debugging information
+-# most users will not even care about it
+-CFLAGS='-ggdb3 -O0'
+-CXXFLAGS='-ggdb3 -O0'
+-
+ AC_PROG_CC
+ AM_PROG_CC_C_O
+ AC_PROG_LIBTOOL
diff --git a/openr2.spec b/openr2.spec
new file mode 100644 (file)
index 0000000..b233436
--- /dev/null
@@ -0,0 +1,108 @@
+#
+# Conditional build:
+%bcond_without static_libs     # static library
+#
+Summary:       OpenR2 - MFC/R2 signalling over E1 lines
+Summary(pl.UTF-8):     OpenR2 - sygnały MFC/R2 po liniach E1
+Name:          openr2
+Version:       1.3.2
+Release:       1
+License:       LGPL v2+ (library), GPL v2+ (utilities)
+Group:         Libraries
+#Source0Download: https://github.com/moises-silva/openr2/releases
+Source0:       https://github.com/moises-silva/openr2/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 5858020ad014c111f6f7a8c86758da6c
+Patch0:                %{name}-nosvn.patch
+Patch1:                %{name}-opt.patch
+URL:           https://libopenr2.org/
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: dahdi-linux-devel
+BuildRequires: libtool
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+OpenR2 is a library that implements the MFC/R2 signalling over E1
+lines using the Zapata Telephony interface (or DAHDI).
+
+%description -l pl.UTF-8
+OpenR2 to biblioteka implementująca przesyłanie sygnałów MFC/R2 po
+liniach E1 przy użyciu interfejsu Zapata Telephony (lub DAHDI).
+
+%package devel
+Summary:       Header files for OpenR2 library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki OpenR2
+License:       LGPL v2+
+Group:         Development/Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description devel
+Header files for OpenR2 library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki OpenR2.
+
+%package static
+Summary:       Static OpenR2 library
+Summary(pl.UTF-8):     Statyczna biblioteka OpenR2
+License:       LGPL v2+
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static OpenR2 library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka OpenR2.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+
+%build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       %{!?with_static_libs:--disable-static}
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS CREDITS ChangeLog NEWS README TODO doc/README.asterisk doc/asterisk
+%attr(755,root,root) %{_bindir}/r2dtmf_detect
+%attr(755,root,root) %{_bindir}/r2test
+%attr(755,root,root) %{_libdir}/libopenr2.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libopenr2.so.3
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/r2proto.conf
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/r2test.conf
+%{_mandir}/man5/r2test.conf.5*
+%{_mandir}/man8/r2test.8*
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libopenr2.so
+%{_libdir}/libopenr2.la
+%{_includedir}/openr2
+%{_includedir}/openr2.h
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libopenr2.a
+%endif
This page took 1.584827 seconds and 4 git commands to generate.