self-build-minidlna-vl.spec 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. # Basic Information
  2. %define pkgname minidlna
  3. %define name self-build-%{pkgname}
  4. %define version 1.2.1
  5. %define release 2%{?_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
  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-ffmpegthumbnailer
  36. #追加のソースファイル
  37. Source1: minidlna.init.d.script
  38. Source2: minidlna.icons.c.custom
  39. #Source3: minidlna_configure_v113.patch
  40. #Source4: minidlna_make_v116.patch
  41. Source5: minidlna_video_thumbnail_v121.patch
  42. #Source6: minidlna_bravia_v116.patch
  43. %description
  44. MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
  45. compliant with DLNA/UPnP-AV clients.
  46. The minidlna daemon serves media files (music, pictures, and video) to
  47. clients on your network. Example clients include applications such as
  48. Totem and XBMC, and devices such as portable media players, smartphones,
  49. and televisions.
  50. [Note] This package requires many other packages to compile targetsoftware. So it consume more disk space than usual.
  51. Also installation takes logner time because of compilation. (This will take a few minutes to quarter or half of an hour,
  52. depends on building environment)
  53. [About self-build package] For some kind of software, distributing of binary package
  54. may viorate the patent or law. Therefore we chose self-build
  55. packge, create binary package on your machine, for such kind
  56. of softwares instead of distributing binary package. Please obey the national law when you use the created binary
  57. packages. And if you want to use the softwares using patented
  58. thechnology, it may be required to get a permission, make an
  59. agreement or purchas a license. Please consider it with your
  60. purpose or way of use and take appropriate action.
  61. #%description -l ja
  62. #ここに日本語で詳細を記述してください。
  63. %prep
  64. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  65. %install
  66. %{__rm} -rf ${RPM_BUILD_ROOT}
  67. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  68. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  69. %{__install} -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  70. %{__install} -m 644 %{SOURCE2} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  71. #%{__install} -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  72. #%{__install} -m 644 %{SOURCE4} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  73. %{__install} -m 644 %{SOURCE5} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  74. #%{__install} -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  75. %clean
  76. %{__rm} -rf ${RPM_BUILD_ROOT}
  77. %posttrans
  78. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl0} 34000
  79. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release}
  80. %files
  81. %defattr(-,root,root)
  82. %{_datadir}/%{name}
  83. %changelog
  84. * Thu Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> 1.2.0-2
  85. - Rebuild with ffmpeg 4.0
  86. * Fri Sep 15 2017 Shirow HIGA <shirowxxx@gmail.com> 1.2.1-1
  87. - new upstream release 1.2.1
  88. - Update Source5 (minidlna_video_thumbnail_v120.patch -> minidlna_video_thumbnail_v121.patch)
  89. * Fri May 26 2017 Shirow HIGA <shirowxxx@gmail.com> 1.2.0-1
  90. - new upstream release 1.2.0
  91. - Update Source5 (minidlna_video_thumbnail_v116.patch -> minidlna_video_thumbnail_v120.patch)
  92. * Sun Jan 22 2017 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-3
  93. - Remove Source3 (minidlna_configure_v113.patch)
  94. - Remove Source4 (minidlna_make_v116.patch)
  95. - Remove Source6 (minidlna_bravia_v116.patch)
  96. * Mon Sep 19 2016 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-2
  97. - add new Source6 (minidlna_bravia_v116.patch)
  98. * Mon Sep 12 2016 Shirow HIGA <shirowxxx@gmail.com> 1.1.6-1
  99. - new upstream release 1.1.6
  100. * Mon Sep 14 2015 Shirow HIGA <shirowxxx@gmail.com> 1.1.5-1
  101. - new upstream release 1.1.5
  102. * Thu Jan 15 2015 Shirow HIGA <shirowxxx@gmail.com> 1.1.4-1
  103. - initial build for Vine Linux