1# Note that this is NOT a relocatable package
2%define ver      @VERSION@
3%define rel      1
4%define prefix   /usr
5
6Summary:   SDL MPEG Library
7Name:      smpeg
8Version:   %ver
9Release:   %rel
10License:   LGPL
11Group:     System Environment/Libraries
12Source0:   @PACKAGE@-%{ver}.tar.gz
13URL:       http://www.lokigames.com/development/smpeg.php3
14BuildRoot: /tmp/@PACKAGE@-%{ver}-root
15Packager:  Sam Lantinga <hercules@lokigames.com>
16Docdir: %{prefix}/doc
17
18%description
19SMPEG is based on UC Berkeley's mpeg_play software MPEG decoder
20and SPLAY, an mpeg audio decoder created by Woo-jae Jung. We have
21completed the initial work to wed these two projects in order to
22create a general purpose MPEG video/audio player for the Linux OS.
23
24%package devel
25Summary: Libraries, includes and more to develop SMPEG applications.
26Group: Development/Libraries
27Requires: %{name}
28
29%description devel
30SMPEG is based on UC Berkeley's mpeg_play software MPEG decoder
31and SPLAY, an mpeg audio decoder created by Woo-jae Jung. We have
32completed the initial work to wed these two projects in order to
33create a general purpose MPEG video/audio player for the Linux OS.
34
35This is the libraries, include files and other resources you can use
36to develop SMPEG applications.
37
38%prep
39rm -rf ${RPM_BUILD_ROOT}
40
41%setup -q
42
43%build
44# Needed for snapshot releases.
45if [ ! -f configure ]; then
46  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --disable-debug --disable-opengl-player
47else
48  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --disable-debug --disable-opengl-player
49fi
50
51if [ "$SMP" != "" ]; then
52  (make "MAKE=make -k -j $SMP"; exit 0)
53  make
54else
55  make
56fi
57
58%install
59rm -rf $RPM_BUILD_ROOT
60
61make prefix=$RPM_BUILD_ROOT%{prefix} install
62
63%clean
64rm -rf $RPM_BUILD_ROOT
65
66%post
67/sbin/ldconfig
68
69%postun
70/sbin/ldconfig
71
72%files
73%defattr(-, root, root)
74%doc CHANGES COPYING README
75%{prefix}/lib/lib*.so.*
76%{prefix}/bin/*
77%{prefix}/share/man/*
78
79%files devel
80%defattr(-, root, root)
81%doc CHANGES COPYING README
82%{prefix}/bin/@PACKAGE@-config
83%{prefix}/include/*
84%{prefix}/lib/lib*.a
85%{prefix}/lib/lib*.la
86%{prefix}/lib/lib*.so
87%{prefix}/share/aclocal/*.m4
88
89%changelog
90* Fri Mar  3 2000 Sam Lantinga <hercules@lokigames.com>
91- Split package into development and runtime packages
92