[ATrpms-devel] Twinkle

Tako Schotanus quintesse at palacio-cristal.com
Thu May 18 23:20:12 CEST 2006


Ah yes, I forget the problem was not compiling the stuff, it was 
installing it.

So I got a nice package right now, but installing it gives the following 
error:

error: Failed dependencies:
        libresolv.so.2(GLIBC_PRIVATE) is needed by twinkle-0.7-tako1.i386

Any idea how to solve that? (Besides asking the author not to use that 
particular function in libresolv of course ;-)

Cheers,
 -Tako

Tako Schotanus wrote:
> Ok, done.
>
> First of all: there is no need anymore for the ccrtp package.... 
> because since FC5 it's part of the official repo :-)
>
> For the rest I changed the spec file as you suggested (using 
> desktop-utils and added changelog), taking out the BuildArch tag also 
> made it compile correctly so all in all it wasn't really difficult to do.
>
> I include the .spec and the .desktop file with this email.
>
> Let me know if there is anything else I need to do.
>
> Cheers,
> -Tako
>
>
>
> Axel Thimm wrote:
>> On Wed, May 10, 2006 at 12:46:55AM +0200, Tako Schotanus wrote:
>>  
>>> Never got any response to this, anything else I should do?
>>>     
>>
>> Sorry, I thought you were working on it still, here are my comments:
>>
>> o %exclude the /dir infofile
>> o add %changelog entries with what you changed
>> o Why only i586, is there assembly involved?
>> o You need to use desktop-utils to add the desktop file (check any
>>   other package on how to do it)
>>
>>  
>>> -Tako
>>>
>>> Tako Schotanus wrote:
>>>    
>>>> Axel Thimm wrote:
>>>>      
>>>>> On Mon, May 01, 2006 at 02:28:40AM +0200, Tako Schotanus wrote:
>>>>>  
>>>>>        
>>>>>> Any chance to add "twinkle" to the repository?
>>>>>>               
>>>>> I wouldn't mind, but I currently cannot offer any packaging time. But
>>>>> you can count on help from this list, that's what the list is 
>>>>> about :)
>>>>>
>>>>> I suggest to start attacking the dependencies first and if you get in
>>>>> trouble post the specfiles or upload them somewhere and post a 
>>>>> link to
>>>>> them.
>>>>>           
>>>> Well like I said, this dependency actually builds almost perfectly: 
>>>> http://www.xs4all.nl/%7Emfnboer/twinkle/download/ccrtp-1.3.6.tar.gz
>>>> Just that doing a "rpmbuild -ta" results in:
>>>>
>>>> RPM build errors:
>>>>    Installed (but unpackaged) file(s) found:
>>>>   /usr/share/info/dir
>>>>
>>>> Adding the line:
>>>>
>>>>   %{_infodir}/dir
>>>>
>>>> To the "%files devel" section solved that problem, but I'm not sure 
>>>> if it's the correct solution.
>>>> (Patched spec file included with this mail)
>>>>
>>>> -------------
>>>>
>>>> With twinkle itself I have not been so successful.
>>>> First of all because only a twinkle.spec.in existed so I first had 
>>>> to run ./configure and re-tar the result before I could continue 
>>>> with "rpmbuild -ta", but again I'm not sure that was the best way 
>>>> to go.
>>>>
>>>> Next the spec file was made for SUSE so I had to make some changes 
>>>> to it. The "biggest" change I had to make seems to be the fact that 
>>>> SUSE has some kind of rpm-macro for creating desktop files. I have 
>>>> no idea if something like that exists for Redhat/Fedora so I added 
>>>> a manually created twinkle.desktop file to the tar ball.
>>>>
>>>> I also changed some dependencies because of package name 
>>>> differences between SUSE and Redhat/Fedora.
>>>> (Patched spec file and desktop file included with this mail)
>>>>
>>>> With these changes rpmbuild terminates successfully, it's just that 
>>>> when trying to install the resulting RPM I get the following error:
>>>>
>>>> error: Failed dependencies:
>>>>        libresolv.so.2(GLIBC_PRIVATE) is needed by 
>>>> twinkle-0.7-tako1.i586
>>>>
>>>> I know it has to do with the fact that twinkle uses some private 
>>>> functions from the libresolv library but I don't know what to do 
>>>> with it.
>>>> "nm twinkle | grep PRIVATE" gives me:
>>>>
>>>>         U __ns_get16@@GLIBC_PRIVATE
>>>>         U __ns_name_ntop@@GLIBC_PRIVATE
>>>>
>>>> So, if any more information is needed, just let me know.
>>>>
>>>>
>>>>
>>>>      
>>>>>  
>>>>>        
>>>>>> It's yet anotehr VoIP phone for KDE, but it has promise I think.
>>>>>>
>>>>>> The site is: http://www.twinklephone.com
>>>>>>
>>>>>> It has a couple of dependecies which can already be found in a 
>>>>>> repository somewhere:
>>>>>>
>>>>>> - commoncpp2 
>>>>>> <http://www.xs4all.nl/%7Emfnboer/twinkle/download/commoncpp2-1.3.21.tar.gz> 
>>>>>>
>>>>>> - qt
>>>>>> - libsndfile
>>>>>> - speex (optional)
>>>>>>
>>>>>> And adds one that I didn't find anywhere:
>>>>>>
>>>>>> - ccrtp (http://www.gnu.org/software/ccrtp/) 
>>>>>> <http://www.xs4all.nl/%7Emfnboer/twinkle/download/ccrtp-1.3.6.tar.gz> 
>>>>>>
>>>>>>
>>>>>> But the tar ball has a spec file which worked perfectly but for 
>>>>>> one tiny problem which was easy to fix.
>>>>>>
>>>>>> The tar ball for the program itself has a spec file for SUSE 
>>>>>> which was a bit more difficult to adjust and in the end I 
>>>>>> couldn't make it to work because of some GLIBC_PRIVATE reference 
>>>>>> when trying to install the resulting rpm.
>>>>>>
>>>>>>               
>>>>>           
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> Summary: "ccrtp" - a Common C++ class framework for RTP/RTCP
>>>> Name: ccrtp
>>>> Version: 1.3.6
>>>> Release: 1
>>>> Epoch: 0
>>>> License: GPL
>>>> Group: Development/Libraries
>>>> URL: http://www.gnu.org/software/ccrtp
>>>> Source: ftp://ftp.gnu.org/gnu/ccrtp/ccrtp-%{PACKAGE_VERSION}.tar.gz
>>>> BuildRoot: %{_tmppath}/rtp-root
>>>> Packager: David Sugar <dyfet at ostel.com>
>>>> Requires: commoncpp2 >= 1.1.0
>>>> BuildRequires: commoncpp2-devel
>>>> BuildRequires: doxygen
>>>> BuildRequires: info
>>>> BuildRequires: pkgconfig
>>>> BuildRequires: libstdc++-devel
>>>>
>>>> %package devel
>>>> Requires: %{name} = %{epoch}:%{version}-%{release}
>>>> Requires: commoncpp2-devel
>>>> Requires(post,postun): info
>>>> Group: Development/Libraries
>>>> Summary: headers and link libraries for ccrtp
>>>>
>>>> %description
>>>> ccRTP is a generic, extensible and efficient C++ framework for
>>>> developing applications based on the Real-Time Transport Protocol
>>>> (RTP) from the IETF. It is based on Common C++ and provides a full
>>>> RTP/RTCP stack for sending and receiving of realtime data by the use
>>>> of send and receive packet queues. ccRTP supports unicast,
>>>> multi-unicast and multicast, manages multiple sources, handles RTCP
>>>> automatically, supports different threading models and is generic as
>>>> for underlying network and transport protocols.
>>>>
>>>> %description devel
>>>> This package holds documentation, header files, and static link 
>>>> libraries
>>>> for building applications that use GNU ccRTP.
>>>>
>>>> %prep
>>>> %setup
>>>> %build
>>>> %configure
>>>> make %{?_smp_mflags} CXXFLAGS="-I%{_includedir}/cc++2 
>>>> $RPM_OPT_FLAGS" LDFLAGS="-s"
>>>>
>>>> %install
>>>> rm -fr %{buildroot}
>>>>
>>>> %makeinstall
>>>>
>>>> %clean
>>>> rm -fr %{buildroot}
>>>>
>>>> %files
>>>> #%exclude %{_libdir}/*.la
>>>> %defattr(-,root,root,-)
>>>> %doc AUTHORS COPYING COPYING.addendum README
>>>> %{_libdir}/libccrtp*.so.*
>>>>
>>>> %files devel
>>>> %defattr(-,root,root,-)
>>>> %doc doc/html/*.html doc/html/*.*g*
>>>> %{_libdir}/libccrtp*.a
>>>> %{_libdir}/libccrtp*.so
>>>> %{_libdir}/libccrtp*.la
>>>> %dir %{_includedir}/ccrtp
>>>> %{_includedir}/ccrtp/*.h
>>>> %{_infodir}/ccrtp*info*
>>>> %{_infodir}/dir
>>>> %{_libdir}/pkgconfig/libccrtp1.pc
>>>>
>>>> %post -p /sbin/ldconfig
>>>>
>>>> %post devel
>>>> /sbin/install-info %{_infodir}/ccrtp.info %{_infodir}/dir
>>>>
>>>> %postun -p /sbin/ldconfig
>>>>
>>>> %postun devel
>>>> /sbin/install-info --delete %{_infodir}/ccrtp.info %{_infodir}/dir
>>>>
>>>> %changelog
>>>> * Tue Jan 16 2004 David Sugar <dyfet[AT]ostel.com> 0:1.1.0-1
>>>> - "modernized" for more current RPM systems.
>>>>   
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> Summary:    A SIP Soft Phone
>>>> Name:        twinkle
>>>> Version:    0.7
>>>> Release:    tako1
>>>> License:    GPL
>>>> Group:        Productivity/Telephony/SIP/Clients
>>>> Source:        %{name}-%{version}.tar.gz
>>>> Prefix:        %{_prefix}
>>>> BuildArch:    i586
>>>> BuildRoot:    %{_tmppath}/making_of_%{name}_%{version}
>>>> Packager:    Tako Schotanus
>>>> URL:        http://www.twinklephone.com
>>>> Requires:    alsa-lib
>>>> Requires:    commoncpp2 >= 1.3.0 Requires:    ccrtp >= 1.3.4
>>>> Requires:    kdelibs >= 3.2.0
>>>> Requires:    libsndfile
>>>> Requires:    speex
>>>> BuildRequires:    alsa-lib-devel
>>>> BuildRequires:    qt-devel
>>>> #BuildRequires:    update-desktop-files
>>>> BuildRequires:  commoncpp2-devel
>>>> BuildRequires:  ccrtp-devel
>>>> BuildRequires:  kdelibs-devel
>>>> BuildRequires:    libsndfile-devel
>>>> BuildRequires:    speex-devel
>>>>
>>>> %description
>>>> Twinkle is a SIP based soft phone for making telephone calls
>>>> over IP networks.
>>>>
>>>> %prep
>>>>
>>>> %setup -q
>>>>
>>>> %build
>>>> autoreconf -fi
>>>> %configure
>>>> make
>>>>
>>>> %install
>>>> rm -rf %{buildroot}
>>>> %makeinstall
>>>> install -d 755 %{buildroot}%{_datadir}/pixmaps
>>>> install -m 644 src/gui/images/twinkle48.png 
>>>> %{buildroot}%{_datadir}/pixmaps/twinkle.png
>>>> install -d 755 %{buildroot}%{_datadir}/applications
>>>> install -m 644 twinkle.desktop 
>>>> %{buildroot}%{_datadir}/applications/twinkle.desktop
>>>> #%suse_update_desktop_file -c twinkle Twinkle "A SIP softphone" 
>>>> twinkle twinkle Network Telephony
>>>>
>>>> %clean
>>>> rm -rf %{buildroot}
>>>>
>>>> %files
>>>> %defattr(-, root, root)
>>>> %doc AUTHORS COPYING README ChangeLog
>>>> %{_bindir}/%{name}
>>>> %{_datadir}/%{name}
>>>> %{_datadir}/pixmaps/twinkle.png
>>>> %{_datadir}/applications/twinkle.desktop
>>>>
>>>>   
>>>> ------------------------------------------------------------------------ 
>>>>
>>>>
>>>> _______________________________________________
>>>> atrpms-devel mailing list
>>>> atrpms-devel at atrpms.net
>>>> http://lists.atrpms.net/mailman/listinfo/atrpms-devel
>>>>       
>>> _______________________________________________
>>> atrpms-devel mailing list
>>> atrpms-devel at atrpms.net
>>> http://lists.atrpms.net/mailman/listinfo/atrpms-devel
>>>     
>>
>>   
>
> ------------------------------------------------------------------------
>
> %define desktop_vendor atrpms
>
> Summary:	A SIP Soft Phone
> Name:		twinkle
> Version:	0.7
> Release:	tako1
> License:	GPL
> Group:		Productivity/Telephony/SIP/Clients
> Source0:	%{name}-%{version}.tar.gz
> Source1:	twinkle.desktop
> Prefix:		%{_prefix}
> #BuildArch:	i586
> BuildRoot:	%{_tmppath}/making_of_%{name}_%{version}
> Packager:	Tako Schotanus
> URL:		http://www.twinklephone.com
> Requires:	alsa-lib
> Requires:	commoncpp2 >= 1.3.0 
> Requires:	ccrtp >= 1.3.4
> Requires:	kdelibs >= 3.2.0
> Requires:	libsndfile
> Requires:	speex
> BuildRequires:	alsa-lib-devel
> BuildRequires:	qt-devel
> BuildRequires:	desktop-file-utils
> BuildRequires:  commoncpp2-devel
> BuildRequires:  ccrtp-devel
> BuildRequires:  kdelibs-devel
> BuildRequires:	libsndfile-devel
> BuildRequires:	speex-devel
>
> %description
> Twinkle is a SIP based soft phone for making telephone calls
> over IP networks.
>
> %prep
>
> %setup -q
>
> %build
> autoreconf -fi
> %configure
> make
>
> %install
> rm -rf %{buildroot}
> %makeinstall
> mkdir -p %{buildroot}%{_datadir}/pixmaps
> mkdir -p %{buildroot}%{_datadir}/applications
> install -p src/gui/images/twinkle48.png %{buildroot}%{_datadir}/pixmaps/twinkle.png
> #%suse_update_desktop_file -c twinkle Twinkle "A SIP softphone" twinkle twinkle Network Telephony
> desktop-file-install --vendor %{desktop_vendor} \
>   --dir %{buildroot}%{_datadir}/applications    \
>   --add-category X-Red-Hat-Extra                \
>   --add-category Application                    \
>   --add-category Network                        \
>   %{SOURCE1}
>
>
> %clean
> rm -rf %{buildroot}
>
> %files
> %defattr(-, root, root)
> %doc AUTHORS COPYING README ChangeLog
> %{_bindir}/%{name}
> %{_datadir}/%{name}
> %{_datadir}/pixmaps/twinkle.png
> %{_datadir}/applications/*twinkle.desktop
>
> %changelog
> * Thu May 18 2006 Tako Schotanus <quintesse[AT]palacio-cristal.com> 0:1.1.0-1
> - Porting spec file from SUSE to Fedora format:
> - Changed Requires entries to reflect Fedora package names
> - Added Packager
> - Added Source1 for twinkle.desktop file
> - Creating desktop files now uses desktop-utils
> - Removed BuildArch tag
> - Added desktop-vendor define
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> atrpms-devel mailing list
> atrpms-devel at atrpms.net
> http://lists.atrpms.net/mailman/listinfo/atrpms-devel




More information about the atrpms-devel mailing list