]> git.pld-linux.org Git - packages/libmpeg3.git/blob - libmpeg3.spec
- ugly workaround for gcc (which won't allocate ebx when compiling PIC)
[packages/libmpeg3.git] / libmpeg3.spec
1 Summary:        LibMPEG3 decodes the many many derivatives of MPEG standards
2 Summary(pl):    LibMPEG3 dekoduje wiele alternatywnych standardów MPEG
3 Name:           libmpeg3
4 Version:        1.2.3
5 Release:        1
6 License:        GPL
7 Group:          Libraries
8 URL:            http://heroine.linuxave.net/libmpeg3.html
9 Source0:        http://heroine.linuxave.net/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-shared.patch
11 Patch1:         %{name}-headers.patch
12 Patch2:         %{name}-install.patch
13 Patch3:         %{name}-gcc.patch
14 BuildRequires:  nasm
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %define         _prefix         /usr/X11R6
18
19 %description
20 LibMPEG3 decodes the many many derivatives of MPEG standards into
21 uncompressed data suitable for editing and playback.
22
23 libmpeg3 currently decodes:
24
25   MPEG-2 video
26   MPEG-1 video
27   mp3 audio
28   mp2 audio
29   ac3 audio
30   MPEG-2 system streams
31   MPEG-1 system streams
32
33 %description -l pl
34 LibMPEG3 dekoduje wiele odmian standardu MPEG w nieskompresowany
35 strumieñ, który ³atwo jest odtwarzaæ lub edytowaæ.
36
37 %package devel
38 Summary:        Header files for developing programs using libmpeg3
39 Summary(pl):    Pliki nag³ówkowe do rozwijania programów u¿ywaj±cych libmpeg3
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}
42
43 %description devel
44 This package is all you need to develop programs that handle the
45 various video and audio file formats supported by libmpeg3.
46
47 %description -l pl devel
48 Ten pakiet to wszystko czego potrzebujesz by rozwijaæ programy
49 obs³uguj±ce ró¿ne formaty plików wideo oraz audio wspierane przez libmpeg3.
50
51 %package static
52 Summary:        Static libmpeg3 library
53 Summary(pl):    Statyczna biblioteka libmpeg3
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}
56
57 %description static
58 Static libmpeg3 library.
59
60 %description -l pl static
61 Statyczna biblioteka libmpeg3.
62
63 %package progs
64 Summary:        libmpeg3 utility programs
65 Summary(pl):    programy u¿ytkowe
66 Group:          Applications/Graphics
67 Requires:       %{name} = %{version}
68
69 %description progs
70 This package includes various utility programs for manipulating MPEG
71 files for use by libmpeg3 programs.
72
73 %description -l pl progs
74 Ten pakiet zawiera ró¿ne programy narzêdziowe do manipulowania
75 plikami MPEG.
76
77 %prep
78 %setup -q
79 %patch0 -p1
80 %patch1 -p1
81 %patch2 -p1
82 %patch3 -p1
83 ln -sf . libmpeg3
84
85 %build
86 CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS} -I./ -I../"
87 export CFLAGS
88 ./configure \
89 %ifnarch %{ix86}
90         --nommx \
91         --nocss
92 %endif
93         --nothing
94
95 %{__make}
96
97 %install
98 rm -rf $RPM_BUILD_ROOT
99
100 %{__make} install \
101         DESTDIR=$RPM_BUILD_ROOT%{_prefix}
102
103 gzip -9nf docs/*.html
104
105 %post   -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %files
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libdir}/lib*.so.*.*
114
115 %files devel
116 %defattr(644,root,root,755)
117 %doc docs/index.html.gz
118 %attr(755,root,root) %{_libdir}/lib*.so
119 %dir %{_includedir}/libmpeg3
120 %dir %{_includedir}/libmpeg3/audio
121 %dir %{_includedir}/libmpeg3/video
122 %{_includedir}/libmpeg3/*.h
123 %{_includedir}/libmpeg3/*.inc
124 %{_includedir}/libmpeg3/audio/*.h
125 %{_includedir}/libmpeg3/video/*.h
126
127 %files static
128 %defattr(644,root,root,755)
129 %{_libdir}/lib*.a
130
131 %files progs
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_bindir}/*
This page took 0.028386 seconds and 3 git commands to generate.