]> git.pld-linux.org Git - packages/ffms2.git/blob - ffmpegsource.spec
- fix build with ffmpeg 1.0
[packages/ffms2.git] / ffmpegsource.spec
1 Summary:        FFmpegSource - FFmpeg wrapper library
2 Summary(pl.UTF-8):      FFmpegSource - biblioteka obudowująca FFmpeg
3 Name:           ffmpegsource
4 Version:        2.17
5 Release:        2
6 License:        MIT (ffmpegsource itself), GPL v3+ (forced by ffmpeg)
7 Group:          Libraries
8 #Source0Download: http://code.google.com/p/ffmpegsource/downloads/list
9 Source0:        http://ffmpegsource.googlecode.com/files/ffms-%{version}-src.tar.bz2
10 # Source0-md5:  13770e29d5215ad4b68caad44b09da07
11 Patch0:         %{name}-ffmpeg011.patch
12 Patch1:         %{name}-ffmpeg10.patch
13 URL:            http://code.google.com/p/ffmpegsource/
14 BuildRequires:  autoconf >= 2.58
15 BuildRequires:  automake
16 # libavformat >= 52.64.2 libavcodec >= 52.72.0 libswscale >= 0.7.0 libavutil >= 50.15.1
17 BuildRequires:  ffmpeg-devel >= 0.9
18 BuildRequires:  libstdc++-devel
19 BuildRequires:  libtool >= 2:2.0
20 BuildRequires:  p7zip
21 BuildRequires:  pkgconfig >= 1:0.22
22 BuildRequires:  rpmbuild(macros) >= 1.566
23 BuildRequires:  sed >= 4.0
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform
29 wrapper library around FFmpeg, plus some additional components to deal
30 with file formats FFmpeg's libavformat has (or used to have) problems
31 with. It gives you an easy, convenient way to say "open and decompress
32 this media file for me, I don't care how you do it" and get frame- and
33 sample-accurate access (usually), without having to bother with the
34 sometimes less than straightforward and less than perfectly documented
35 FFmpeg API.
36
37 %description -l pl.UTF-8
38 FFmpegSource (zwykle zwana FFMS lub FFMS2) to wieloplatformowa
39 biblioteka obudowująca FFmpeg wraz z paroma dodatkowymi komponentami
40 mającymi radzić sobie z formatami plików, z którymi libavformat z
41 FFmpeg ma (lub miał) problemy. Umożliwia w łatwy sposób zażądanie
42 "otwórz i zdekompresuj ten plik, nieważne jak" i uzyskanie dostępu
43 (zwykle) z dokładnością do ramek i próbek, bez potrzeby zajmowania
44 się często złożonym, nie najlepiej udokumentowanym API FFmpeg.
45
46 %package devel
47 Summary:        Header files for FFmpegSource library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki FFmpegSource
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       ffmpeg-devel >= 0.9
52 Requires:       libstdc++-devel
53 Requires:       zlib-devel
54
55 %description devel
56 Header files for FFmpegSource library.
57
58 %description devel -l pl.UTF-8
59 Pliki nagłówkowe biblioteki FFmpegSource.
60
61 %package static
62 Summary:        Static FFmpegSource library
63 Summary(pl.UTF-8):      Statyczna biblioteka FFmpegSource
64 Group:          Development/Libraries
65 Requires:       %{name}-devel = %{version}-%{release}
66
67 %description static
68 Static FFmpegSource library.
69
70 %description static -l pl.UTF-8
71 Statyczna biblioteka FFmpegSource.
72
73 %prep
74 %setup -q -n ffms-%{version}-src
75 %patch0 -p0
76 %patch0 -p1
77 %undos src/core/{indexing,lavfindexer,utils}.cpp
78 %{__rm} configure
79
80 %build
81 %{__libtoolize}
82 %{__aclocal} -I m4
83 %{__autoconf}
84 %{__autoheader}
85 %{__automake}
86
87 %configure \
88         --enable-shared
89
90 %{__make} \
91         V=1
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
106 %defattr(644,root,root,755)
107 %doc COPYING
108 %attr(755,root,root) %{_bindir}/ffmsindex
109 %attr(755,root,root) %{_libdir}/libffms2.so.*.*.*
110 %attr(755,root,root) %ghost %{_libdir}/libffms2.so.2
111
112 %files devel
113 %defattr(644,root,root,755)
114 %doc doc/*.{html,css}
115 %attr(755,root,root) %{_libdir}/libffms2.so
116 %{_libdir}/libffms2.la
117 %{_includedir}/ffms.h
118 %{_includedir}/ffmscompat.h
119 %{_pkgconfigdir}/ffms2.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libffms2.a
This page took 0.069106 seconds and 4 git commands to generate.