# # spec file for package openr2 # # Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: openr2 %define lname libopenr2-3 Summary: Library for MFC/R2 telephony signaling protocol over E1 lines Version: 1.3.3 Release: 1.21 License: LGPL-2.1 Group: Development/Libraries/C and C++ URL: http://code.google.com/p/openr2/ #DL-URL: https://%name.googlecode.com/files/%name-%version.tar.gz Source: https://%name.googlecode.com/files/%name-%version.tar.gz BuildRoot: %_tmppath/%name-%version-build BuildRequires: dahdi-linux-devel BuildRequires: pkgconfig BuildRequires: xz %description OpenR2 is a library that implements the MFC/R2 telephony signaling protocol over E1 lines. %package -n %lname Summary: Library for MFC/R2 telephony signaling protocol over E1 lines Group: System/Libraries %description -n %lname OpenR2 is a library that implements the MFC/R2 telephony signaling protocol over E1 lines. %package devel Summary: Development files for libopenr2 Group: Development/Libraries/C and C++ Requires: %lname = %version %description devel OpenR2 is a library that implements the MFC/R2 telephony signaling protocol over E1 lines. %prep %setup %build %configure --disable-static --sysconfdir=%_sysconfdir/%name make %{?_smp_mflags}; %install b="%buildroot"; make install DESTDIR="$b"; find "$b/%_libdir" -type f -name "*.la" -delete; mv $b%_sysconfdir/%name/r2proto.conf $b%_sysconfdir/%name/r2proto.conf-new mv $b%_sysconfdir/%name/r2test.conf $b%_sysconfdir/%name/r2test.conf-new %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files %defattr(-,root,root) %config %_sysconfdir/%name/r2*.conf-new %_bindir/r2* %_mandir/man*/* %files -n %lname %defattr(-,root,root) %_libdir/lib%{name}*.so.3* %files devel %defattr(-,root,root) %_includedir/%{name}* %_libdir/lib%{name}*.so %changelog * Tue Oct 8 2013 jamesp@vicidial.com - Prettified spec and updated - Changed source to full URL * Wed Aug 21 2013 jamesp@vicidial.com - Upgrade to upstream release v.1.3.3 * See ChangeLog for details * Tue Aug 21 2012 jengelh@inai.de - There is no apparent reason to call bootstrap * Sun Oct 9 2011 jengelh@medozas.de - Initial package for build.opensuse.org