Fri, 11 Mar 2011 21:39:41 +0100
Import new package specs for introduction into repository.
1 Name: libmpeg2
2 Summary: MPEG-2 decoder libraries
3 Vendor: Europalab Software
4 Packager: Michael Schloh von Bennewitz
5 Distribution: MeeGo Thirdparty
6 Version: 0.5.1
7 Release: 20101201
8 Group: System Environment/Libraries
9 License: GPLv2+
10 URL: http://libmpeg2.sourceforge.net/
11 Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
13 BuildRequires: SDL-devel
14 BuildRequires: libXt-devel
15 BuildRequires: libXv-devel
16 BuildRequires: chrpath
18 %description
19 The libmpeg2 library is a free decoder of mpeg-2 and mpeg-1 video streams.
21 %package -n mpeg2dec
22 Summary: MPEG-2 decoder program
23 Group: Applications/Multimedia
24 Requires: %{name} = %{version}-%{release}
26 %description -n mpeg2dec
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}.
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}
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
44 developing applications that use %{name}.
46 %prep
47 %setup -q
49 # disable ppc altivec case
50 sed -i -e 's;ppc-;noppc64-;' configure.ac configure
51 sed -i -e 's;powerpc-;nopowerpc64-;' configure.ac configure
53 %build
54 %configure \
55 --enable-shared \
56 %ifarch %{ix86} ppc
57 --disable-accel-detect \
58 %endif
59 --disable-rpath
61 make %{?_smp_mflags} \
62 %ifarch %{ix86}
63 OPT_CFLAGS="-fPIC -DPIC" \
64 %else
65 OPT_CFLAGS=""
66 %endif
68 %install
69 rm -rf $RPM_BUILD_ROOT
70 make install DESTDIR=$RPM_BUILD_ROOT
71 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
73 # fix datatype internal definitions
74 install -pm 0644 libmpeg2/mpeg2_internal.h \
75 $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/
77 # remove rpath
78 chrpath --delete $RPM_BUILD_ROOT%{_bindir}/*
79 chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so.*
81 %clean
82 rm -rf $RPM_BUILD_ROOT
84 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
88 %files
89 %defattr(-,root,root,-)
90 %doc AUTHORS ChangeLog COPYING NEWS README TODO
91 %{_libdir}/*.so.*
93 %files -n mpeg2dec
94 %defattr(-,root,root,-)
95 %{_bindir}/corrupt_mpeg2
96 %{_bindir}/extract_mpeg2
97 %{_bindir}/mpeg2dec
98 %{_mandir}/man1/extract_mpeg2.1.gz
99 %{_mandir}/man1/mpeg2dec.1.gz
101 %files devel
102 %defattr(-,root,root,-)
103 %doc CodingStyle doc/libmpeg2.txt doc/sample*.c
104 %{_includedir}/mpeg2dec
105 %{_libdir}/*.a
106 %{_libdir}/*.so
107 %{_libdir}/pkgconfig/*.pc
109 %changelog
110 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 0.5.1-20101201
111 - Adjust packaging and patch logic
113 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.1-9
114 - Build for MeeGo 1.1
116 * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8
117 - Rebuild for F-12
119 * Wed Apr 8 2009 kwizart < kwizart at gmail.com > - 0.5.1-7
120 - New attempt
122 * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.1-6
123 - rebuild for new F11 features
125 * Fri Mar 27 2009 kwizart < kwizart at gmail.com > - 0.5.1-5
126 - Rebuild
127 - Fix target_arch conditionals
128 - Provides internal definitions mpeg2_internal.h
129 - Disable ppc altivec optim (TODO improve asm optim later)
131 * Fri Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3
132 - Fix CFLAGS on x86 producing selinux denials.
134 * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.5.1-2
135 - rebuild for buildsys cflags issue
137 * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1
138 - Update to 0.5.1
140 * Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1
141 - Initial package (based on mpeg2dec)