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