| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121 |
- ##
- ## xine-lib.spec -- OpenPKG RPM Specification
- ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
- ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
- ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # FIXME: ms: still slightly broken due to video drivers/plugins failures?!
- # package version
- %define V_dist 1-rc3c
- %define V_opkg 1rc3c
- # package information
- Name: xine-lib
- Summary: Media Player Library
- URL: http://www.xinehq.de/
- Vendor: Guenter Bartsch et al.
- Packager: The OpenPKG Project
- Distribution: OpenPKG
- Class: EVAL
- Group: Video
- License: GPL
- Version: %{V_opkg}
- Release: 20040409
- # list of sources
- Source0: http://download.sourceforge.net/xine/xine-lib-%{V_dist}.tar.gz
- Patch0: xine-lib.patch
- # build information
- Prefix: %{l_prefix}
- BuildRoot: %{l_buildroot}
- BuildPreReq: OpenPKG, openpkg >= 20040130, X11, libiconv, sdl, vorbis-libs, gcc
- PreReq: OpenPKG, openpkg >= 20040130, X11, libiconv, sdl, vorbis-libs
- AutoReq: no
- AutoReqProv: no
- %description
- This is the xine library, implementing a multimedia engine. It
- plays back CDs, DVDs, and VCDs. It also decodes multimedia files
- like AVI, MOV, WMV, and MP3 from local disk drives, and displays
- multimedia streamed over the Internet. It interprets many of the
- most common multimedia formats available and some of the most
- uncommon formats, too.
- %track
- prog xine-lib = {
- version = %{V_dist}
- url = http://prdownloads.sourceforge.net/xine/
- regex = xine-lib-(__VER__)\.tar\.gz
- }
- %prep
- %setup -q -n xine-lib-%{V_dist}
- %patch -p0
- %build
- CC="%{l_cc}" \
- CXX="%{l_cxx}" \
- CFLAGS="%{l_cflags -O}" \
- CXXFLAGS="%{l_cxxflags -O}" \
- CPPFLAGS="%{l_cppflags}" \
- LDFLAGS="%{l_ldflags}" \
- ./configure \
- --prefix=%{l_prefix} \
- --with-x \
- --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
- --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
- --enable-static --enable-shared \
- --with-libiconv-prefix=%{l_prefix} \
- --with-sdl-prefix=%{l_prefix} \
- --with-ogg-prefix=%{l_prefix} \
- --with-vorbis-prefix=%{l_prefix}
- %{l_make} %{l_mflags -O}
- %install
- rm -rf $RPM_BUILD_ROOT
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/include/xine \
- $RPM_BUILD_ROOT%{l_prefix}/lib/pkgconfig \
- $RPM_BUILD_ROOT%{l_prefix}/lib/xine/plugins/1.0.0 \
- $RPM_BUILD_ROOT%{l_prefix}/share/xine/libxine1/fonts \
- $RPM_BUILD_ROOT%{l_prefix}/man/man1
- %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
- rm -rf \
- $RPM_BUILD_ROOT%{l_prefix}/lib/*.so* \
- $RPM_BUILD_ROOT%{l_prefix}/share/aclocal \
- $RPM_BUILD_ROOT%{l_prefix}/share/doc \
- $RPM_BUILD_ROOT%{l_prefix}/share/locale
- %{l_shtool} subst \
- -e 's;\(\)libxine\.so[\ \.0-9]*\(\);\1\2;g' \
- $RPM_BUILD_ROOT%{l_prefix}/lib/libxine.la
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%not %dir %{l_prefix}/lib/pkgconfig'
- %files -f files
- %clean
- rm -rf $RPM_BUILD_ROOT
|