Browse Source

self-build-ffmpegthumbnailer: add spec files

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11752 ec354946-7b23-47d6-9f5a-488ba84defc7
iwaim 5 years ago
parent
commit
388dcd5708

+ 123 - 0
nonfree/self-build-ffmpegthumbnailer/ffmpegthumbnailer-vl.spec

@@ -0,0 +1,123 @@
+# Basic Information
+Name:           ffmpegthumbnailer
+Version:        2.2.0
+Release:        2%{?_dist_release}
+# COPYING  などを参照して License を修正してください。
+License:        GPLv2+
+# /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。
+Group:          Applications/Multimedia
+#URL:            http://code.google.com/p/ffmpegthumbnailer/
+URL:		https://github.com/dirkvdb/ffmpegthumbnailer
+#Source0:        http://gdurl.com/z9ne/download/ffmpegthumbnailer-%{version}.tar.gz
+Source0:	https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/ffmpegthumbnailer-%{version}.tar.bz2
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       Shirow HIGA
+
+Summary:        Lightweight video thumbnailer that can be used by file managers
+#Summary(ja):   ここに日本語で概要を記述してください。
+
+# Dependency
+# 以下に依存関係を記述してください 。
+BuildRequires:  ffmpeg-devel
+BuildRequires:	libpng-devel
+BuildRequires:	libjpeg-turbo-devel
+BuildRequires:  chrpath
+BuildRequires:	automake
+BuildRequires:	autoconf
+
+#追加のソースファイル
+
+#追加のパッチファイル
+
+%description
+This video thumbnailer can be used to create thumbnails for your video files.
+
+#%description -l ja
+#ここに日本語で詳細を記述してください。
+
+%package devel
+Summary:        Headers and libraries for building apps that use ffmpegthumbnailer
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+This video thumbnailer can be used to create thumbnails for your video files,
+development package.
+
+%prep
+%setup -q
+chmod -x README INSTALL COPYING AUTHORS
+
+%if "%{version}" >= "2.1.0"
+cmake   -DCMAKE_BUILD_TYPE=Release \
+        -DCMAKE_INSTALL_BINDIR=%{_bindir} \
+        -DCMAKE_INSTALL_LIBDIR=%{_libdir} \
+        -DCMAKE_INSTALL_MANDIR=%{_mandir} \
+        -DCMAKE_INSTALL_DATADIR=%{_datadir} \
+        -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
+        -DENABLE_GIO=ON \
+        -DENABLE_THUMBNAILER=ON
+%else
+cmake	-DCMAKE_BUILD_TYPE=Release \
+	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
+	-DENABLE_GIO=ON \
+	-DENABLE_THUMBNAILER=ON
+%endif
+
+make %{?_smp_mflags}
+ 
+%install
+rm -rf $RPM_BUILD_ROOT
+make install DESTDIR=$RPM_BUILD_ROOT
+chrpath --delete $RPM_BUILD_ROOT/%{_bindir}/ffmpegthumbnailer
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+
+%if "%{version}" >= "2.1.0"
+%else
+mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
+mv $RPM_BUILD_ROOT/usr/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING AUTHORS
+%{_bindir}/ffmpegthumbnailer
+%{_libdir}/libffmpegthumbnailer.so.4*
+%{_mandir}/man1/ffmpegthumbnailer.1.gz
+# gnome thumbnailer registration
+%dir %{_datadir}/thumbnailers
+%{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer
+
+%files devel
+%defattr(-,root,root,-)
+%{_libdir}/libffmpegthumbnailer.so
+%{_libdir}/pkgconfig/libffmpegthumbnailer.pc
+%{_includedir}/libffmpegthumbnailer/
+
+
+%changelog
+* Thu Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2
+- Rebuild with ffmpeg 4.0
+* Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1
+- new upstream release
+* Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1
+- new upstream release
+* Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1
+- new upstream release
+* Sat Nov  7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1
+- new upstream release
+* Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1
+- new upstream release
+- update Source0
+- change for URL (https://github.com/dirkvdb/ffmpegthumbnailer)
+* Mon Jan 12 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.9-1
+- initial build for Vine Linux

+ 103 - 0
nonfree/self-build-ffmpegthumbnailer/self-build-ffmpegthumbnailer-vl.spec

@@ -0,0 +1,103 @@
+# Basic Information
+%define pkgname ffmpegthumbnailer
+%define name    self-build-%{pkgname}
+%define version 2.2.0
+%define release 2%{?_dist_release}
+
+#%define sourceurl0 http://gdurl.com/z9ne/download/%{pkgname}-%{version}.tar.gz
+%define sourceurl0 https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/ffmpegthumbnailer-%{version}.tar.bz2
+
+Name:           %{name}
+Version:        %{version}
+Release:        %{release}
+# COPYING  などを参照して License を修正してください。
+License:        GPLv2+
+# /usr/share/doc/rpm-4.11.1/GROUPS_for_vine.txt を参照して Group を修正してください。
+Group:          Restricted Software
+Source0:        %{pkgname}-vl.spec
+BuildRoot:      %{_tmppath}/%{name}-%{version}-root
+BuildArch:      noarch
+
+Vendor:         Project Vine
+Distribution:   Vine Linux
+Packager:       Shirow HIGA
+
+Summary:        Package to automatically build %{pkgname} rpm package
+Summary(ja):    %{pkgname} の rpm パッケージを自動作成するパッケージ
+
+Obsoletes:      ffmpegthumbnailer < %{version}
+Obsoletes:	ffmpegthumbnailer-devel < %{version}
+Obsoletes:      self-build-ffmpegthumbnailer < %{version}
+
+# Dependency
+# 以下に依存関係を記述してください 。
+Requires(post):	self-build-setup >= 0.9.9
+
+Requires(post):	libpng-devel
+Requires(post):	libjpeg-turbo-devel
+Requires(post):	chrpath
+Requires(post):	automake
+Requires(post):	autoconf
+
+Requires(post):	self-build-ffmpeg
+
+#追加のソースファイル
+
+#追加のパッチファイル
+
+%description
+This video thumbnailer can be used to create thumbnails for your video files.
+
+[Note]                                                                                                                      This package requires many other packages to compile                                                                        targetsoftware. So it consume more disk space than usual.                                                                   
+Also installation takes logner time because of compilation.                                                                 (This will take a few minutes to quarter or half of an hour,
+depends on building environment)
+                                                                                                                            [About self-build package]                                                                                                  For some kind of software, distributing of binary package                                                                   
+may viorate the patent or law. Therefore we chose self-build
+packge, create binary package on your machine, for such kind
+of softwares instead of distributing binary package.                                                                                                                                                                                                    Please obey the national law when you use the created binary                                                                
+packages. And if you want to use the softwares using patented
+thechnology, it may be required to get a permission, make an
+agreement or purchas a license. Please consider it with your
+purpose or way of use and take appropriate action.
+
+#%description -l ja
+#ここに日本語で詳細を記述してください。
+
+%prep
+[ "%{version}-%{release}" != $(rpm -q --queryformat "%%{version}-%%{release}\n" --specfile %{SOURCE0} | tail -1) ] && exit 1
+
+%install
+%{__rm} -rf ${RPM_BUILD_ROOT}
+%{__install} -d ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+%{__install} -m 644 %{SOURCE0} ${RPM_BUILD_ROOT}/%{_datadir}/%{name}
+
+%clean
+%{__rm} -rf ${RPM_BUILD_ROOT}
+
+%posttrans
+/usr/lib/rpm/self-build-rpm.sh %{name} %{pkgname}-vl.spec %{sourceurl0} 9500
+
+/usr/lib/rpm/pre-allocate-rpm.sh %{pkgname}-%{version}-%{release} \
+                                 %{pkgname}-devel-%{version}-%{release}
+
+%files
+%defattr(-,root,root)
+%{_datadir}/%{name}
+
+%changelog
+* Thu Apr 24 2018 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-2
+- Rebuild with ffmpeg 4.0
+* Fri Mar 31 2017 Shirow HIGA <shirowxxx@gmail.com> - 2.2.0-1
+- new upstream release
+* Fri Aug 19 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.2-1
+- new upstream release
+* Mon Feb 29 2016 Shirow HIGA <shirowxxx@gmail.com> - 2.1.1-1
+- new upstream release
+* Sat Nov  7 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.1.0-1
+- new upstream release
+* Tue Jun 16 2015 Shirow HIGA <shirowxxx@gmail.com> - 2.0.10-1
+- new upstream release
+- update Source0
+- change for URL (https://github.com/dirkvdb/ffmpegthumbnailer)
+* Thu Jan 15 2015 Shirow HIGA <shirowxxx@gmail.com> 2.0.9-1
+- initial build for Vine Linux