[620] | 1 | Name: libmpeg2 |
---|
| 2 | Version: 0.5.1 |
---|
[4696] | 3 | Release: 5%{?_dist_release} |
---|
[620] | 4 | Summary: MPEG-2 decoder libraries |
---|
| 5 | |
---|
| 6 | Group: System Environment/Libraries |
---|
| 7 | License: GPLv2+ |
---|
| 8 | URL: http://libmpeg2.sourceforge.net/ |
---|
| 9 | Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz |
---|
| 10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 11 | |
---|
| 12 | BuildRequires: SDL-devel |
---|
| 13 | BuildRequires: libXt-devel |
---|
| 14 | BuildRequires: libXv-devel |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video |
---|
| 18 | streams. It is released under the terms of the GPL license. |
---|
| 19 | |
---|
| 20 | %package -n mpeg2dec |
---|
| 21 | Summary: MPEG-2 decoder program |
---|
| 22 | Group: Applications/Multimedia |
---|
| 23 | Requires: %{name} = %{version}-%{release} |
---|
| 24 | |
---|
| 25 | %description -n mpeg2dec |
---|
| 26 | The %{name}-devel package contains libraries and header files for |
---|
| 27 | developing applications that use %{name}. |
---|
| 28 | |
---|
| 29 | %package devel |
---|
| 30 | Summary: Development files for %{name} |
---|
| 31 | Group: Development/Libraries |
---|
| 32 | Requires: %{name} = %{version}-%{release} |
---|
| 33 | Requires: pkgconfig |
---|
| 34 | Provides: mpeg2dec-devel = %{version}-%{release} |
---|
| 35 | |
---|
| 36 | %description devel |
---|
| 37 | The %{name}-devel package contains libraries and header files for |
---|
| 38 | developing applications that use %{name}. |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | %prep |
---|
| 42 | %setup -q |
---|
| 43 | iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp |
---|
| 44 | touch -r AUTHORS AUTHORS.tmp |
---|
| 45 | %__cp -p -f AUTHORS.tmp AUTHORS |
---|
| 46 | %__rm AUTHORS.tmp |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | %build |
---|
| 50 | %configure --disable-static |
---|
| 51 | |
---|
| 52 | # mpeg2dec have rpath |
---|
| 53 | # remove rpath from libtool |
---|
| 54 | sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool |
---|
| 55 | sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool |
---|
| 56 | |
---|
| 57 | %__make %{?_smp_mflags} |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | %install |
---|
| 61 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 62 | %__make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%__install -p" |
---|
| 63 | |
---|
| 64 | # remove unpackaged files |
---|
| 65 | find $RPM_BUILD_ROOT -name '*.la' -exec %__rm -f {} ';' |
---|
| 66 | |
---|
| 67 | |
---|
| 68 | %clean |
---|
| 69 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | %post -p /sbin/ldconfig |
---|
| 73 | |
---|
| 74 | %postun -p /sbin/ldconfig |
---|
| 75 | |
---|
| 76 | |
---|
| 77 | %files |
---|
| 78 | %defattr(-,root,root,-) |
---|
| 79 | %doc AUTHORS ChangeLog COPYING NEWS README TODO |
---|
| 80 | %{_libdir}/*.so.* |
---|
| 81 | |
---|
| 82 | %files -n mpeg2dec |
---|
| 83 | %defattr(-,root,root,-) |
---|
| 84 | %{_bindir}/corrupt_mpeg2 |
---|
| 85 | %{_bindir}/extract_mpeg2 |
---|
| 86 | %{_bindir}/mpeg2dec |
---|
| 87 | %{_mandir}/man1/*.1* |
---|
| 88 | |
---|
| 89 | %files devel |
---|
| 90 | %defattr(-,root,root,-) |
---|
| 91 | %doc CodingStyle doc/libmpeg2.txt doc/sample*.c |
---|
| 92 | %{_includedir}/mpeg2dec/ |
---|
| 93 | %{_libdir}/*.so |
---|
| 94 | %{_libdir}/pkgconfig/libmpeg2.pc |
---|
| 95 | %{_libdir}/pkgconfig/libmpeg2convert.pc |
---|
| 96 | |
---|
| 97 | |
---|
| 98 | %changelog |
---|
[4696] | 99 | * Thu Sep 1 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-5 |
---|
| 100 | - do not support vl4 |
---|
| 101 | |
---|
[620] | 102 | * Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.5.1-4 |
---|
| 103 | - change release to sync with self-build-libmpeg2 |
---|
| 104 | |
---|
| 105 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-3 |
---|
| 106 | - change release to sync with self-build-libmpeg2 |
---|
| 107 | |
---|
| 108 | * Fri Jan 23 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-2 |
---|
| 109 | - added BuildRequires: XOrg-devel for vl4 |
---|
| 110 | |
---|
| 111 | * Wed Jan 21 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.5.1-1 |
---|
| 112 | - initial build |
---|
| 113 | |
---|
| 114 | * Fri Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3 |
---|
| 115 | - Fix CFLAGS on x86 producing selinux denials. |
---|
| 116 | |
---|
| 117 | * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.5.1-2 |
---|
| 118 | - rebuild for buildsys cflags issue |
---|
| 119 | |
---|
| 120 | * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1 |
---|
| 121 | - Update to 0.5.1 |
---|
| 122 | |
---|
| 123 | * Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1 |
---|
| 124 | - Initial package (based on mpeg2dec) |
---|
| 125 | |
---|