File: smpeg.spec.in

package info (click to toggle)
smpeg 0.4.5%2Bcvs20030824-8
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,240 kB
  • sloc: cpp: 14,970; sh: 8,042; ansic: 2,316; asm: 544; makefile: 122
file content (90 lines) | stat: -rw-r--r-- 2,248 bytes parent folder | download | duplicates (10)
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
# Note that this is NOT a relocatable package
%define ver      @VERSION@
%define rel      1
%define prefix   /usr

Summary:   SDL MPEG Library
Name:      smpeg
Version:   %ver
Release:   %rel
Copyright: LGPL
Group:     System Environment/Libraries
Source0:   @PACKAGE@-%{PACKAGE_VERSION}.tar.gz
URL:       http://www.lokigames.com/development/smpeg.php3
BuildRoot: /tmp/@PACKAGE@-%{PACKAGE_VERSION}-root
Packager:  Sam Lantinga <hercules@lokigames.com>
Docdir: %{prefix}/doc

%description
SMPEG is based on UC Berkeley's mpeg_play software MPEG decoder
and SPLAY, an mpeg audio decoder created by Woo-jae Jung. We have
completed the initial work to wed these two projects in order to 
create a general purpose MPEG video/audio player for the Linux OS. 

%package devel
Summary: Libraries, includes and more to develop SMPEG applications.
Group: Development/Libraries
Requires: %{name}

%description devel
SMPEG is based on UC Berkeley's mpeg_play software MPEG decoder
and SPLAY, an mpeg audio decoder created by Woo-jae Jung. We have
completed the initial work to wed these two projects in order to 
create a general purpose MPEG video/audio player for the Linux OS. 

This is the libraries, include files and other resources you can use
to develop SMPEG applications.

%prep
rm -rf ${RPM_BUILD_ROOT}

%setup -q

%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
  CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --disable-debug --disable-opengl-player
else
  CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --disable-debug --disable-opengl-player
fi

if [ "$SMP" != "" ]; then
  (make "MAKE=make -k -j $SMP"; exit 0)
  make
else
  make
fi

%install
rm -rf $RPM_BUILD_ROOT

make prefix=$RPM_BUILD_ROOT%{prefix} install

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%files
%defattr(-, root, root)
%doc CHANGES COPYING README
%{prefix}/lib/lib*.so.*
%{prefix}/bin/plaympeg
%{prefix}/bin/gtv
%{prefix}/man/*

%files devel
%defattr(-, root, root)
%doc CHANGES COPYING README
%{prefix}/bin/@PACKAGE@-config
%{prefix}/include/*
%{prefix}/lib/lib*.a
%{prefix}/lib/lib*.so

%changelog
* Fri Mar  3 2000 Sam Lantinga <hercules@lokigames.com>
- Split package into development and runtime packages