source: projects/specs/trunk/nonfree/self-build-ffmpegthumbnailer/ffmpegthumbnailer-vl.spec @ 11753

Revision 11753, 4.0 KB checked in by iwaim, 6 years ago (diff)

self-build-ffmpegthumbnailer 2.2.0-3

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