ffmpegthumbnailer-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. # Basic Information
  2. Name: ffmpegthumbnailer
  3. Version: 2.2.0
  4. Release: 3%{?_dist_release}
  5. # COPYING などを参照して License を修正してください。
  6. License: GPLv2+
  7. # /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。
  8. Group: Applications/Multimedia
  9. #URL: http://code.google.com/p/ffmpegthumbnailer/
  10. URL: https://github.com/dirkvdb/ffmpegthumbnailer
  11. #Source0: http://gdurl.com/z9ne/download/ffmpegthumbnailer-%{version}.tar.gz
  12. Source0: https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/ffmpegthumbnailer-%{version}.tar.bz2
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. Packager: Shirow HIGA, iwaim
  17. Summary: Lightweight video thumbnailer that can be used by file managers
  18. #Summary(ja): ここに日本語で概要を記述してください。
  19. # Dependency
  20. # 以下に依存関係を記述してください 。
  21. BuildRequires: libpng-devel
  22. BuildRequires: libjpeg-turbo-devel
  23. BuildRequires: chrpath
  24. BuildRequires: cmake >= 2.8.5
  25. BuildRequires: automake
  26. BuildRequires: autoconf
  27. ## *-devel pacages provided by other self-build-* should only be listed
  28. ## in self-build-%{name}.spec
  29. #BuildRequires: ffmpeg-devel >= 2.3
  30. #追加のソースファイル
  31. #追加のパッチファイル
  32. %description
  33. This video thumbnailer can be used to create thumbnails for your video files.
  34. #%description -l ja
  35. #ここに日本語で詳細を記述してください。
  36. %package devel
  37. Summary: Headers and libraries for building apps that use ffmpegthumbnailer
  38. Group: Development/Libraries
  39. Requires: %{name}%{?_isa} = %{version}-%{release}
  40. %description devel
  41. This video thumbnailer can be used to create thumbnails for your video files,
  42. development package.
  43. %prep
  44. %setup -q
  45. chmod -x README INSTALL COPYING AUTHORS
  46. %if "%{version}" >= "2.1.0"
  47. cmake -DCMAKE_BUILD_TYPE=Release \
  48. -DCMAKE_INSTALL_BINDIR=%{_bindir} \
  49. -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
  50. -DCMAKE_INSTALL_MANDIR=%{_mandir} \
  51. -DCMAKE_INSTALL_DATADIR=%{_datadir} \
  52. -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
  53. -DENABLE_GIO=ON \
  54. -DENABLE_THUMBNAILER=ON
  55. %else
  56. cmake -DCMAKE_BUILD_TYPE=Release \
  57. -DCMAKE_INSTALL_PREFIX=%{_prefix} \
  58. -DENABLE_GIO=ON \
  59. -DENABLE_THUMBNAILER=ON
  60. %endif
  61. make %{?_smp_mflags}
  62. %install
  63. rm -rf $RPM_BUILD_ROOT
  64. make install DESTDIR=$RPM_BUILD_ROOT
  65. chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/ffmpegthumbnailer
  66. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  67. %if "%{version}" < "2.1.0"
  68. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  69. mv $RPM_BUILD_ROOT/usr/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
  70. %endif
  71. %clean
  72. rm -rf $RPM_BUILD_ROOT
  73. %post -p /sbin/ldconfig
  74. %postun -p /sbin/ldconfig
  75. %files
  76. %defattr(-,root,root,-)
  77. %doc README COPYING AUTHORS
  78. %{_bindir}/ffmpegthumbnailer
  79. %{_libdir}/libffmpegthumbnailer.so.4*
  80. %{_mandir}/man1/ffmpegthumbnailer.1.gz
  81. # gnome thumbnailer registration
  82. %dir %{_datadir}/thumbnailers
  83. %{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer
  84. %files devel
  85. %defattr(-,root,root,-)
  86. %{_libdir}/libffmpegthumbnailer.so
  87. %{_libdir}/pkgconfig/libffmpegthumbnailer.pc
  88. %{_includedir}/libffmpegthumbnailer/
  89. %changelog
  90. * Sun Jun 17 2018 IWAI, Masaharu <iwaim.sub@gmail.com> 2.2.0-3
  91. - add Packager
  92. - update BuildRequires
  93. * Tue Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2
  94. - Rebuild with ffmpeg 4.0
  95. * Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1
  96. - new upstream release
  97. * Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1
  98. - new upstream release
  99. * Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1
  100. - new upstream release
  101. * Sat Nov 7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1
  102. - new upstream release
  103. * Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1
  104. - new upstream release
  105. - update Source0
  106. - change for URL (https://github.com/dirkvdb/ffmpegthumbnailer)
  107. * Mon Jan 12 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.9-1
  108. - initial build for Vine Linux