1 Name: libmpeg2 |
1 Name: libmpeg2 |
|
2 Summary: MPEG-2 decoder libraries |
|
3 Vendor: Europalab Software |
|
4 Packager: Michael Schloh von Bennewitz |
|
5 Distribution: MeeGo Thirdparty |
2 Version: 0.5.1 |
6 Version: 0.5.1 |
3 Release: 9%{?dist} |
7 Release: 20101201 |
4 Summary: MPEG-2 decoder libraries |
|
5 |
|
6 Group: System Environment/Libraries |
8 Group: System Environment/Libraries |
7 License: GPLv2+ |
9 License: GPLv2+ |
8 URL: http://libmpeg2.sourceforge.net/ |
10 URL: http://libmpeg2.sourceforge.net/ |
9 Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz |
11 Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz |
10 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
11 |
|
12 BuildRequires: SDL-devel |
13 BuildRequires: SDL-devel |
13 BuildRequires: libXt-devel |
14 BuildRequires: libXt-devel |
14 BuildRequires: libXv-devel |
15 BuildRequires: libXv-devel |
15 |
16 BuildRequires: chrpath |
16 |
17 |
17 %description |
18 %description |
18 libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video |
19 The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video streams. |
19 streams. It is released under the terms of the GPL license. |
|
20 |
20 |
21 %package -n mpeg2dec |
21 %package -n mpeg2dec |
22 Summary: MPEG-2 decoder program |
22 Summary: MPEG-2 decoder program |
23 Group: Applications/Multimedia |
23 Group: Applications/Multimedia |
24 Requires: %{name} = %{version}-%{release} |
24 Requires: %{name} = %{version}-%{release} |
25 |
25 |
26 %description -n mpeg2dec |
26 %description -n mpeg2dec |
27 The %{name}-devel package contains libraries and header files for |
27 The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video |
|
28 streams. This package contains the small mpeg2dec(1) test program |
|
29 used together with %{name}. |
|
30 |
|
31 %package devel |
|
32 Summary: Development files for %{name} |
|
33 Vendor: Europalab Software |
|
34 Packager: Michael Schloh von Bennewitz |
|
35 Distribution: MeeGo Thirdparty |
|
36 Group: Development/Libraries |
|
37 Requires: pkgconfig |
|
38 Requires: %{name} = %{version}-%{release} |
|
39 Provides: %{name}-devel = %{version}-%{release} |
|
40 |
|
41 %description devel |
|
42 The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video |
|
43 streams. This package contains libraries and header files for |
28 developing applications that use %{name}. |
44 developing applications that use %{name}. |
29 |
|
30 %package devel |
|
31 Summary: Development files for %{name} |
|
32 Group: Development/Libraries |
|
33 Requires: %{name} = %{version}-%{release} |
|
34 Requires: pkgconfig |
|
35 # Introducted in F-10 Can be dropped in F-12 |
|
36 Provides: mpeg2dec-devel = %{version}-%{release} |
|
37 Obsoletes: mpeg2dec-devel < %{version} |
|
38 |
|
39 %description devel |
|
40 The %{name}-devel package contains libraries and header files for |
|
41 developing applications that use %{name}. |
|
42 |
|
43 |
45 |
44 %prep |
46 %prep |
45 %setup -q |
47 %setup -q |
46 iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp |
|
47 touch -r AUTHORS AUTHORS.tmp |
|
48 cp -p -f AUTHORS.tmp AUTHORS |
|
49 rm AUTHORS.tmp |
|
50 |
48 |
51 #Disable ppc altivec case |
49 # disable ppc altivec case |
52 sed -i -e 's/ppc-/noppc64-/' configure.ac configure |
50 sed -i -e 's;ppc-;noppc64-;' configure.ac configure |
53 sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure |
51 sed -i -e 's;powerpc-;nopowerpc64-;' configure.ac configure |
54 |
52 |
55 %build |
53 %build |
56 %configure --disable-static \ |
54 %configure \ |
|
55 --enable-shared \ |
57 %ifarch %{ix86} ppc |
56 %ifarch %{ix86} ppc |
58 --disable-accel-detect \ |
57 --disable-accel-detect \ |
59 %endif |
58 %endif |
60 |
59 --disable-rpath |
61 # mpeg2dec have rpath |
|
62 # remove rpath from libtool |
|
63 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
|
64 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
|
65 |
60 |
66 make %{?_smp_mflags} \ |
61 make %{?_smp_mflags} \ |
67 %ifarch %{ix86} |
62 %ifarch %{ix86} |
68 OPT_CFLAGS="-fPIC -DPIC" \ |
63 OPT_CFLAGS="-fPIC -DPIC" \ |
69 %else |
64 %else |
70 OPT_CFLAGS="" \ |
65 OPT_CFLAGS="" |
71 %endif |
66 %endif |
72 |
|
73 |
67 |
74 %install |
68 %install |
75 rm -rf $RPM_BUILD_ROOT |
69 rm -rf $RPM_BUILD_ROOT |
76 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" |
70 make install DESTDIR=$RPM_BUILD_ROOT |
77 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
71 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' |
78 |
72 |
|
73 # fix datatype internal definitions |
|
74 install -pm 0644 libmpeg2/mpeg2_internal.h \ |
|
75 $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/ |
79 |
76 |
80 #Fix datatype internal definitions |
77 # remove rpath |
81 install -pm 0644 libmpeg2/mpeg2_internal.h \ |
78 chrpath --delete $RPM_BUILD_ROOT%{_bindir}/* |
82 $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/ |
79 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.* |
83 |
|
84 |
|
85 |
80 |
86 %clean |
81 %clean |
87 rm -rf $RPM_BUILD_ROOT |
82 rm -rf $RPM_BUILD_ROOT |
88 |
83 |
89 |
|
90 %post -p /sbin/ldconfig |
84 %post -p /sbin/ldconfig |
91 |
85 |
92 %postun -p /sbin/ldconfig |
86 %postun -p /sbin/ldconfig |
93 |
|
94 |
87 |
95 %files |
88 %files |
96 %defattr(-,root,root,-) |
89 %defattr(-,root,root,-) |
97 %doc AUTHORS ChangeLog COPYING NEWS README TODO |
90 %doc AUTHORS ChangeLog COPYING NEWS README TODO |
98 %{_libdir}/*.so.* |
91 %{_libdir}/*.so.* |
100 %files -n mpeg2dec |
93 %files -n mpeg2dec |
101 %defattr(-,root,root,-) |
94 %defattr(-,root,root,-) |
102 %{_bindir}/corrupt_mpeg2 |
95 %{_bindir}/corrupt_mpeg2 |
103 %{_bindir}/extract_mpeg2 |
96 %{_bindir}/extract_mpeg2 |
104 %{_bindir}/mpeg2dec |
97 %{_bindir}/mpeg2dec |
105 %{_mandir}/man1/*.1* |
98 %{_mandir}/man1/extract_mpeg2.1.gz |
|
99 %{_mandir}/man1/mpeg2dec.1.gz |
106 |
100 |
107 %files devel |
101 %files devel |
108 %defattr(-,root,root,-) |
102 %defattr(-,root,root,-) |
109 %doc CodingStyle doc/libmpeg2.txt doc/sample*.c |
103 %doc CodingStyle doc/libmpeg2.txt doc/sample*.c |
110 %{_includedir}/mpeg2dec/ |
104 %{_includedir}/mpeg2dec |
|
105 %{_libdir}/*.a |
111 %{_libdir}/*.so |
106 %{_libdir}/*.so |
112 %{_libdir}/pkgconfig/libmpeg2.pc |
107 %{_libdir}/pkgconfig/*.pc |
113 %{_libdir}/pkgconfig/libmpeg2convert.pc |
|
114 |
|
115 |
108 |
116 %changelog |
109 %changelog |
|
110 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.5.1-20101201 |
|
111 - Adjust packaging and patch logic |
|
112 |
117 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.1-9 |
113 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.1-9 |
118 - Build for MeeGo 1.1 |
114 - Build for MeeGo 1.1 |
119 |
115 |
120 * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8 |
116 * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8 |
121 - Rebuild for F-12 |
117 - Rebuild for F-12 |