Mageia Bugzilla – Attachment 378 Details for
Bug 154
skype, p2p VoIP application
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
skype-installer.spec
skype-installer.spec (text/x-rpm-spec), 2.13 KB, created by
y mun
on 2011-05-10 16:28:07 CEST
(
hide
)
Description:
skype-installer.spec
Filename:
MIME Type:
Creator:
y mun
Created:
2011-05-10 16:28:07 CEST
Size:
2.13 KB
patch
obsolete
>%define name skype-installer >%define version 0.1 >%define release %mkrel 1 > >Summary: Desktop link to install Skype >Name: %{name} >Version: %{version} >Release: %{release} >License: GPL >Group: System/Configuration/Other >URL: http://www.mageia.org >BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot >Buildarch: noarch >Requires: wget >Requires: liblcms1 >Requires: libmng1 >Requires: libqtcore4 >Requires: libqtdbus4 >Requires: libqtnetwork4 >Requires: libqtgui4 >Requires: libqtsvg4 >Requires: libqtxml4 >Requires: libxscrnsaver1 >Requires: libxv1 >Requires: xterm > >%description >This is an icon for Skype installation. >Skype license does not allow distribution. >So, we don't. > >%build > >%install >rm -rf $RPM_BUILD_ROOT > >install -d -m 0755 %buildroot/%_datadir/applications/ >install -d -m 0755 %buildroot/usr/local/sbin/ > >cat > %buildroot/usr/local/sbin/skype-install << EOF >rm -rf /tmp/*skype* && cd /tmp >wget http://www.skype.com/go/getskype-linux-beta-dynamic >printf "\n\n\n\nEnter root password now for installation \n" >su -c 'rm -rf /opt/*skype* && tar xjvf *skype* && mv skype* /opt/skype && rm -rf *skype* && xdg-desktop-menu forceupdate --mode system' >printf "\n\n\nWhen Skype update is available, this item could be re-used\n\n" >sleep 5 ;printf "exit" >EOF > >cat > %buildroot/%_datadir/applications/skype-install.desktop << EOF >[Desktop Entry] >Encoding=UTF-8 >Icon=mageia >Name=Skype-Installation >Type=Application >Terminal=False >Exec=xterm -e /usr/local/sbin/skype-install >Categories=Network;X-MandrivaLinux-Internet;X-MandrivaLinux-CrossDesktop; >EOF > >cat > %buildroot/%_datadir/applications/skype.desktop << EOF >[Desktop Entry] >Name=Skype >Comment=Skype Internet Telephony >Exec=/opt/skype/skype >Icon=/opt/skype/icons/SkypeBlue_32x32.png >Terminal=0 >Type=Application >Encoding=UTF-8 >Categories=Network;X-MandrivaLinux-Internet;X-MandrivaLinux-CrossDesktop; >EOF > >%preun >rm -rf /opt/skype* > >%postun > >%clean >rm -rf $RPM_BUILD_ROOT > >%files >%defattr(-,root,root) >%_datadir/applications/* >%attr(755,root,root)/usr/local/sbin/skype-install > >%changelog >* Wed May 10 2011 nobody <none@nequilibriste.org> 1mga1 >- import skype-installer
%define name skype-installer %define version 0.1 %define release %mkrel 1 Summary: Desktop link to install Skype Name: %{name} Version: %{version} Release: %{release} License: GPL Group: System/Configuration/Other URL: http://www.mageia.org BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot Buildarch: noarch Requires: wget Requires: liblcms1 Requires: libmng1 Requires: libqtcore4 Requires: libqtdbus4 Requires: libqtnetwork4 Requires: libqtgui4 Requires: libqtsvg4 Requires: libqtxml4 Requires: libxscrnsaver1 Requires: libxv1 Requires: xterm %description This is an icon for Skype installation. Skype license does not allow distribution. So, we don't. %build %install rm -rf $RPM_BUILD_ROOT install -d -m 0755 %buildroot/%_datadir/applications/ install -d -m 0755 %buildroot/usr/local/sbin/ cat > %buildroot/usr/local/sbin/skype-install << EOF rm -rf /tmp/*skype* && cd /tmp wget http://www.skype.com/go/getskype-linux-beta-dynamic printf "\n\n\n\nEnter root password now for installation \n" su -c 'rm -rf /opt/*skype* && tar xjvf *skype* && mv skype* /opt/skype && rm -rf *skype* && xdg-desktop-menu forceupdate --mode system' printf "\n\n\nWhen Skype update is available, this item could be re-used\n\n" sleep 5 ;printf "exit" EOF cat > %buildroot/%_datadir/applications/skype-install.desktop << EOF [Desktop Entry] Encoding=UTF-8 Icon=mageia Name=Skype-Installation Type=Application Terminal=False Exec=xterm -e /usr/local/sbin/skype-install Categories=Network;X-MandrivaLinux-Internet;X-MandrivaLinux-CrossDesktop; EOF cat > %buildroot/%_datadir/applications/skype.desktop << EOF [Desktop Entry] Name=Skype Comment=Skype Internet Telephony Exec=/opt/skype/skype Icon=/opt/skype/icons/SkypeBlue_32x32.png Terminal=0 Type=Application Encoding=UTF-8 Categories=Network;X-MandrivaLinux-Internet;X-MandrivaLinux-CrossDesktop; EOF %preun rm -rf /opt/skype* %postun %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %_datadir/applications/* %attr(755,root,root)/usr/local/sbin/skype-install %changelog * Wed May 10 2011 nobody <none@nequilibriste.org> 1mga1 - import skype-installer
View Attachment As Raw
Actions:
View
Attachments on
bug 154
:
361
|
369
|
378
|
392
|
401
|
443
|
448
|
513
|
516
|
525
|
528
|
532
|
551
|
552
|
554
|
569
|
578
|
596
|
609
|
611