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

Revision 11752, 3.7 KB checked in by iwaim, 6 years ago (diff)

self-build-ffmpegthumbnailer: add spec files

Line 
1# Basic Information
2Name:           ffmpegthumbnailer
3Version:        2.2.0
4Release:        2%{?_dist_release}
5# COPYING  ‚È‚Ç‚ðŽQÆ‚µ‚Ä License ‚ðC³‚µ‚Ä‚­‚¾‚³‚¢B
6License:        GPLv2+
7# /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt ‚ðŽQÆ‚µ‚Ä Group ‚ðC³‚µ‚Ä‚­‚¾‚³‚¢B
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
18
19Summary:        Lightweight video thumbnailer that can be used by file managers
20#Summary(ja):   ‚±‚±‚É“ú–{Œê‚ÅŠT—v‚ð‹Lq‚µ‚Ä‚­‚¾‚³‚¢B
21
22# Dependency
23# ˆÈ‰º‚Ɉˑ¶ŠÖŒW‚ð‹Lq‚µ‚Ä‚­‚¾‚³‚¢ B
24BuildRequires:  ffmpeg-devel
25BuildRequires:  libpng-devel
26BuildRequires:  libjpeg-turbo-devel
27BuildRequires:  chrpath
28BuildRequires:  automake
29BuildRequires:  autoconf
30
31#’ljÁ‚̃\[ƒXƒtƒ@ƒCƒ‹
32
33#’ljÁ‚̃pƒbƒ`ƒtƒ@ƒCƒ‹
34
35%description
36This video thumbnailer can be used to create thumbnails for your video files.
37
38#%description -l ja
39#‚±‚±‚É“ú–{Œê‚ŏڍׂð‹Lq‚µ‚Ä‚­‚¾‚³‚¢B
40
41%package devel
42Summary:        Headers and libraries for building apps that use ffmpegthumbnailer
43Group:          Development/Libraries
44Requires:       %{name}%{?_isa} = %{version}-%{release}
45
46%description devel
47This video thumbnailer can be used to create thumbnails for your video files,
48development package.
49
50%prep
51%setup -q
52chmod -x README INSTALL COPYING AUTHORS
53
54%if "%{version}" >= "2.1.0"
55cmake   -DCMAKE_BUILD_TYPE=Release \
56        -DCMAKE_INSTALL_BINDIR=%{_bindir} \
57        -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
58        -DCMAKE_INSTALL_MANDIR=%{_mandir} \
59        -DCMAKE_INSTALL_DATADIR=%{_datadir} \
60        -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
61        -DENABLE_GIO=ON \
62        -DENABLE_THUMBNAILER=ON
63%else
64cmake   -DCMAKE_BUILD_TYPE=Release \
65        -DCMAKE_INSTALL_PREFIX=%{_prefix} \
66        -DENABLE_GIO=ON \
67        -DENABLE_THUMBNAILER=ON
68%endif
69
70make %{?_smp_mflags}
71 
72%install
73rm -rf $RPM_BUILD_ROOT
74make install DESTDIR=$RPM_BUILD_ROOT
75chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/ffmpegthumbnailer
76find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
77
78%if "%{version}" >= "2.1.0"
79%else
80mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
81mv $RPM_BUILD_ROOT/usr/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
82%endif
83
84%clean
85rm -rf $RPM_BUILD_ROOT
86
87%post -p /sbin/ldconfig
88%postun -p /sbin/ldconfig
89
90%files
91%defattr(-,root,root,-)
92%doc README COPYING AUTHORS
93%{_bindir}/ffmpegthumbnailer
94%{_libdir}/libffmpegthumbnailer.so.4*
95%{_mandir}/man1/ffmpegthumbnailer.1.gz
96# gnome thumbnailer registration
97%dir %{_datadir}/thumbnailers
98%{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer
99
100%files devel
101%defattr(-,root,root,-)
102%{_libdir}/libffmpegthumbnailer.so
103%{_libdir}/pkgconfig/libffmpegthumbnailer.pc
104%{_includedir}/libffmpegthumbnailer/
105
106
107%changelog
108* Thu Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2
109- Rebuild with ffmpeg 4.0
110* Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1
111- new upstream release
112* Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1
113- new upstream release
114* Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1
115- new upstream release
116* Sat Nov  7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1
117- new upstream release
118* Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1
119- new upstream release
120- update Source0
121- change for URL (https://github.com/dirkvdb/ffmpegthumbnailer)
122* Mon Jan 12 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.9-1
123- initial build for Vine Linux
Note: See TracBrowser for help on using the repository browser.