X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=ffmpegthumbnailer.spec;h=feb3f12689e9431b5ee059338bae3b5efd294980;hb=b8c64072cf339699b03055fbfafcd1423c8f061e;hp=8108526e60f86dd76e91480c7411b4498545cc5f;hpb=bf93f986e192a784b23c30d2bac0a3e7f9092653;p=packages%2Fffmpegthumbnailer.git diff --git a/ffmpegthumbnailer.spec b/ffmpegthumbnailer.spec index 8108526..feb3f12 100644 --- a/ffmpegthumbnailer.spec +++ b/ffmpegthumbnailer.spec @@ -1,29 +1,29 @@ # -# Conditional builds -%bcond_without gnomevfs # Support for gnome-vfs uris - +# Conditional build: +%bcond_without static_libs # static library +# Summary: Lightweight video thumbnailer Summary(pl.UTF-8): Lekki program do wykonywania miniaturek dla filmów Name: ffmpegthumbnailer -Version: 2.0.4 -Release: 2 +Version: 2.2.0 +Release: 1 License: GPL v2 Group: Applications/Graphics -Source0: http://ffmpegthumbnailer.googlecode.com/files/%{name}-%{version}.tar.gz -# Source0-md5: 83b43130e29a26126a50705a011004be -URL: http://code.google.com/p/ffmpegthumbnailer/ -%{?with_gnomevfs:BuildRequires: GConf2-devel >= 1.2.1} -BuildRequires: autoconf >= 2.62 -BuildRequires: automake >= 1:1.11 +#Source0Download: https://github.com/dirkvdb/ffmpegthumbnailer/releases +Source0: https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/%{name}-%{version}.tar.bz2 +# Source0-md5: ed3754b3b8b9af93a93c490e17def0d0 +Patch0: %{name}-pc.patch +URL: https://github.com/dirkvdb/ffmpegthumbnailer +BuildRequires: cmake >= 2.8 +# libavcodec >= 52.26.0 libavformat libavutil libswscale BuildRequires: ffmpeg-devel >= 0.6 -%{?with_gnomevfs:BuildRequires: gnome-vfs2-devel >= 2.0} -%{?with_gnomevfs:BuildRequires: libgnome-devel >= 2.0} BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libstdc++-devel -BuildRequires: libtool BuildRequires: pkgconfig BuildRequires: sed >= 4.0 +# dlopens libglib-2.0.so.0 libgobject-2.0.so.0 libgio-2.0.so.0 +Requires: glib2 >= 2.0 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description @@ -42,6 +42,7 @@ Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libffmpegthumbnailer Group: Development/Libraries Requires: %{name} = %{version}-%{release} Requires: ffmpeg-devel +Requires: libjpeg-devel Requires: libpng-devel %description devel @@ -64,27 +65,23 @@ Statyczna biblioteka libffmpegthumbnailer. %prep %setup -q - -# use runtime library paths for dlopen -sed -i -e ' - # gnome-vfs2-libs - s,"libgnomevfs-2.so","libgnomevfs-2.so.0", - # glib2 - s,"libglib-2.0.so","libglib-2.0.so.0", -' main.cpp +%patch0 -p1 %build -%{__libtoolize} -%{__aclocal} -%{__autoconf} -%{__automake} -%configure \ - %{?with_gnomevfs:--enable-gnome-vfs} +mkdir build +cd build +%cmake .. \ + -DENABLE_GIO=ON \ + -DENABLE_TESTS=ON \ + %{?with_static_libs:-DENABLE_STATIC=ON} \ + -DENABLE_THUMBNAILER=ON + %{__make} %install rm -rf $RPM_BUILD_ROOT +cd build %{__make} install \ DESTDIR=$RPM_BUILD_ROOT @@ -100,15 +97,17 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/ffmpegthumbnailer %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so.*.*.* %attr(755,root,root) %ghost %{_libdir}/libffmpegthumbnailer.so.4 +%{_datadir}/thumbnailers/ffmpegthumbnailer.thumbnailer %{_mandir}/man1/ffmpegthumbnailer.1* %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libffmpegthumbnailer.so -%{_libdir}/libffmpegthumbnailer.la %{_includedir}/libffmpegthumbnailer %{_pkgconfigdir}/libffmpegthumbnailer.pc +%if %{with static_libs} %files static %defattr(644,root,root,755) %{_libdir}/libffmpegthumbnailer.a +%endif