# $Id: pkg.spec.in,v 1.1 2000/11/22 13:08:56 dent Exp $ %define name oms %define name_devel oms-devel %define version 0.1.2 %define release 0.200103031256.plus.dxr3.rh62 %define builddir $RPM_BUILD_DIR/%{name}-%{version} %define x11_libdir /usr/X11R6/lib Name: %{name} Version: %{version} Release: %{release} Vendor: linuxvideo.org Packager: Thomas 'Dent' Mirlacher URL: http://www.linuxvideo.org/%{name} Source: http://www.linuxvideo.org/download/%{name}-%{version}.tar.gz #Patch: Group: Applications/Multimedia Copyright: GPL #Icon: #Requires: glib >= 1.2, gtk+ >= 1.2 BuildRoot: %{_tmppath}/%{name}-%{version} Prefix: %{_prefix} Summary: OMS - the Open Media System, a multimedia-framework %package devel Summary: OMS - the Open Media System, a multimedia-framework Group: Development/Libraries Requires: %{name} %description OMS - the Open Media System, a multimedia-framework --- This version also has the DXR3 plugin built in. For more info, please see: https://sourceforge.net/projects/dxr3/ NB you will also need to build and install the kernel modules. If you want to do on screen overlay, you will also need to build dxr3view. If you don't have a dxr3, this need not concern you, the addition is benign for the rest of the code. %description devel Header files needed for building plug-ins. OMS - the Open Media System, a multimedia-framework You'll only need this package if you are doing development. %prep %setup -n %{name}-%{version} %build CFLAGS="${RPM_OPT_FLAGS}" LDFLAGS=-s %configure ./configure --prefix=%{_prefix} --disable-sdltest make %install if [ -d $RPM_BUILD_ROOT ]; then rm -rf $RPM_BUILD_ROOT; fi mkdir -p $RPM_BUILD_ROOT make install-strip DESTDIR=$RPM_BUILD_ROOT %pre # Create the shared Xv libs if they dont exist if [ ! -e %{x11_libdir}/libXv.so ]; then ld --whole-archive -shared -o %{x11_libdir}/libXv.so %{x11_libdir}/libXv.a fi if [ ! -e /usr/X11R6/lib/libXxf86dga.so ]; then ld --whole-archive -shared -o %{x11_libdir}/libXxf86dga.so %{x11_libdir}/libXxf86dga.a fi %post -p /sbin/ldconfig %postun -p /sbin/ldconfig # remove the created shared Xv libs if [ -e %{x11_libdir}/libXv.so ]; then rm -f %{x11_libdir}/libXv.so fi if [ -e %{x11_libdir}/libXxf86dga.so ]; then rm -f %{x11_libdir}/libXxf86dga.so fi %clean rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,root) /usr/bin /usr/lib /usr/man %doc README TODO NEWS AUTHORS COPYING ChangeLog %files devel %defattr(-,root,root) /usr/include %doc README TODO NEWS AUTHORS COPYING ChangeLog %changelog