self-build-xbmc-vl.spec 9.4 KB

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