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