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