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