# License of this spec? -> http://sam.zoy.org/wtfpl/ # This is a crazy workaround hack. Use at your own risk. # I am not responsible for anything u've done on your computer # how to use this (assuming you are storing this in home) # yum install rpmdevtools # rpmdev-setuptree # cd ~/rpmbuild/SOURCES # wget http://download.skype.com/linux/skype_static-2.0.0.68-oss.tar.bz2 # cd ../SPECS # cp ~/skype_static-oss.spec . # rpmbuild -bb skype_static-oss.spec # ... wait ... wait ... wait # grab the generated RPM # rpm -ivh (the generated RPM) # enjoy~ Name: skype_static-oss Version: 2.0.0.68 Release: 1%{?dist} Summary: Statically compiled skype with OSS and PulseAudio hack Group: Applications/Internet License: Proprietary URL: http://www.skype.com/ Source0: http://download.skype.com/linux/skype_static-%{version}-oss.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: desktop-file-utils %description Skype ALSA doesnt respect the standard ALSA API which caused it to break with Pulseaudio. This package contain the statically compiled skype with OSS and a simple hack to make skype started with pulseaudio OSS DSP %prep %setup -q -n skype_static-%{version}-oss %build %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT/opt/skype_static-oss-%{version}/ $RPM_BUILD_ROOT/%{_bindir} cp -r * $RPM_BUILD_ROOT/opt/skype_static-oss-%{version}/ cat << EOF >> $RPM_BUILD_ROOT/%{_bindir}/skype #!/bin/sh cd /opt/skype_static-oss-%{version}/ if test -x /usr/bin/padsp ; then exec /usr/bin/padsp -n "Skype" -- ./skype "\$@" else exec ./skype "\$@" fi EOF mkdir -p $RPM_BUILD_ROOT/%{_datadir}/pixmaps/ ${RPM_BUILD_ROOT}%{_datadir}/applications cp avatars/Skype\ Aid.png $RPM_BUILD_ROOT/%{_datadir}/pixmaps/skype.png desktop-file-install --vendor="hacked" \ --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \ --delete-original \ skype.desktop %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %attr(755,root,root) %{_bindir}/skype /opt/skype_static-oss-%{version}/ %{_datadir}/applications/hacked-skype.desktop %{_datadir}/pixmaps/skype.png %changelog * Wed Apr 24 2008 KageSenshi 2.0.0.68 - initial hacked package, do wtf you want with this