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