self-build-ffmpegthumbnailer-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. # Basic Information
  2. %define pkgname ffmpegthumbnailer
  3. %define name self-build-%{pkgname}
  4. %define version 2.2.0
  5. %define release 2%{?_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
  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): automake
  33. Requires(post): autoconf
  34. Requires(post): self-build-ffmpeg
  35. #追加のソースファイル
  36. #追加のパッチファイル
  37. %description
  38. This video thumbnailer can be used to create thumbnails for your video files.
  39. [Note] This package requires many other packages to compile targetsoftware. So it consume more disk space than usual.
  40. Also installation takes logner time because of compilation. (This will take a few minutes to quarter or half of an hour,
  41. depends on building environment)
  42. [About self-build package] For some kind of software, distributing of binary package
  43. may viorate the patent or law. Therefore we chose self-build
  44. packge, create binary package on your machine, for such kind
  45. of softwares instead of distributing binary package. Please obey the national law when you use the created binary
  46. packages. And if you want to use the softwares using patented
  47. thechnology, it may be required to get a permission, make an
  48. agreement or purchas a license. Please consider it with your
  49. purpose or way of use and take appropriate action.
  50. #%description -l ja
  51. #ここに日本語で詳細を記述してください。
  52. %prep
  53. [ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
  54. %install
  55. %{__rm} -rf ${RPM_BUILD_ROOT}
  56. %{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  57. %{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
  58. %clean
  59. %{__rm} -rf ${RPM_BUILD_ROOT}
  60. %posttrans
  61. /usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl0} 9500
  62. /usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
  63. %{pkgname}-devel-%{version}-%{release}
  64. %files
  65. %defattr(-,root,root)
  66. %{_datadir}/%{name}
  67. %changelog
  68. * Thu Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2
  69. - Rebuild with ffmpeg 4.0
  70. * Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1
  71. - new upstream release
  72. * Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1
  73. - new upstream release
  74. * Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1
  75. - new upstream release
  76. * Sat Nov 7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1
  77. - new upstream release
  78. * Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1
  79. - new upstream release
  80. - update Source0
  81. - change for URL (https://github.com/dirkvdb/ffmpegthumbnailer)
  82. * Thu Jan 15 2015 Shirow HIGA <shirowxxx@gmail.com> 2.0.9-1
  83. - initial build for Vine Linux