libmpeg2/libmpeg2.spec

Fri, 11 Mar 2011 21:39:41 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:39:41 +0100
changeset 2
e3665a058d13
parent 0
4f133201e207
permissions
-rw-r--r--

Import new package specs for introduction into repository.

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

mercurial