Define upstream branch name to fix build error on OBS
[platform/upstream/gstreamer.git] / packaging / gstreamer.spec
1 %define gst_branch 1.0
2
3 Name:           gstreamer
4 Version:        1.4.1
5 Release:        1
6 Summary:        Streaming-Media Framework Runtime
7 License:        LGPL-2.1+
8 Group:          Multimedia/Framework
9 Url:            http://gstreamer.freedesktop.org/
10 Source0:        http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{version}.tar.xz
11 Source100:      common.tar.bz2
12 BuildRequires:  bison
13 BuildRequires:  gettext-tools
14 BuildRequires:  check-devel
15 BuildRequires:  fdupes
16 BuildRequires:  flex
17 BuildRequires:  glib2-devel >= 2.32.0
18 BuildRequires:  libtool
19 BuildRequires:  libxml2-devel
20 BuildRequires:  gobject-introspection-devel >= 1.31.1
21
22 %description
23 GStreamer is a streaming-media framework, based on graphs of filters
24 which operate on media data. Applications using this library can do
25 anything from real-time sound processing to playing videos, and just
26 about anything else media-related.  Its plug-in-based architecture
27 means that new data types or processing capabilities can be added by
28 installing new plug-ins.
29
30
31 %package utils
32 Summary:        Streaming-Media Framework Runtime
33 Group:          Multimedia/Framework
34 Provides:       gstreamer:%{_bindir}/gst-launch-%{gst_branch} = %{version}
35 # Symbol for unversioned wrappers:
36 Provides:       gstreamer-utils_versioned = %{version}
37
38 %description utils
39 GStreamer is a streaming-media framework, based on graphs of filters
40 which operate on media data. Applications using this library can do
41 anything from real-time sound processing to playing videos, and just
42 about anything else media-related.  Its plug-in-based architecture
43 means that new data types or processing capabilities can be added by
44 installing new plug-ins.
45
46
47 %package devel
48 Summary:        Include Files and Libraries mandatory for Development
49 Group:          Development/Libraries
50 # gstreamer-utils is required for the gstreamer-provides rpm magic.
51 Requires:       gstreamer-utils = %{version}
52 Requires:       %{name} = %{version}
53
54 %description devel
55 This package contains all necessary include files and libraries needed
56 to develop applications that require these.
57
58
59 %lang_package
60
61
62 %prep
63 %setup -q -n gstreamer-%{version}
64 %setup -q -T -D -a 100
65
66
67 %build
68 # FIXME: GTKDOC_CFLAGS, GST_OBJ_CFLAGS:
69 # Silently ignored compilation of uninstalled gtk-doc scanners without RPM_OPT_FLAGS.
70 export V=1
71 NOCONFIGURE=1 ./autogen.sh
72 export CFLAGS="%{optflags} -fno-strict-aliasing"
73 %configure\
74 %if %{with introspection}
75         --enable-introspection\
76 %endif
77         --disable-static
78 make %{?_smp_mflags}
79
80
81 %install
82 %make_install
83 mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
84 mkdir -p %{buildroot}%{_docdir}/%{name}
85 %find_lang %{name}-%{gst_branch}
86 mv %{name}-%{gst_branch}.lang %{name}.lang
87 rm -rf %{buildroot}%{_datadir}/gtk-doc
88 rm -rf %{buildroot}%{_docdir}/%{name}/manual
89 rm -rf %{buildroot}%{_docdir}/%{name}/pwg
90 mkdir -p %{buildroot}%{_datadir}/gstreamer-%{gst_branch}/presets
91 %fdupes %{buildroot}
92
93
94 %post -p /sbin/ldconfig
95
96
97 %postun -p /sbin/ldconfig
98
99
100 %files
101 %manifest %{name}.manifest
102 %defattr(-, root, root)
103 %license COPYING
104 %dir %{_datadir}/gstreamer-%{gst_branch}
105 %dir %{_datadir}/gstreamer-%{gst_branch}/presets
106 %dir %{_libdir}/gstreamer-%{gst_branch}
107 %{_libdir}/gstreamer-%{gst_branch}/*.so
108 %dir %{_libexecdir}/gstreamer-%{gst_branch}
109 %{_libexecdir}/gstreamer-%{gst_branch}/gst-plugin-scanner
110 %{_libdir}/*.so.*
111 %{_libdir}/girepository-1.0/Gst-1.0.typelib
112 %{_libdir}/girepository-1.0/GstBase-1.0.typelib
113 %{_libdir}/girepository-1.0/GstCheck-1.0.typelib
114 %{_libdir}/girepository-1.0/GstController-1.0.typelib
115 %{_libdir}/girepository-1.0/GstNet-1.0.typelib
116
117
118 %files utils
119 %manifest %{name}.manifest
120 %defattr(-, root, root)
121 %{_bindir}/*-%{gst_branch}
122 %doc %{_mandir}/man?/*-%{gst_branch}.*
123
124
125 %files devel
126 %manifest %{name}.manifest
127 %defattr(-, root, root)
128 %{_datadir}/aclocal/*.m4
129 %{_includedir}/*
130 %{_libdir}/*.so
131 %{_libdir}/pkgconfig/*.pc
132 %{_datadir}/gir-1.0/*.gir
133
134 %changelog