From 28e970d55e65df4d42731d0dc60499c23e85838a Mon Sep 17 00:00:00 2001 From: Christian Schaller Date: Sat, 14 Feb 2004 11:47:27 +0000 Subject: [PATCH] acctually adding spec file :) Original commit message from CVS: acctually adding spec file :) --- gst-ffmpeg.spec.in | 102 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 gst-ffmpeg.spec.in diff --git a/gst-ffmpeg.spec.in b/gst-ffmpeg.spec.in new file mode 100644 index 0000000..d777b69 --- /dev/null +++ b/gst-ffmpeg.spec.in @@ -0,0 +1,102 @@ +Name: gstreamer-ffmpeg +Version: @VERSION@ +Release: 1 +Summary: GStreamer Streaming-media framework plug-ins. + +%define majorminor @GST_MAJORMINOR@ +#%define prefix /usr +#%define sysconfdir /etc +#Docdir: %{prefix}/share/doc +#Prefix: %prefix + +Group: Libraries/Multimedia +License: LGPL +URL: http://gstreamer.net/ +Vendor: GStreamer Backpackers Team +Source: http://gstreamer.net/releases/%{version}/src/gst-ffmpeg-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%define _glib2 @GLIB2_REQ@ + +Requires: glib2 >= %_glib2 +BuildRequires: glib2-devel >= %_glib2 +Requires: gstreamer >= 0.6.1 +BuildRequires: gstreamer-devel >= 0.6.1 +BuildRequires: gstreamer-tools >= 0.6.1 + +%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 plugin contains most of the important codecs in use today. + +%prep +%setup -n gst-ffmpeg-%{version} +%build +CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ; \ +CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ; \ +FFLAGS="${FFLAGS:-%optflags}" ; export FFLAGS ; \ +%{?__libtoolize:[ -f configure.in ] && %{__libtoolize} --copy --force} ; \ +./configure \ + --prefix=%{_prefix} \ + --exec-prefix=%{_exec_prefix} \ + --bindir=%{_bindir} \ + --sbindir=%{_sbindir} \ + --sysconfdir=%{_sysconfdir} \ + --datadir=%{_datadir} \ + --includedir=%{_includedir} \ + --libdir=%{_libdir} \ + --libexecdir=%{_libexecdir} \ + --localstatedir=%{_localstatedir} \ + --sharedstatedir=%{_sharedstatedir} \ + --mandir=%{_mandir} \ + --infodir=%{_infodir} \ + --enable-debug \ + --enable-DEBUG + +if [ "$SMP" != "" ]; then + (make "MAKE=make -k -j $SMP"; exit 0) + make 2>&1 | tee make.log +else + make 2>&1 | tee make.log +fi + +%install +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT +export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 +make prefix=%{?buildroot:%{buildroot}}%{_prefix} \ + exec_prefix=%{?buildroot:%{buildroot}}%{_exec_prefix} \ + bindir=%{?buildroot:%{buildroot}}%{_bindir} \ + sbindir=%{?buildroot:%{buildroot}}%{_sbindir} \ + sysconfdir=%{?buildroot:%{buildroot}}%{_sysconfdir} \ + datadir=%{?buildroot:%{buildroot}}%{_datadir} \ + includedir=%{?buildroot:%{buildroot}}%{_includedir} \ + libdir=%{?buildroot:%{buildroot}}%{_libdir} \ + libexecdir=%{?buildroot:%{buildroot}}%{_libexecdir} \ + localstatedir=%{?buildroot:%{buildroot}}%{_localstatedir} \ + sharedstatedir=%{?buildroot:%{buildroot}}%{_sharedstatedir} \ + mandir=%{?buildroot:%{buildroot}}%{_mandir} \ + infodir=%{?buildroot:%{buildroot}}%{_infodir} \ + install +unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL + +# Clean out files that should not be part of the rpm. +# This is the recommended way of dealing with it for RH8 +rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.la +rm -f $RPM_BUILD_ROOT%{_libdir}/gstreamer-%{majorminor}/*.a +rm -f $RPM_BUILD_ROOT%{_libdir}/*.a +rm -f $RPM_BUILD_ROOT%{_libdir}/*.la + +%clean +[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-, root, root) +%doc AUTHORS COPYING README +%{_libdir}/gstreamer-%{majorminor}/libgstffmpeg.so + +%Changelog +* Wed Jan 21 2004 Christian Schaller +- First version of spec -- 2.7.4