2017-01-10 17:18:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package ffmpegthumbnailer
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 Mariusz Fik <fisiu@opensuse.org>
|
|
|
|
# Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.links2linux.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define soname 4
|
|
|
|
Name: ffmpegthumbnailer
|
|
|
|
Version: 2.2.0
|
|
|
|
Release: 0
|
2017-05-27 08:35:32 +00:00
|
|
|
Summary: Video thumbnailer that can be used by file managers
|
2017-01-10 17:18:54 +00:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Productivity/Graphics/Viewers
|
|
|
|
Url: https://github.com/dirkvdb/ffmpegthumbnailer
|
|
|
|
Source: https://github.com/dirkvdb/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
|
|
|
BuildRequires: cmake >= 2.8
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libsndfile-devel
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(libavcodec)
|
|
|
|
BuildRequires: pkgconfig(libavfilter)
|
|
|
|
BuildRequires: pkgconfig(libavformat)
|
|
|
|
BuildRequires: pkgconfig(libavutil)
|
|
|
|
BuildRequires: pkgconfig(libswscale)
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
2017-05-27 08:35:32 +00:00
|
|
|
This video thumbnailer can be used to create thumbnails for
|
2017-01-10 17:18:54 +00:00
|
|
|
video files. The thumbnailer uses ffmpeg to decode frames from the
|
2017-05-27 08:35:32 +00:00
|
|
|
video files, so supported video formats depend on the configuration
|
2017-01-10 17:18:54 +00:00
|
|
|
flags of ffmpeg.
|
|
|
|
|
|
|
|
The project also includes a C/C++ library that can be used by
|
|
|
|
developers to generate thumbnails in their projects.
|
|
|
|
|
|
|
|
%package -n lib%{name}%{soname}
|
2017-05-27 08:35:32 +00:00
|
|
|
Summary: Video thumbnail generator
|
2017-01-10 17:18:54 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n lib%{name}%{soname}
|
2017-05-27 08:35:32 +00:00
|
|
|
Video thumbnailer that can be used by file managers.
|
2017-01-10 17:18:54 +00:00
|
|
|
|
2017-05-27 08:35:32 +00:00
|
|
|
This video thumbnailer can be used to create thumbnails for video
|
|
|
|
files. The thumbnailer uses ffmpeg to decode frames from files.
|
2017-01-10 17:18:54 +00:00
|
|
|
|
|
|
|
%package -n lib%{name}-devel
|
2017-05-27 08:35:32 +00:00
|
|
|
Summary: Development files for ffmpegthumbnailer
|
2017-01-10 17:18:54 +00:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libffmpegthumbnailer%{soname} = %{version}
|
|
|
|
|
|
|
|
%description -n lib%{name}-devel
|
2017-05-27 08:35:32 +00:00
|
|
|
Video thumbnailer that can be used by file managers.
|
2017-01-10 17:18:54 +00:00
|
|
|
|
2017-05-27 08:35:32 +00:00
|
|
|
This video thumbnailer can be used to create thumbnails for video
|
|
|
|
files. The thumbnailer uses ffmpeg to decode frames from files.
|
2017-01-10 17:18:54 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
chmod 644 AUTHORS README
|
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DENABLE_GIO=ON \
|
|
|
|
-DENABLE_THUMBNAILER=ON
|
|
|
|
%make_jobs
|
|
|
|
|
|
|
|
%install
|
|
|
|
%cmake_install
|
|
|
|
|
|
|
|
%post -n lib%{name}%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n lib%{name}%{soname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING README
|
|
|
|
%{_mandir}/man1/*.1%{ext_man}
|
|
|
|
%{_bindir}/%{name}
|
|
|
|
%dir %{_datadir}/thumbnailers
|
|
|
|
%{_datadir}/thumbnailers/%{name}.thumbnailer
|
|
|
|
|
|
|
|
%files -n lib%{name}%{soname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lib%{name}.so.%{soname}
|
|
|
|
%{_libdir}/lib%{name}.so.%{soname}.*
|
|
|
|
|
|
|
|
%files -n lib%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/lib%{name}.so
|
|
|
|
%dir %{_includedir}/lib%{name}
|
|
|
|
%{_includedir}/lib%{name}/*.h
|
|
|
|
%{_libdir}/pkgconfig/lib%{name}.pc
|
|
|
|
|
|
|
|
%changelog
|