]>
Commit | Line | Data |
---|---|---|
8fe6c68e | 1 | %define name gstreamer |
2 | %define ver 0.1.1 | |
3 | %define rel 1 | |
4 | %define prefix /usr | |
5 | ||
6 | Summary: GStreamer Streaming-media framework runtime | |
7 | Name: %name | |
8 | Version: %ver | |
9 | Release: %rel | |
10 | Copyright: LGPL | |
11 | Group: Libraries | |
12 | Source: %{name}-%{ver}.tar.gz | |
13 | BuildRoot: /var/tmp/%{name}-%{ver}-root | |
14 | Docdir: %{prefix}/doc | |
15 | Prefix: %prefix | |
16 | ||
17 | %description | |
18 | GStreamer is a streaming-media framework, based on graphs of filters which | |
19 | operate on media data. Applications using this library can do anything | |
20 | from real-time sound processing to playing videos, and just about anything | |
21 | else media-related. Its plugin-based architecture means that new data | |
22 | types or processing capabilities can be added simply by installing new | |
23 | plugins. | |
24 | ||
25 | %package devel | |
26 | Summary: Libraries and include files for GStreamer streaming-media framework | |
27 | Group: Development/Libraries | |
28 | Requires: %{name} | |
29 | ||
30 | %description devel | |
31 | GStreamer is a streaming-media framework, based on graphs of filters which | |
32 | operate on media data. Applications using this library can do anything | |
33 | from real-time sound processing to playing videos, and just about anything | |
34 | else media-related. Its plugin-based architecture means that new data | |
35 | types or processing capabilities can be added simply by installing new | |
36 | plugins. | |
37 | ||
38 | This package contains the libraries and includes files necessary to develop | |
39 | applications and plugins for GStreamer. | |
40 | ||
41 | %changelog | |
42 | * Tue Jan 09 2001 Erik Walthinsen <omega@cse.ogi.edu> | |
43 | - updated to build -devel package as well | |
44 | ||
45 | * Sun Jan 30 2000 Erik Walthinsen <omega@cse.ogi.edu> | |
46 | - first draft of spec file | |
47 | ||
48 | %prep | |
49 | %setup | |
50 | ||
51 | %build | |
52 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix | |
53 | ||
54 | if [ "$SMP" != "" ]; then | |
55 | (make "MAKE=make -k -j $SMP"; exit 0) | |
56 | make | |
57 | else | |
58 | make | |
59 | fi | |
60 | ||
61 | %install | |
62 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | make prefix=$RPM_BUILD_ROOT%{prefix} install | |
65 | ||
66 | %clean | |
67 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %post | |
70 | /sbin/ldconfig | |
71 | %{prefix}/bin/gstreamer-register | |
72 | ||
73 | %postun | |
74 | /sbin/ldconfig | |
75 | ||
76 | %files | |
77 | %defattr(-, root, root) | |
78 | %{prefix}/bin/* | |
79 | %{prefix}/lib/lib*.so.* | |
80 | %{prefix}/lib/gst/* | |
81 | %{prefix}/share/* | |
82 | ||
83 | %files devel | |
84 | %{prefix}/include/* | |
85 | %{prefix}/lib/lib*.a | |
86 | %{prefix}/lib/lib*.so |