Overview

Request 318 (accepted)

build against ffmpeg new API.

Submit package home:margu...Multimedia / ffmpegthumbnailer to package Multimedia / ffmpegthumbnailer

ffmpegthumbnailer.changes Changed
x
 
1
@@ -1,4 +1,9 @@
2
 -------------------------------------------------------------------
3
+Sat Nov 10 04:30:16 UTC 2012 - i@margueirte.su
4
+
5
+- build against ffmpeg new API.
6
+
7
+-------------------------------------------------------------------
8
 Sun Oct 28 10:23:57 UTC 2012 - pascal.bleser@opensuse.org
9
 
10
 - update to 2.0.8
11
ffmpegthumbnailer.spec Changed
102
 
1
@@ -1,7 +1,7 @@
2
-# vim: set sw=4 ts=4 et:
3
+#
4
+# spec file for package ffmpegthumbnailer
5
 #
6
 # Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org>
7
-#               2009-2010 oc2pus
8
 #
9
 # All modifications and additions to the file contributed by third parties
10
 # remain the property of their copyright owners, unless otherwise agreed
11
@@ -12,25 +12,27 @@
12
 # license that conforms to the Open Source Definition (Version 1.9)
13
 # published by the Open Source Initiative.
14
 
15
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
16
+# Please submit bugfixes or comments via http://bugs.links2linux.org/
17
+#
18
+
19
 
20
 %define soname  4
21
 
22
 Name:           ffmpegthumbnailer
23
-Summary:        Lightweight video thumbnailer that can be used by file managers
24
 Version:        2.0.8
25
 Release:        0.pm.1
26
 License:        GPL-2.0+
27
-Group:          Productivity/Graphics/Viewers
28
+Summary:        Lightweight video thumbnailer that can be used by file managers
29
 Url:            http://code.google.com/p/ffmpegthumbnailer/
30
+Group:          Productivity/Graphics/Viewers
31
 Source:         http://ffmpegthumbnailer.googlecode.com/files/%{name}-%{version}.tar.gz
32
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
33
-BuildRequires:  glib2-devel
34
 BuildRequires:  gcc-c++
35
-BuildRequires:  libffmpeg_oldabi-devel
36
-BuildRequires:  libpng-devel
37
+BuildRequires:  libffmpeg-devel
38
 BuildRequires:  libjpeg-devel
39
+BuildRequires:  libpng-devel
40
 BuildRequires:  libsndfile-devel
41
+BuildRequires:  pkgconfig(glib-2.0)
42
+BuildRoot:      %{_tmppath}/%{name}-%{version}-build
43
 
44
 %description
45
 Lightweight video thumbnailer that can be used by file managers.
46
@@ -69,10 +71,10 @@
47
 %package -n lib%{name}-devel
48
 Summary:        Include Files and Libraries mandatory for Development
49
 Group:          Development/Languages/C and C++
50
-Requires:       libffmpegthumbnailer%{soname} = %{version}-%{release}
51
-Requires:       libffmpeg_oldabi-devel
52
-Requires:       libpng-devel
53
+Requires:       libffmpeg-devel
54
+Requires:       libffmpegthumbnailer%{soname} = %{version}
55
 Requires:       libjpeg-devel
56
+Requires:       libpng-devel
57
 
58
 %description -n lib%{name}-devel
59
 Lightweight video thumbnailer that can be used by file managers.
60
@@ -88,31 +90,29 @@
61
 The project also includes a C/C++ library that can be used by
62
 developers to generate thumbnails in their projects.
63
 
64
-
65
-
66
 %prep
67
-%setup -q -n %{name}-%{version}
68
-%__chmod 644 AUTHORS README COPYING ChangeLog
69
+%setup -q
70
+chmod 644 AUTHORS README COPYING ChangeLog
71
 
72
 %build
73
 export SUSE_ASNEEDED=0
74
 #export FFMPEG_CFLAGS
75
 #export FFMPEG_LIBS
76
-export CPPFLAGS="$RPM_OPT_FLAGS -D__STDC_CONSTANT_MACROS"
77
-export CXXFLAGS="$RPM_OPT_FLAGS -D__STDC_CONSTANT_MACROS"
78
-export CFLAGS="$RPM_OPT_FLAGS -D__STDC_CONSTANT_MACROS"
79
+export CPPFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS"
80
+export CXXFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS"
81
+export CFLAGS="%{optflags} -D__STDC_CONSTANT_MACROS"
82
 %configure \
83
     --enable-gio
84
-%__make %{?smp_mflags}
85
+make %{?smp_mflags}
86
 
87
 %install
88
-%makeinstall
89
+%make_install
90
 
91
-%__rm %{buildroot}%{_libdir}/libffmpegthumbnailer.a
92
-%__rm %{buildroot}%{_libdir}/libffmpegthumbnailer.la
93
+rm %{buildroot}%{_libdir}/libffmpegthumbnailer.a
94
+rm %{buildroot}%{_libdir}/libffmpegthumbnailer.la
95
 
96
 %clean
97
-%{?buildroot:%__rm -rf "%{buildroot}"}
98
+%{?buildroot:rm -rf %{buildroot}}
99
 
100
 %post -n lib%{name}%{soname} -p /sbin/ldconfig
101
 
102
Refresh
Refresh
Request History
Marguerite Su's avatar

marguerite created request over 11 years ago

build against ffmpeg new API.


Manfred Tremmel's avatar

mantre accepted request over 12 years ago

OK