Александр Кириллов
2011-03-22 11:58:55 UTC
While instructions on centos wiki work well you still have to symlink or
copy 2 more files
to get skype into gnome menus. The attached spec should also provide for
pulling in i386
dependencies on a 64-bit platform.
AK
-------------- next part --------------
%define debug_package %{nil}
%define __strip /bin/true
Name: skype
Version: 2.1.0.81
Release: 2%{?dist}
Summary: Skype is free Internet telephony that just works
Group: Applications/Internet
License: Commercial
URL: http://www.skype.com
Source0: http://download.skype.com/linux/%{name}_static-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: i586
Requires: libglib-2.0.so.0
Requires: qt4 >= 4.2
Requires: libQtCore.so.4
Requires: libz.so.1
Requires: libasound.so.2
Requires: libX11.so.6
Requires: libXv.so.1
Requires: libXss.so.1
Provides: %{name} = %{version}-%{release}
%description
Skype - Take a deep breath
Skype is a little piece of software that lets you make free calls
to anyone else on Skype, anywhere in the world. And even though
the calls are free, they are really excellent quality.
* Make free Skype-to-Skype calls to anyone else, anywhere in the world.
* Call ordinary phones and mobiles at pretty cheap rates per minute.
* Group chat with up to 100 people or conference call with up to nine others.
* See who you are talking to with free video calls.
* Free to download.
%prep
%setup -qn %{name}_static-%{version}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
cp -a ./* %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/%{name}.desktop %{buildroot}%{_datadir}/applications
cp %{buildroot}%{_datadir}/%{name}/icons/SkypeBlue_32x32.png %{buildroot}%{_datadir}/icons/%{name}.png
mv %{buildroot}%{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}
mv %{buildroot}%{_datadir}/%{name}/%{name}.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
rm -f %{buildroot}%{_datadir}/%{name}/{LICENSE,README}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.png
%{_bindir}/%{name}
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
%changelog
* Tue Mar 22 2011 Alexander Kirillov <nevis2us at infoline.su> 2.1.0.81-2
- Fixed dependencies
* Mon Mar 21 2011 Alexander Kirillov <nevis2us at infoline.su> 2.1.0.81-1
- Initial spec file for EL5
copy 2 more files
to get skype into gnome menus. The attached spec should also provide for
pulling in i386
dependencies on a 64-bit platform.
AK
-------------- next part --------------
%define debug_package %{nil}
%define __strip /bin/true
Name: skype
Version: 2.1.0.81
Release: 2%{?dist}
Summary: Skype is free Internet telephony that just works
Group: Applications/Internet
License: Commercial
URL: http://www.skype.com
Source0: http://download.skype.com/linux/%{name}_static-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildArch: i586
Requires: libglib-2.0.so.0
Requires: qt4 >= 4.2
Requires: libQtCore.so.4
Requires: libz.so.1
Requires: libasound.so.2
Requires: libX11.so.6
Requires: libXv.so.1
Requires: libXss.so.1
Provides: %{name} = %{version}-%{release}
%description
Skype - Take a deep breath
Skype is a little piece of software that lets you make free calls
to anyone else on Skype, anywhere in the world. And even though
the calls are free, they are really excellent quality.
* Make free Skype-to-Skype calls to anyone else, anywhere in the world.
* Call ordinary phones and mobiles at pretty cheap rates per minute.
* Group chat with up to 100 people or conference call with up to nine others.
* See who you are talking to with free video calls.
* Free to download.
%prep
%setup -qn %{name}_static-%{version}
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
cp -a ./* %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/%{name}.desktop %{buildroot}%{_datadir}/applications
cp %{buildroot}%{_datadir}/%{name}/icons/SkypeBlue_32x32.png %{buildroot}%{_datadir}/icons/%{name}.png
mv %{buildroot}%{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}
mv %{buildroot}%{_datadir}/%{name}/%{name}.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d
rm -f %{buildroot}%{_datadir}/%{name}/{LICENSE,README}
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.png
%{_bindir}/%{name}
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
%changelog
* Tue Mar 22 2011 Alexander Kirillov <nevis2us at infoline.su> 2.1.0.81-2
- Fixed dependencies
* Mon Mar 21 2011 Alexander Kirillov <nevis2us at infoline.su> 2.1.0.81-1
- Initial spec file for EL5