The new skype-4.3.0.37 is out. Build your own rpm for Fedora 20

Cristian Sava csava at central.ucv.ro
Fri Jun 20 10:28:13 UTC 2014


Hi all,

For those of you wanting skype.rpm for F20:
1) Install the rpm building environment as shown here:
http://fedoraproject.org/wiki/How_to_create_an_RPM_package#SPEC_example

# yum install @development-tools
# yum install fedora-packager
# /usr/sbin/useradd makerpm
# usermod -a -G mock makerpm
# passwd makerpm
$ rpmdev-setuptree

2) Go to http://www.skype.com/ro/download-skype/skype-for-computer/
and chose "Dynamic" and download skype-4.3.0.37.tar.bz2 to
~/rpmbuild/SOURCES directory

3) In the ~/rpmbuild/SOURCES make the file skype.desktop with this
content:

[Desktop Entry]
Name=Skype
Comment=Skype Internet Telephony
Exec=env PULSE_LATENCY_MSEC=60 skype %U
Icon=skype.png
Terminal=false
Type=Application
Encoding=UTF-8
Categories=Network;Application;
MimeType=x-scheme-handler/skype;
X-KDE-Protocols=skype

4) In ~/rpmbuild/SPECS make skype.spec with this content:

# skype.spec for skype-4.3.0.37 (x32)
#
# Build with: rpmbuild -ba --target=i686 skype.spec
#
# Original skype.spec for 4.2.0.11
# https://github.com/mopsfelder/skype-rpm/blob/master/skype.spec

#%global debug_package %{nil}

Name: skype
Version: 4.3.0.37
Release: 1%{?dist}
Summary: Skype is a free Internet telephony from Microsoft

License: Commercial
URL: http://www.skype.com/products/skype/linux/
Source0: %{name}-%{version}.tar.bz2

Requires: alsa-lib
Requires: glibc
Requires: libgcc
Requires: libpng
Requires: libX11
Requires: libXext
Requires: libXScrnSaver
Requires: libXv
Requires: libstdc++
Requires: qt >= 4.6
Requires: qt-x11
Requires: qtwebkit

#ExcludeArch: x86_64
#AutoReqProv: no

%description
Skype is a free Internet telephony from Microsoft.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
%{__mkdir_p} %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__mkdir_p} %{buildroot}%{_datadir}/applications
%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/dbus-1/system.d

%{__cp} %{name} %{buildroot}%{_bindir}
%{__cp} %{name}.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
%{__cp} %{name}.desktop %{buildroot}%{_datadir}/applications

# Resources
for DIR in avatars lang sounds; do
    %{__cp} -r $DIR %{buildroot}%{_datadir}/%{name}
done

# Icons
for SIZE in 16 24 32 48 64 96 128 256; do
    %{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x
${SIZE}/apps
    %{__cp} icons/SkypeBlue_${SIZE}x${SIZE}.png \
        %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x
${SIZE}/apps/%{name}.png
done

%files
%defattr(0755,root,root,0755)
%{_bindir}/%{name}
%defattr(0644,root,root,0755)
%{_sysconfdir}/dbus-1/system.d/%{name}.conf
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/avatars/*
%{_datadir}/%{name}/lang/*
%{_datadir}/%{name}/sounds/*
%{_datadir}/icons/*
%dir %{_datadir}/%{name}/avatars
%dir %{_datadir}/%{name}/lang
%dir %{_datadir}/%{name}/sounds
%dir %{_datadir}/%{name}
%doc LICENSE README third-party_attributions.txt

%changelog
* Fri Jun 20 2014 Cristian Sava <cristis53 at gmail.com> 4.3.0.37-1
- Version 4.3.0.37 (i686) for Fedora 20

* Thu Feb 26 2014 Cristian Sava <cristis53 at gmail.com> 4.2.0.13-1
- Version 4.2.0.13 (i686) for Fedora 20

* Wed Jul 31 2013 Murilo Opsfelder Araujo <mopsfelder at gmail.com>
4.2.0.11-1
- Initial version

5) Go to ~rpmbuild/SPECS and build your skype using
rpmbuild -ba --target=i686 skype.spec

You will get skype-4.3.0.37-1.fc20.i686.rpm in 
~/rpmbuild/RPMS/i686 directory

6) Install it with
sudo yum update skype-4.3.0.37-1.fc20.i686.rpm

That's all!
Good luck!

C. Sava




More information about the users mailing list