self-build-ffmpegthumbnailer-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. # Basic Information
  2. %define pkgname ffmpegthumbnailer
  3. %define name self-build-%{pkgname}
  4. %define version 2.2.0
  5. %define release 3%{?_dist_release}
  6. #%define sourceurl0 http://gdurl.com/z9ne/download/%{pkgname}-%{version}.tar.gz
  7. %define sourceurl0 https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/ffmpegthumbnailer-%{version}.tar.bz2
  8. Name: %{name}
  9. Version: %{version}
  10. Release: %{release}
  11. # COPYING などを参照して License を修正してください。
  12. License: GPLv2+
  13. # /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。
  14. Group: Restricted Software
  15. Source0: %{pkgname}-vl.spec
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. BuildArch: noarch
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: Shirow HIGA, iwaim
  21. Summary: Package to automatically build %{pkgname} rpm package
  22. Summary(ja): %{pkgname} の rpm パッケージを自動作成するパッケージ
  23. Obsoletes: ffmpegthumbnailer < %{version}
  24. Obsoletes: ffmpegthumbnailer-devel < %{version}
  25. Obsoletes: self-build-ffmpegthumbnailer < %{version}
  26. # Dependency
  27. # 以下に依存関係を記述してください 。
  28. Requires(post): self-build-setup >= 0.9.9
  29. Requires(post): libpng-devel
  30. Requires(post): libjpeg-turbo-devel
  31. Requires(post): chrpath
  32. Requires(post): cmake >= 2.8.5
  33. Requires(post): automake
  34. Requires(post): autoconf
  35. Requires(post): self-build-ffmpeg >= 2.3
  36. #追加のソースファイル
  37. #追加のパッチファイル
  38. %description
  39. This video thumbnailer can be used to create thumbnails for your video files.
  40. [Note]
  41. This package requires many other packages to compile
  42. targetsoftware. So it consume more disk space than usual.
  43. Also installation takes logner time because of compilation.
  44. (This will take a few minutes to quarter or half of an hour,
  45. depends on building environment)
  46. [About self-build package]
  47. For some kind of software, distributing of binary package
  48. may viorate the patent or law. Therefore we chose self-build
  49. packge, create binary package on your machine, for such kind
  50. of softwares instead of distributing binary package.
  51. Please obey the national law when you use the created binary
  52. packages. And if you want to use the softwares using patented
  53. thechnology, it may be required to get a permission, make an
  54. agreement or purchas a license. Please consider it with your
  55. purpose or way of use and take appropriate action.
  56. #%description -l ja
  57. #ここに日本語で詳細を記述してください。
  58. %prep
  59. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  60. %install
  61. %{__rm} -rf ${RPM_BUILD_ROOT}
  62. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  63. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  64. %clean
  65. %{__rm} -rf ${RPM_BUILD_ROOT}
  66. %posttrans
  67. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl0} 9500
  68. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
  69. %{pkgname}-devel-%{version}-%{release}
  70. %files
  71. %defattr(-,root,root)
  72. %{_datadir}/%{name}
  73. %changelog
  74. * Sun Jun 17 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.0-3
  75. - add Packager
  76. - update Requires(post)
  77. * Tue Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2
  78. - Rebuild with ffmpeg 4.0
  79. * Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1
  80. - new upstream release
  81. * Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1
  82. - new upstream release
  83. * Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1
  84. - new upstream release
  85. * Sat Nov 7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1
  86. - new upstream release
  87. * Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1
  88. - new upstream release
  89. - update Source0
  90. - change for URL (https://github.com/dirkvdb/ffmpegthumbnailer)
  91. * Thu Jan 15 2015 Shirow HIGA <shirowxxx@gmail.com> 2.0.9-1
  92. - initial build for Vine Linux