self-build-minidlna-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. # Basic Information
  2. %define pkgname minidlna
  3. %define name self-build-%{pkgname}
  4. %define version 1.2.1
  5. %define release 3%{?_dist_release}
  6. %define sourceurl0 http://sourceforge.net/projects/%{pkgname}/files/%{pkgname}/%{version}/%{pkgname}-%{version}.tar.gz
  7. Name: %{name}
  8. Version: %{version}
  9. Release: %{release}
  10. # COPYING などを参照して License を修正してください。
  11. License: GPLv2+
  12. # /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。
  13. Group: Restricted Software
  14. Source0: %{pkgname}-vl.spec
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildArch: noarch
  17. Vendor: Project Vine
  18. Distribution: Vine Linux
  19. Packager: Shirow HIGA, iwaim
  20. Summary: Package to automatically build %{pkgname} rpm package
  21. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  22. Obsoletes: minidlna < %{version}
  23. Obsoletes: self-build-minidlna < %{version}
  24. # Dependency
  25. # 以下に依存関係を記述してください 。
  26. Requires(post): self-build-setup >= 0.9.9
  27. Requires(post): libuuid-devel
  28. Requires(post): sqlite3-devel
  29. Requires(post): libvorbis-devel
  30. Requires(post): flac-devel
  31. Requires(post): libid3tag-devel
  32. Requires(post): libjpeg-turbo-devel
  33. Requires(post): libexif-devel
  34. Requires(post): gettext-devel
  35. Requires(post): self-build-ffmpeg
  36. Requires(post): self-build-ffmpegthumbnailer
  37. #追加のソースファイル
  38. Source1: minidlna.init.d.script
  39. Source2: minidlna.icons.c.custom
  40. #Source3: minidlna_configure_v113.patch
  41. #Source4: minidlna_make_v116.patch
  42. Source5: minidlna_video_thumbnail_v121.patch
  43. #Source6: minidlna_bravia_v116.patch
  44. %description
  45. MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
  46. compliant with DLNA/UPnP-AV clients.
  47. The minidlna daemon serves media files (music, pictures, and video) to
  48. clients on your network. Example clients include applications such as
  49. Totem and XBMC, and devices such as portable media players, smartphones,
  50. and televisions.
  51. [Note]
  52. This package requires many other packages to compile
  53. targetsoftware. So it consume more disk space than usual.
  54. Also installation takes logner time because of compilation.
  55. (This will take a few minutes to quarter or half of an hour,
  56. depends on building environment)
  57. [About self-build package]
  58. For some kind of software, distributing of binary package
  59. may viorate the patent or law. Therefore we chose self-build
  60. packge, create binary package on your machine, for such kind
  61. of softwares instead of distributing binary package.
  62. Please obey the national law when you use the created binary
  63. packages. And if you want to use the softwares using patented
  64. thechnology, it may be required to get a permission, make an
  65. agreement or purchas a license. Please consider it with your
  66. purpose or way of use and take appropriate action.
  67. #%description -l ja
  68. #ここに日本語で詳細を記述してください。
  69. %prep
  70. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  71. %install
  72. %{__rm} -rf ${RPM_BUILD_ROOT}
  73. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  74. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  75. %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  76. %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  77. #%{__install} -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  78. #%{__install} -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  79. %{__install} -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  80. #%{__install} -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  81. %clean
  82. %{__rm} -rf ${RPM_BUILD_ROOT}
  83. %posttrans
  84. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl0} 34000
  85. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release}
  86. %files
  87. %defattr(-,root,root)
  88. %{_datadir}/%{name}
  89. %changelog
  90. * Sat Jul 28 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 1.2.1-3
  91. - add Packager
  92. - update Requires(post)
  93. - update init.d script (Source1)
  94. * Tue Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> 1.2.1-2
  95. - Rebuild with ffmpeg 4.0
  96. * Fri Sep 15 2017 Shirow HIGA <shirowxxx@gmail.com> 1.2.1-1
  97. - new upstream release 1.2.1
  98. - Update Source5 (minidlna_video_thumbnail_v120.patch -> minidlna_video_thumbnail_v121.patch)
  99. * Fri May 26 2017 Shirow HIGA <shirowxxx@gmail.com> 1.2.0-1
  100. - new upstream release 1.2.0
  101. - Update Source5 (minidlna_video_thumbnail_v116.patch -> minidlna_video_thumbnail_v120.patch)
  102. * Sun Jan 22 2017 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-3
  103. - Remove Source3 (minidlna_configure_v113.patch)
  104. - Remove Source4 (minidlna_make_v116.patch)
  105. - Remove Source6 (minidlna_bravia_v116.patch)
  106. * Mon Sep 19 2016 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-2
  107. - add new Source6 (minidlna_bravia_v116.patch)
  108. * Mon Sep 12 2016 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-1
  109. - new upstream release 1.1.6
  110. * Mon Sep 14 2015 Shirow HIGA <shirowxxx@gmail.com> 1.1.5-1
  111. - new upstream release 1.1.5
  112. * Thu Jan 15 2015 Shirow HIGA <shirowxxx@gmail.com> 1.1.4-1
  113. - initial build for Vine Linux