]>
Commit | Line | Data |
---|---|---|
f3ed845f JB |
1 | Summary: MPEG-2 Decoder library |
2 | Summary(pl.UTF-8): Biblioteka dekodująca pliki MPEG-2 | |
e34e0ab5 PZ |
3 | Name: libmpeg2 |
4 | Version: 0.5.1 | |
f3ed845f | 5 | Release: 6 |
901ea8a3 | 6 | License: GPL v2+ |
f3ed845f | 7 | Group: Libraries |
7cf05292 | 8 | #Source0Download: http://libmpeg2.sourceforge.net/downloads.html |
e34e0ab5 PZ |
9 | Source0: http://libmpeg2.sourceforge.net/files/%{name}-%{version}.tar.gz |
10 | # Source0-md5: 0f92c7454e58379b4a5a378485bbd8ef | |
757eb98a | 11 | Patch0: %{name}-ppc.patch |
e34e0ab5 PZ |
12 | URL: http://libmpeg2.sourceforge.net/ |
13 | BuildRequires: SDL-devel | |
901ea8a3 JB |
14 | BuildRequires: autoconf >= 2.54 |
15 | BuildRequires: automake >= 1.5 | |
e34e0ab5 PZ |
16 | %ifarch ppc |
17 | # version with altivec support (almost?) fixed | |
18 | BuildRequires: gcc >= 5:3.3.2-3 | |
19 | %endif | |
20 | BuildRequires: libtool | |
21 | BuildRequires: xorg-lib-libXext-devel | |
22 | BuildRequires: xorg-lib-libXv-devel | |
901ea8a3 | 23 | Requires: %{name}-libs = %{version}-%{release} |
f3ed845f | 24 | Provides: libmpeg2-libs = %{version}-%{release} |
f5167224 | 25 | Provides: mpeg2dec-lib = %{version} |
22702870 | 26 | Obsoletes: mpeg2dec-lib < 0.5.1 |
f3ed845f JB |
27 | Obsoletes: libmpeg2-libs < 0.5.1-6 |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
e34e0ab5 | 29 | |
f3ed845f | 30 | %description |
e34e0ab5 PZ |
31 | MPEG-2 Decoder library and extract_mpeg2 utility. |
32 | ||
f3ed845f | 33 | %description -l pl.UTF-8 |
e34e0ab5 PZ |
34 | Biblioteka dekodująca pliki MPEG-2 i narzędzie extract_mpeg2. |
35 | ||
36 | %package devel | |
37 | Summary: MPEG-2 Decoder development files | |
38 | Summary(pl.UTF-8): Pliki dla programistów używających dekodera MPEG-2 | |
39 | Group: Development/Libraries | |
f3ed845f | 40 | Requires: %{name} = %{version}-%{release} |
f5167224 | 41 | Provides: mpeg2dec-devel = %{version} |
e34e0ab5 PZ |
42 | Obsoletes: mpeg2dec-devel < 0.5.1 |
43 | ||
44 | %description devel | |
45 | MPEG-2 Decoder development files. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki dla programistów używających dekodera MPEG-2. | |
49 | ||
50 | %package static | |
51 | Summary: MPEG-2 Decoder static libraries | |
52 | Summary(pl.UTF-8): Statyczne biblioteki dekodera MPEG-2 | |
53 | Group: Development/Libraries | |
901ea8a3 | 54 | Requires: %{name}-devel = %{version}-%{release} |
f5167224 | 55 | Provides: mpeg2dec-static = %{version} |
e34e0ab5 PZ |
56 | Obsoletes: mpeg2dec-static < 0.5.1 |
57 | ||
58 | %description static | |
59 | MPEG-2 Decoder static libraries. | |
60 | ||
61 | %description static -l pl.UTF-8 | |
62 | Statyczne biblioteki dekodera MPEG-2. | |
63 | ||
f3ed845f JB |
64 | %package -n mpeg2dec |
65 | Summary: MPEG-2 Decoder | |
66 | Summary(pl.UTF-8): Dekoder plików MPEG-2 | |
67 | Group: X11/Applications/Graphics | |
68 | Requires: %{name} = %{version}-%{release} | |
69 | ||
70 | %description -n mpeg2dec | |
71 | MPEG-2 Decoder. | |
72 | ||
73 | %description -n mpeg2dec -l pl.UTF-8 | |
74 | Dekoder MPEG-2. | |
75 | ||
e34e0ab5 PZ |
76 | %prep |
77 | %setup -q | |
757eb98a | 78 | %patch0 -p1 |
e34e0ab5 PZ |
79 | |
80 | %build | |
db29db1d | 81 | CFLAGS="%{rpmcflags} -DCOFFEE_BREAK=1" |
e34e0ab5 PZ |
82 | %{__libtoolize} |
83 | %{__aclocal} -I m4 | |
84 | %{__autoconf} | |
85 | %{__autoheader} | |
86 | %{__automake} | |
87 | %configure \ | |
88 | %{?debug:--enable-debug} \ | |
89 | --enable-shared | |
90 | ||
91 | %{__make} | |
92 | ||
93 | %install | |
94 | rm -rf $RPM_BUILD_ROOT | |
95 | ||
96 | %{__make} install \ | |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
99 | %clean | |
100 | rm -rf $RPM_BUILD_ROOT | |
101 | ||
f3ed845f JB |
102 | %post -p /sbin/ldconfig |
103 | %postun -p /sbin/ldconfig | |
e34e0ab5 PZ |
104 | |
105 | %files | |
106 | %defattr(644,root,root,755) | |
901ea8a3 | 107 | %doc AUTHORS ChangeLog NEWS README TODO |
e34e0ab5 PZ |
108 | %attr(755,root,root) %{_bindir}/corrupt_mpeg2 |
109 | %attr(755,root,root) %{_bindir}/extract_mpeg2 | |
901ea8a3 | 110 | %attr(755,root,root) %{_libdir}/libmpeg2.so.*.*.* |
e34e0ab5 | 111 | %attr(755,root,root) %ghost %{_libdir}/libmpeg2.so.0 |
901ea8a3 | 112 | %attr(755,root,root) %{_libdir}/libmpeg2convert.so.*.*.* |
e34e0ab5 PZ |
113 | %attr(755,root,root) %ghost %{_libdir}/libmpeg2convert.so.0 |
114 | %{_mandir}/man1/extract_mpeg2.1* | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libmpeg2.so | |
119 | %attr(755,root,root) %{_libdir}/libmpeg2convert.so | |
120 | %{_libdir}/libmpeg2.la | |
121 | %{_libdir}/libmpeg2convert.la | |
122 | %{_includedir}/mpeg2dec | |
123 | %{_pkgconfigdir}/libmpeg2.pc | |
124 | %{_pkgconfigdir}/libmpeg2convert.pc | |
125 | ||
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libmpeg2.a | |
129 | %{_libdir}/libmpeg2convert.a | |
f3ed845f JB |
130 | |
131 | %files -n mpeg2dec | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_bindir}/mpeg2dec | |
134 | %{_mandir}/man1/mpeg2dec.1* |