~ubuntu-branches/ubuntu/oneiric/gst-entrans/oneiric

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
# -- distro settings
# %define gstreamer  gstreamer
# -- more variations below

# -- suse
%define gstreamer   gstreamer010

%define majorminor  @GST_MAJORMINOR@
%define _name       gst-entrans

%define gst_branch  %majorminor
%define gst_minver   0.10.13


Name: 		%{gstreamer}-entrans
Version: 	@VERSION@
Release: 	@PACKAGE_VERSION_RELEASE@.gst
Summary: 	GStreamer transcoding plug-ins and tool

# -- suse
Group:          System/GUI/GNOME
Autoreqprov:    on
# -- else
# Group: 		Applications/Multimedia
# -- end
License: 	LGPL/GPL
URL:		http://entrans.sourceforge.net/
Source:         %{_name}-%{version}.tar.bz2

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

Requires: 	  %{gstreamer} >= %{gst_minver}
Requires: 	  python-%{gstreamer}
BuildRequires: 	  %{gstreamer}-devel >= %{gst_minver}
BuildRequires: 	  %{gstreamer}-plugins-base-devel >= %{gst_minver}

BuildRequires:  gcc-c++


%description
GStreamer is a streaming media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a command-line transcoding tool, and additional plug-ins
that provide some (video/audio) filter operations.

# -- suse
%debug_package

%package doc
Summary:        GStreamer Streaming-Media Framework Plug-Ins
Group:          System/GUI/GNOME
Requires:       %{name} = %{version}
Autoreqprov:    on

%description doc
GStreamer is a streaming media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains documentation for additional plug-ins providing 
for a number of filter operations.

# -- end suse

%prep
%setup -q -n %{_name}-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS"
./configure \
    --enable-gtk-doc \
    --enable-debug \
    --enable-DEBUG

make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL

# Clean out files that should not be part of the rpm.
rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la
rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a

#%find_lang gst-entrans-%{majorminor}

%clean
rm -rf $RPM_BUILD_ROOT

%post

#%files -f gst-entrans-good-%{majorminor}.lang
%files
%defattr(-, root, root)
%doc AUTHORS COPYING README REQUIREMENTS docs/manual/*.ini docs/manual/html

%{_bindir}/*
%doc %{_mandir}/man*/*

# plugins without external dependencies
%{_libdir}/gstreamer-%{majorminor}/libgstentrans.so
%{_libdir}/gstreamer-%{majorminor}/libgstmencoder.so
%{_libdir}/gstreamer-%{majorminor}/libgsttranscode.so
%{_libdir}/gstreamer-%{majorminor}/libgstvirtualdub.so
%{_libdir}/gstreamer-%{majorminor}/libgstyuv4mpeg.so

# -- suse
%files doc
%defattr(-, root, root)
%{_datadir}/gtk-doc/html/gst-entrans-plugins-%{gst_branch}
# -- end suse

%changelog
* Sat Aug 09 2008 Mark Nauwelaerts <mnauw at users dot sourceforge dot net>
- streamlining simplification
* Fri Apr 13 2007 Mark Nauwelaerts <mnauw at users dot sourceforge dot net>
- initial version