From 2a114ceb7fc1af7abcedae68ee249ed741c76b3d66d52c9e9bd332b070cb1ba5 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Tue, 27 Sep 2011 07:52:56 +0000 Subject: [PATCH] fix up name OBS-URL: https://build.opensuse.org/package/show/network:telephony/libzrtpcpp?expand=0&rev=12 --- libzrtpcpp2.spec => libzrtpcpp.spec | 31 +++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) rename libzrtpcpp2.spec => libzrtpcpp.spec (78%) diff --git a/libzrtpcpp2.spec b/libzrtpcpp.spec similarity index 78% rename from libzrtpcpp2.spec rename to libzrtpcpp.spec index 7292ddb..8aaa527 100644 --- a/libzrtpcpp2.spec +++ b/libzrtpcpp.spec @@ -1,7 +1,7 @@ # -# spec file for package libzrtpcpp (Version 2.0.0) +# spec file for package libzrtpcpp # -# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. +# 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 @@ -15,7 +15,10 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -Name: libzrtpcpp2 + + +Name: libzrtpcpp +%define lname libzrtpcpp2 Version: 2.0.0 Release: 0 License: GPLv3+ @@ -36,19 +39,28 @@ that offers compatibility with Phil Zimmermann's zrtp/Zfone voice encryption, and which can be directly embedded into telephony applications. +%package -n %lname +Summary: A ccrtp extension for ZRTP support + +%description -n %lname +This library is a GPL licensed extension to the GNU RTP Stack, ccrtp, +that offers compatibility with Phil Zimmermann's zrtp/Zfone voice +encryption, and which can be directly embedded into telephony +applications. + %package devel License: GPLv3+ Summary: Headers and link library for libzrtpcpp Group: Development/Libraries/Other -Requires: libccrtp2-devel >= 2.0.0 -Requires: %{name} = %{version} +Requires: ccrtp-devel >= 2.0.0 +Requires: %{lname} = %{version} %description devel This package provides the header files, link libraries, and documentation for building applications that use libzrtpcpp. %prep -%setup -q -n libzrtpcpp-%{version} +%setup -q %build mkdir build @@ -64,7 +76,6 @@ cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ make %{?_smp_mflags} - %install cd build rm -rf %{buildroot} @@ -73,7 +84,7 @@ rm -rf %{buildroot} %clean rm -rf %{buildroot} -%files -n libzrtpcpp2 +%files -n %lname %defattr(-,root,root,0755) %doc AUTHORS COPYING README %{_libdir}/*.so.* @@ -85,8 +96,8 @@ rm -rf %{buildroot} %{_includedir}/libzrtpcpp/*.h %dir %{_includedir}/libzrtpcpp -%post -p /sbin/ldconfig +%post -p /sbin/ldconfig -n %lname -%postun -p /sbin/ldconfig +%postun -p /sbin/ldconfig -n %lname %changelog