Import custom package specs to build for undistributed platforms.

Sat, 21 Feb 2009 16:33:28 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Sat, 21 Feb 2009 16:33:28 +0100
changeset 5
974f3946908a
parent 4
ee379de11fd7
child 6
961c83bf7b99

Import custom package specs to build for undistributed platforms.
This allows installation of twinkle and its dependencies on some
operating systems not providing it in default package repositories.

ccrtp/ccrtp.spec file | annotate | diff | comparison | revisions
libzrtpcpp/libzrtpcpp.spec file | annotate | diff | comparison | revisions
twinkle/twinkle.spec file | annotate | diff | comparison | revisions
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ccrtp/ccrtp.spec	Sat Feb 21 16:33:28 2009 +0100
     1.3 @@ -0,0 +1,84 @@
     1.4 +%{!?release: %define release 0}
     1.5 +%{!?version: %define version 1.7.1}
     1.6 +
     1.7 +%define _libname libccrtp
     1.8 +%define _devname libccrtp-devel
     1.9 +
    1.10 +Summary: "ccrtp" - a Common C++ class framework for RTP/RTCP
    1.11 +Name: ccrtp
    1.12 +Version: %{version}
    1.13 +Release: %{release}%{?dist}
    1.14 +License: LGPL v2 or later
    1.15 +Group: Development/Libraries
    1.16 +URL: http://www.gnu.org/software/ccrtp/
    1.17 +Source0: ftp://ftp.gnu.org/gnu/cccrtp/ccrtp-%{PACKAGE_VERSION}.tar.gz
    1.18 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    1.19 +Packager:      Michael Schloh von Bennewitz
    1.20 +BuildRequires: commoncpp2-devel >= 1.4.0
    1.21 +BuildRequires: pkgconfig
    1.22 +BuildRequires: libstdc++-devel
    1.23 +BuildRequires: libgcrypt-devel
    1.24 +
    1.25 +%description
    1.26 +ccRTP is a generic, extensible and efficient C++ framework for
    1.27 +developing applications based on the Real-Time Transport Protocol
    1.28 +(RTP) from the IETF. It is based on Common C++ and provides a full
    1.29 +RTP/RTCP stack for sending and receiving of realtime data by the use
    1.30 +of send and receive packet queues. ccRTP supports unicast,
    1.31 +multi-unicast and multicast, manages multiple sources, handles RTCP
    1.32 +automatically, supports different threading models and is generic as
    1.33 +for underlying network and transport protocols.
    1.34 +
    1.35 +%package -n %{_libname}
    1.36 +Group: System/Libraries
    1.37 +Summary: Runtime library for GNU RTP Stack
    1.38 +Provides: %{name} = %{version}-%{release}
    1.39 +
    1.40 +%package -n %{_devname}
    1.41 +Group: Development/Libraries
    1.42 +Summary: Headers and static link library for ccrtp.
    1.43 +Requires: %{_libname} = %{version}
    1.44 +Requires: commoncpp2-devel >= 1.4.0
    1.45 +Requires: libgcrypt-devel
    1.46 +Provides: %{name}-devel = %{version}-%{release}
    1.47 +
    1.48 +%description -n %{_libname}
    1.49 +This package contains the runtime library needed by applications that use
    1.50 +the GNU RTP stack.
    1.51 +
    1.52 +%description -n %{_devname}
    1.53 +This package provides the header files, link libraries, and
    1.54 +documentation for building applications that use GNU ccrtp.
    1.55 +
    1.56 +%prep
    1.57 +%setup
    1.58 +%build
    1.59 +%configure
    1.60 +
    1.61 +make %{?_smp_mflags} LDFLAGS="-s" CXXFLAGS="$RPM_OPT_FLAGS"
    1.62 +
    1.63 +%install
    1.64 +
    1.65 +%makeinstall
    1.66 +rm -rf %{buildroot}/%{_infodir}
    1.67 +
    1.68 +%clean
    1.69 +rm -rf %{buildroot}
    1.70 +
    1.71 +%files -n %{_libname}
    1.72 +%defattr(-,root,root,0755)
    1.73 +%doc AUTHORS COPYING ChangeLog README COPYING.addendum
    1.74 +%{_libdir}/*.so.*
    1.75 +
    1.76 +%files -n %{_devname}
    1.77 +%defattr(-,root,root,0755)
    1.78 +%{_libdir}/*.a
    1.79 +%{_libdir}/*.so
    1.80 +%{_libdir}/*.la
    1.81 +%{_libdir}/pkgconfig/*.pc
    1.82 +%dir %{_includedir}/ccrtp
    1.83 +%{_includedir}/ccrtp/*.h
    1.84 +
    1.85 +%post -n %{_libname} -p /sbin/ldconfig
    1.86 +
    1.87 +%postun -n %{_libname} -p /sbin/ldconfig
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/libzrtpcpp/libzrtpcpp.spec	Sat Feb 21 16:33:28 2009 +0100
     2.3 @@ -0,0 +1,109 @@
     2.4 +%define _libname libzrtpcpp
     2.5 +%define _devname libzrtpcpp-devel
     2.6 +
     2.7 +Summary: A ccrtp extension for zrtp/zfone support
     2.8 +Name: zrtpcpp
     2.9 +Version: 1.4.3
    2.10 +Release: 0
    2.11 +License: GPL
    2.12 +Group: Development/Libraries
    2.13 +URL: http://www.gnutelephony.org/index.php/GNU_ZRTP
    2.14 +Source0: ftp://ftp.gnu.org/gnu/ccrtp/libzrtpcpp-%{version}.tar.gz
    2.15 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
    2.16 +Packager:      Michael Schloh von Bennewitz
    2.17 +BuildRequires: libccrtp-devel >= 1.5.0
    2.18 +BuildRequires: pkgconfig
    2.19 +BuildRequires: libstdc++-devel
    2.20 +
    2.21 +%description
    2.22 +This library is a GPL licensed extension to the GNU RTP Stack (GNU ccrtp).
    2.23 +This extension offers a C++ implementation of Phil Zimmermann's ZRTP 
    2.24 +specification. The current release is based on 
    2.25 +draft-zimmermann-avt-zrtp-12.txt which is intended to become the
    2.26 +RFC. Phil's Zfone site provides more 
    2.27 +information, see http://zfoneproject.com/index.html
    2.28 +
    2.29 +This implementation was tested to work with Phil's Zfone implementation
    2.30 +of the ZRTP spefication. 
    2.31 +
    2.32 +Applications that use GNU ccrtp can use this library to use ZRTP and to
    2.33 +encrypt any RTP (not RTCP) communication. See the demo programs how to
    2.34 +use this.
    2.35 +
    2.36 +This release supports the basic ZRTP features, it does not support
    2.37 +preshared specified in the draft. Also the specified Asterisk PBX mode
    2.38 +is not supported. 
    2.39 +
    2.40 +%package -n %{_libname}
    2.41 +Group: System/Libraries
    2.42 +Summary: Runtime library for GNU ZRTP Stack
    2.43 +Requires: libccrtp >= 1.5.0
    2.44 +Provides: %{name} = %{version}-%{release}
    2.45 +
    2.46 +%package -n %{_devname}
    2.47 +Group: Development/Libraries
    2.48 +Summary: Headers and static link library for libzrtpcpp.
    2.49 +Requires: %{name} = %{version}
    2.50 +Requires: libccrtp-devel >= 1.5.0
    2.51 +Provides: %{name}-devel = %{version}-%{release}
    2.52 +
    2.53 +%description -n %{_libname}
    2.54 +This package contains the runtime library needed by applications that use 
    2.55 +the GNU ZRTP stack.
    2.56 +
    2.57 +%description -n %{_devname}
    2.58 +This package provides the header files, link libraries, and
    2.59 +documentation for building applications that use libzrtpcpp.
    2.60 +
    2.61 +%prep
    2.62 +%setup -n libzrtpcpp-%{version}
    2.63 +%build
    2.64 +%configure
    2.65 +%{__make} %{?_smp_mflags} CXXFLAGS="$RPM_OPT_FLAGS"
    2.66 +
    2.67 +%install
    2.68 +
    2.69 +%makeinstall
    2.70 +%{__strip} %{buildroot}/%{_libdir}/lib*.so.*.*
    2.71 +%{__rm} -rf %{buildroot}/%{_infodir} 
    2.72 +
    2.73 +%clean
    2.74 +%{__rm} -rf %{buildroot}
    2.75 +
    2.76 +%files -n %{_libname}
    2.77 +%defattr(-,root,root)
    2.78 +%doc AUTHORS COPYING README NEWS INSTALL
    2.79 +%{_libdir}/*.so.*
    2.80 +
    2.81 +%files -n %{_devname}
    2.82 +%defattr(-,root,root)
    2.83 +%{_libdir}/*.a
    2.84 +%{_libdir}/*.so
    2.85 +%{_libdir}/*.la
    2.86 +%{_libdir}/pkgconfig/*.pc
    2.87 +%{_includedir}/libzrtpcpp/*.h
    2.88 +
    2.89 +%post -n %{_libname} -p /sbin/ldconfig
    2.90 +
    2.91 +%postun -n %{_devname} -p /sbin/ldconfig
    2.92 +
    2.93 +%changelog
    2.94 +* Wed Feb 18 2009 - michael@schloh.com
    2.95 +- Update to version 1.4.3 and reformat packaging
    2.96 +
    2.97 +* Fri Jan 26 2009 - werner.dittmann@t-online.de
    2.98 +- Update to version 1.4.2 to support the latest ZRTP
    2.99 +  specification draft-zimmermann-avt-zrtp-12
   2.100 +
   2.101 +* Fri Aug 22 2008 - dyfet@gnutelephony.org
   2.102 +- Adapted for newer library naming conventions.
   2.103 +
   2.104 +* Tue Dec 11 2007 - werner.dittmann@t-online.de
   2.105 +- this is the first spec file for version 1.x.x
   2.106 +- remove the .la file in devel package
   2.107 +- use default file atttribute instead of 755
   2.108 +
   2.109 +* Sat Apr 18 2007 - werner.dittmann@t-online.de
   2.110 +- set version to 1.1.0
   2.111 +- GNU ZRTP is compatible with the latest Zfone Beta
   2.112 +  from April 2 2007
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/twinkle/twinkle.spec	Sat Feb 21 16:33:28 2009 +0100
     3.3 @@ -0,0 +1,70 @@
     3.4 +Summary:        A SIP Soft Phone
     3.5 +Name:           twinkle
     3.6 +Version:        1.4.1
     3.7 +Release:        1
     3.8 +License:        GPL
     3.9 +Group:          Productivity/Telephony/SIP/Clients
    3.10 +Source:         %{name}-%{version}.tar.gz
    3.11 +Prefix:         %{_prefix}
    3.12 +#BuildArch:      i586
    3.13 +BuildArch:      x86_64
    3.14 +BuildRoot:      %{_tmppath}/making_of_%{name}_%{version}
    3.15 +Packager:       Michael Schloh von Bennewitz
    3.16 +URL:            http://www.twinklephone.com/
    3.17 +Requires:       alsa
    3.18 +Requires:       commoncpp2 >= 1.6.0
    3.19 +Requires:       libccrtp >= 1.6.0
    3.20 +Requires:       libzrtpcpp >= 1.3.0
    3.21 +Requires:       kdelibs3 >= 3.2.0
    3.22 +Requires:       libsndfile
    3.23 +Requires:       libspeex
    3.24 +Requires:       libxml2
    3.25 +Requires:       file
    3.26 +Requires:       readline
    3.27 +BuildRequires:  alsa-devel
    3.28 +BuildRequires:  qt3-devel
    3.29 +BuildRequires:  qt3-devel-tools
    3.30 +BuildRequires:  update-desktop-files
    3.31 +BuildRequires:  commoncpp2-devel
    3.32 +BuildRequires:  libccrtp-devel
    3.33 +BuildRequires:  libzrtpcpp-devel
    3.34 +BuildRequires:  kdelibs3-devel
    3.35 +BuildRequires:  libsndfile-devel
    3.36 +BuildRequires:  speex-devel
    3.37 +BuildRequires:  boost-devel
    3.38 +BuildRequires:  libxml2-devel
    3.39 +BuildRequires:  file-devel
    3.40 +BuildRequires:  readline-devel
    3.41 +
    3.42 +%description
    3.43 +Twinkle is a SIP based softphone for making telephone calls
    3.44 +and instant messaging over IP networks.
    3.45 +
    3.46 +%prep
    3.47 +
    3.48 +%setup -q
    3.49 +
    3.50 +%build
    3.51 +#autoreconf -fi
    3.52 +QTDIR=/usr/lib/qt3 \
    3.53 +%configure --without-ilbc --enable-libsuffix=64
    3.54 +%{__make} %{?_smp_mflags} %{?mflags}
    3.55 +
    3.56 +%install
    3.57 +rm -rf %{buildroot}
    3.58 +%makeinstall
    3.59 +install -d 755 %{buildroot}%{_datadir}/pixmaps
    3.60 +install -m 644 src/gui/images/twinkle48.png %{buildroot}%{_datadir}/pixmaps/twinkle.png
    3.61 +%suse_update_desktop_file -c twinkle Twinkle "A SIP softphone" twinkle twinkle Network Telephony
    3.62 +
    3.63 +%clean
    3.64 +rm -rf %{buildroot}
    3.65 +
    3.66 +%files
    3.67 +%defattr(-, root, root)
    3.68 +%doc AUTHORS COPYING README ChangeLog
    3.69 +%{_bindir}/%{name}
    3.70 +%{_datadir}/%{name}
    3.71 +%{_datadir}/pixmaps/twinkle.png
    3.72 +%{_datadir}/applications/twinkle.desktop
    3.73 +

mercurial