self-build-xbmc-vl.spec 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201
  1. %define pkgname xbmc
  2. %define name self-build-%{pkgname}
  3. %define sourceurl http://mirrors.xbmc.org/releases/source/%{pkgname}-%{version}.tar.gz
  4. Summary: Package to automatically build %{pkgname} rpm package
  5. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  6. Name: %{name}
  7. Version: 11.0
  8. Release: 5%{?_dist_release}
  9. Source0: %{pkgname}-vl.spec
  10. Source1: %{pkgname}.desktop
  11. Source2: %{pkgname}-%{version}-strings.xml
  12. Source3: %{pkgname}-%{version}-Confluence-strings.xml
  13. Source4: %{pkgname}-%{version}-default-locale.patch
  14. License: GPLv2+
  15. Group: Restricted Software
  16. Requires(post): self-build-setup >= 0.8
  17. # (build)requies of target package.
  18. Requires(post): lsb
  19. Requires(post): python-imaging
  20. Requires(post): pysqlite
  21. Requires(post): hicolor-icon-theme
  22. Requires(post): desktop-file-utils
  23. Requires(post): MySQL-devel
  24. Requires(post): SDL_image-devel
  25. Requires(post): SDL_mixer-devel
  26. Requires(post): alsa-lib-devel
  27. Requires(post): avahi-devel
  28. Requires(post): bluez-libs-devel
  29. Requires(post): bzip2-devel
  30. Requires(post): cmake
  31. Requires(post): curl-devel
  32. Requires(post): cvs
  33. Requires(post): dbus-devel
  34. Requires(post): desktop-file-utils
  35. Requires(post): enca-devel
  36. Requires(post): flac-devel
  37. Requires(post): fontconfig-devel
  38. Requires(post): fribidi-devel
  39. Requires(post): glew-devel
  40. Requires(post): gperf
  41. Requires(post): hal-devel
  42. Requires(post): jasper-devel
  43. Requires(post): libXinerama-devel
  44. Requires(post): libXmu-devel
  45. Requires(post): libXrandr-devel
  46. Requires(post): libXtst-devel
  47. Requires(post): libass-devel
  48. Requires(post): libboost-devel
  49. Requires(post): libcdio-devel
  50. Requires(post): expat-devel
  51. Requires(post): libjpeg-devel
  52. Requires(post): libmicrohttpd-devel
  53. Requires(post): libmms-devel
  54. Requires(post): libmodplug-devel
  55. Requires(post): libogg-devel
  56. Requires(post): libplist-devel
  57. Requires(post): libpng-devel
  58. Requires(post): libsamplerate-devel
  59. Requires(post): libsmbclient-devel
  60. Requires(post): libtiff-devel
  61. Requires(post): libudev-devel
  62. Requires(post): libvorbis-devel
  63. Requires(post): nasm
  64. Requires(post): openssl-devel
  65. Requires(post): lzo-devel
  66. Requires(post): pcre-devel
  67. Requires(post): pulseaudio-libs-devel
  68. Requires(post): python-devel
  69. Requires(post): sqlite3-devel
  70. Requires(post): unzip
  71. Requires(post): wavpack-devel
  72. Requires(post): yajl-devel
  73. Requires(post): zlib-devel
  74. Requires(post): self-build-faac
  75. Requires(post): self-build-faad2
  76. Requires(post): self-build-libmad
  77. Requires(post): self-build-libmpeg2
  78. Requires(post): libvdpau-devel
  79. Requires(post): yasm
  80. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  81. Packager: kazutaka, shaolin
  82. %description
  83. XBMC is an award-winning free and open source (GPL) software
  84. media player and entertainment hub for digital media.
  85. If you install this package, it automaticaly downloads source
  86. code ,compile it, and create rpm packages of %{pkgname}-%{version}.
  87. And the created rpm packages are automatically installed
  88. if installation is executed by apt-get command or synaptic
  89. package manager.
  90. [Note]
  91. This package requires many other packages to compile
  92. targetsoftware. So it consume more disk space than usual.
  93. Also installation takes logner time because of compilation.
  94. (This will take a few minutes to quarter or half of an hour,
  95. depends on building environment)
  96. [About self-build package]
  97. For some kind of software, distributing of binary package
  98. may viorate the patent or law. Therefore we chose self-build
  99. packge, create binary package on your machine, for such kind
  100. of softwares instead of distributing binary package.
  101. Please obey the national law when you use the created binary
  102. packages. And if you want to use the softwares using patented
  103. thechnology, it may be required to get a permission, make an
  104. agreement or purchas a license. Please consider it with your
  105. purpose or way of use and take appropriate action.
  106. %description -l ja
  107. XBMC はいくつもの賞を受賞したフリーでオープンソース (GPL) な、
  108. デジタルメディア向けのメディアプレイヤー/メディアセンターです。
  109. このパッケージをインストールすると、自動的にソースコードを
  110. ダウンロードしてコンパイルし、%{pkgname}-%{version} の rpm
  111. パッケージを作成します。
  112. また apt-get コマンドや synaptic パッケージマネージャから実行
  113. した場合は、作成された rpm パッケージのインストールも自動的に
  114. 行います。
  115. [注意]
  116. コンパイルに必要な多くの関連パッケージを要求するので通常より
  117. ディスクの領域を多く消費します。
  118. またインストール時にコンパイルを行うため、通常より時間がかか
  119. る場合があります。(環境にもよりますが数分から数十分程度)
  120. [self-build パッケージについて]
  121. ソフトウェアによってはバイナリパッケージの配布が特許や法律に
  122. 違反する可能性があるものがあります。その為、このような問題が
  123. 懸念されるソフトウェアについてはバイナリパッケージを直接配布
  124. せずに、ユーザの環境でバイナリを作成する self-build パッケー
  125. ジという方法を採っています。
  126. 作成されたバイナリパッケージの利用にあたっては、各ソフトウェ
  127. アのライセンス、および利用する国の各種法令に従ってください。
  128. また特許に関連するソフトウェアの場合、利用許諾や契約、ライ
  129. センスの購入などが必要となる場合がありますので、利用する目的
  130. や形態に応じて各自で判断し適切な対応を取ってください。
  131. %prep
  132. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  133. %install
  134. %{__rm} -rf %{buildroot}
  135. %{__install} -d %{buildroot}/%{_datadir}/%{name}
  136. %{__install} -m 644 %{SOURCE0} %{buildroot}/%{_datadir}/%{name}
  137. %{__install} -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/%{name}
  138. %{__install} -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/%{name}
  139. %{__install} -m 644 %{SOURCE3} %{buildroot}/%{_datadir}/%{name}
  140. %{__install} -m 644 %{SOURCE4} %{buildroot}/%{_datadir}/%{name}
  141. %clean
  142. %{__rm} -rf %{buildroot}
  143. %posttrans
  144. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl} 478000
  145. %files
  146. %defattr(-,root,root)
  147. %{_datadir}/%{name}
  148. %changelog
  149. * Fri Mar 30 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-5
  150. - fix silly typo in Source11
  151. * Thu Mar 29 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-4
  152. - Source11 and Source12 (Japanese strings) much updated
  153. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-3
  154. - update Packager
  155. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-2
  156. - update Source2 (Japanese strings)
  157. * Wed Mar 28 2012 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 11.0-1
  158. - new upstream release
  159. - add build depencencies for bluez-libs-devel, yajl-devel, yasm & python-devel
  160. * Fri Feb 04 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-3
  161. - delete build_vine5 macro: libvdpau is now available on 5.2
  162. * Thu Jan 27 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-2
  163. - add --disable-ccache option (<BTS:VineLinux:1100>)
  164. - update Source4 to change default timezone
  165. * Sun Jan 23 2011 Kazutaka HARADA <kazutaka@vinelinux.org> 10.0-1
  166. - initial build for Vine Linux