2011-04-26 13:25:32 +02:00
|
|
|
Name: skype
|
|
|
|
Version: @skypever@
|
|
|
|
Release: 2@distroext@
|
|
|
|
Epoch: 1
|
|
|
|
Summary: An Internet voice and video communication software
|
|
|
|
Group: Graphical Desktop/Applications/Internet
|
|
|
|
Vendor: @vendor@
|
|
|
|
Distribution: @distribution@
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2011-08-07 19:43:15 +02:00
|
|
|
URL: http://www.skype.com
|
2011-04-26 13:25:32 +02:00
|
|
|
Source: LICENSE
|
|
|
|
License: Non Distributable
|
|
|
|
BuildPrereq: wget
|
|
|
|
BuildPrereq: /usr/bin/tempfile
|
|
|
|
# NOTE: requires the backward compatible version of the libstdc++ library
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
An Internet voice and video communication software.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -c -n %{name}-%{version} -D -T
|
|
|
|
|
|
|
|
# don't strip files to prevent breaking internal binary CRC ckeck
|
|
|
|
%define __os_install_post /usr/lib/rpm/brp-infodir
|
|
|
|
|
|
|
|
[ -r /etc/sysconfig/@sysconfigfile@ ] || exit 1
|
|
|
|
. /etc/sysconfig/@sysconfigfile@
|
|
|
|
|
|
|
|
[ "${SKYPE_PCK}" ] && \
|
|
|
|
SKYPE_PCK_DEST=${SKYPE_PCK} ||
|
|
|
|
SKYPE_PCK_DEST=skype-latest.tar.bz2
|
|
|
|
[ "${SKYPE_URL}" ] || \
|
|
|
|
SKYPE_URL="http://www.skype.com/go/getskype-linux-dynamic"
|
|
|
|
|
|
|
|
tmpdir=$(mktemp -q -d -t skype.XXXXXXXX)
|
|
|
|
[ $? -eq 0 ] || exit 1
|
|
|
|
|
|
|
|
wget -nv --timeout=10 --tries=2 \
|
|
|
|
${SKYPE_URL}${SKYPE_PCK} -P ${tmpdir}
|
|
|
|
|
|
|
|
SKYPE_ARCHIVE="`ls ${tmpdir}/skype-*`"
|
|
|
|
[ -f ${SKYPE_ARCHIVE} ] || exit 1
|
|
|
|
|
|
|
|
if [ `echo ${SKYPE_ARCHIVE} | grep "tar.bz2$"` ]; then
|
|
|
|
tar xjf ${SKYPE_ARCHIVE} --strip-components=1
|
|
|
|
else
|
|
|
|
tar xzf ${SKYPE_ARCHIVE} --strip-components=1
|
|
|
|
fi
|
|
|
|
|
|
|
|
%build -q
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
install -D skype \
|
|
|
|
%{buildroot}%{_bindir}/skype
|
|
|
|
install -D skype.desktop \
|
|
|
|
%{buildroot}%{_datadir}/applications/skype.desktop
|
|
|
|
install -D icons/SkypeBlue_48x48.png \
|
|
|
|
%{buildroot}%{_datadir}/icons/skype.png
|
|
|
|
install -D icons/SkypeBlue_48x48.png \
|
|
|
|
%{buildroot}%{_datadir}/pixmaps/skype.png
|
|
|
|
install -d %{buildroot}%{_datadir}/skype
|
|
|
|
cp -a avatars lang sounds %{buildroot}%{_datadir}/skype/
|
|
|
|
|
|
|
|
cp %{S:0} LICENSE
|
|
|
|
|
|
|
|
rm -fr ${tmpdir}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/skype
|
|
|
|
%{_datadir}/applications/skype.desktop
|
|
|
|
%{_datadir}/icons/skype.png
|
|
|
|
%{_datadir}/pixmaps/skype.png
|
|
|
|
%dir %{_datadir}/skype
|
|
|
|
%{_datadir}/skype/avatars/*.png
|
|
|
|
%{_datadir}/skype/lang/*
|
|
|
|
%{_datadir}/skype/sounds/*.wav
|
|
|
|
%doc LICENSE README
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Thu Sep 10 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 2-2mamba
|
|
|
|
- specfile fixed for 2.1.0.47
|
|
|
|
|
|
|
|
* Wed May 28 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.0.68-1mamba
|
|
|
|
- specfile creation
|