Browse Source

import self-build-Skype

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@6190 ec354946-7b23-47d6-9f5a-488ba84defc7
daisuke 12 years ago
parent
commit
9ad4a9bb54

+ 92 - 0
nonfree/self-build-Skype/Skype-vl.spec

@@ -0,0 +1,92 @@
+# -*- coding: utf-8 -*-
+
+# stop strip
+%define __spec_install_post /usr/lib/rpm/brp-compress || :
+
+Summary:	Skype Internet Telephony
+Summary(ja): 	Skype インターネット・テレフォニー
+Name:		Skype
+Version:	2.2.0.35
+Release: 	1%{?_dist_release}
+Source0:	http://download.skype.com/linux/skype_static-%{version}.tar.bz2
+Source1:	vine-skype.desktop
+
+License:	non-free
+Group:		Applications/Internet
+URL:		http://www.skype.com/
+
+BuildRequires(install,check): desktop-file-utils
+
+BuildRoot:    %{_tmppath}/%{name}-%{version}-root
+
+Distribution: Vine Linux
+Vendor:       Project Vine
+Packager:     iwaim
+
+%description
+Skype Internet Telephony
+
+%description -l ja
+Skype インターネット・テレフォニー
+
+
+%prep
+%setup -q -n skype_static-%{version}
+%{__cp} %{SOURCE1} .
+
+%install
+%{__rm} -rf %{buildroot}
+%{__mkdir_p} %{buildroot}%{_bindir}
+%{__mkdir_p} %{buildroot}%{_datadir}/skype
+%{__mkdir_p} %{buildroot}%{_datadir}/applications
+%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
+%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
+%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
+
+%{__install} -m 0755 skype %{buildroot}%{_bindir}
+
+%{_bindir}/desktop-file-install --dir=%{buildroot}%{_datadir}/applications vine-skype.desktop
+
+%{__install} -m 0644 icons/SkypeBlue_16x16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/skype.png
+%{__install} -m 0644 icons/SkypeBlue_32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/skype.png
+%{__install} -m 0644 icons/SkypeBlue_48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/skype.png
+
+%{__cp} -a sounds  %{buildroot}%{_datadir}/skype
+%{__cp} -a lang    %{buildroot}%{_datadir}/skype
+%{__cp} -a avatars %{buildroot}%{_datadir}/skype
+
+%check
+%{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/vine-skype.desktop
+
+%post
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+# recreate icon cache
+touch --no-create %{_datadir}/icons/hicolor || :
+[ -x %{_bindir}/gtk-update-icon-cache ] && \
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+%postun
+if [ -x %{_bindir}/update-desktop-database ] ; then
+%{_bindir}/update-desktop-database %{_datadir}/applications
+fi
+# recreate icon cache
+touch --no-create %{_datadir}/icons/hicolor || :
+[ -x %{_bindir}/gtk-update-icon-cache ] && \
+  %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc README LICENSE skype.conf
+%{_bindir}/skype
+%{_datadir}/applications/vine-skype.desktop
+%{_datadir}/icons/hicolor/*/apps/skype.png
+%{_datadir}/skype
+
+%changelog
+* Wed Jan  4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1
+- first release for Vine Linux

+ 96 - 0
nonfree/self-build-Skype/self-build-Skype-vl.spec

@@ -0,0 +1,96 @@
+%define pkgname Skype
+%define name	self-build-%{pkgname}
+%define ver	2.2.0.35
+%define rel	1
+
+%define sourceurl0	http://download.skype.com/linux/skype_static-%{version}.tar.bz2
+
+Summary:	Package to automatically build %{pkgname} rpm package
+Summary(ja): 	%{pkgname} の rpm パッケージを自動作成するパッケージ
+Name:		%{name}
+Version:	%{ver}
+Release: 	%{rel}%{?_dist_release}
+Source0:	%{pkgname}-vl.spec
+Source1:	vine-skype.desktop
+
+License:      	non-free
+Group:		Restricted Software
+
+##!! Requires(posttrans) not yet implemented. So we use (post) instead.
+Requires(post):		self-build-setup >= 0.9.9
+
+BuildArch:    noarch
+BuildRoot:    %{_tmppath}/%{name}-%{version}-root
+
+Distribution: Vine Linux
+Vendor:       Project Vine
+Packager:     iwaim
+
+%description
+Skype Internet Telephony
+
+If you install this package, it automaticaly downloads source
+code, compile it, and create rpm packages of %{pkgname}-%{version}.
+And the created rpm packages are automatically installed
+if installation is executed by apt-get command or synaptic
+package manager.
+
+[About self-build package]
+For some kind of software, distributing of binary package
+may viorate the patent or law. Therefore we chose self-build
+packge, create binary package on your machine, for such kind
+of softwares instead of distributing binary package.
+
+Please obey the national law when you use the created binary
+packages. And if you want to use the softwares using patented 
+thechnology, it may be required to get a permission, make an 
+agreement or purchas a license. Please consider it with your
+purpose or way of use and take appropriate action.
+
+%description -l ja
+Skype インターネット・テレフォニー
+
+このパッケージをインストールすると、自動的にソースコードを
+ダウンロードしてコンパイルし、%{pkgname}-%{version}
+の rpm パッケージを作成します。
+また apt-get コマンドや synaptic パッケージマネージャから実行
+した場合は、作成された rpm パッケージのインストールも自動的に
+行います。
+
+[self-build パッケージについて]
+ソフトウェアによってはバイナリパッケージの配布が特許や法律に
+違反する可能性があるものがあります。その為、このような問題が
+懸念されるソフトウェアについてはバイナリパッケージを直接配布
+せずに、ユーザの環境でバイナリを作成する self-build パッケー
+ジという方法を採っています。
+
+作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
+アのライセンス、および利用する国の各種法令に従ってください。
+また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
+センスの購入などが必要となる場合がありますので、利用する目的
+や形態に応じて各自で判断し適切な対応を取ってください。
+
+
+%prep
+[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
+
+%install
+%{__rm} -rf %{buildroot}
+%{__install} -d %{buildroot}%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE0} %{buildroot}%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec "%{sourceurl0}" 5000
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Wed Jan  4 2012 IWAI, Masaharu <iwai@alib.jp> 2.2.0.35-1
+- first release for Vine Linux
+

+ 10 - 0
nonfree/self-build-Skype/vine-skype..desktop

@@ -0,0 +1,10 @@
+[Desktop Entry]
+Name=Skype
+Comment=Skype Internet Telephony
+Comment[ja]=Skype インターネット・テレフォニー
+Exec=skype
+Icon=skype.png
+Terminal=0
+Type=Application
+Encoding=UTF-8
+Categories=Network;Application;