1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/libmpeg2/libmpeg2.spec Fri Mar 11 21:30:26 2011 +0100 1.3 @@ -0,0 +1,146 @@ 1.4 +Name: libmpeg2 1.5 +Version: 0.5.1 1.6 +Release: 9%{?dist} 1.7 +Summary: MPEG-2 decoder libraries 1.8 + 1.9 +Group: System Environment/Libraries 1.10 +License: GPLv2+ 1.11 +URL: http://libmpeg2.sourceforge.net/ 1.12 +Source0: http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz 1.13 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 1.14 + 1.15 +BuildRequires: SDL-devel 1.16 +BuildRequires: libXt-devel 1.17 +BuildRequires: libXv-devel 1.18 + 1.19 + 1.20 +%description 1.21 +libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video 1.22 +streams. It is released under the terms of the GPL license. 1.23 + 1.24 +%package -n mpeg2dec 1.25 +Summary: MPEG-2 decoder program 1.26 +Group: Applications/Multimedia 1.27 +Requires: %{name} = %{version}-%{release} 1.28 + 1.29 +%description -n mpeg2dec 1.30 +The %{name}-devel package contains libraries and header files for 1.31 +developing applications that use %{name}. 1.32 + 1.33 +%package devel 1.34 +Summary: Development files for %{name} 1.35 +Group: Development/Libraries 1.36 +Requires: %{name} = %{version}-%{release} 1.37 +Requires: pkgconfig 1.38 +# Introducted in F-10 Can be dropped in F-12 1.39 +Provides: mpeg2dec-devel = %{version}-%{release} 1.40 +Obsoletes: mpeg2dec-devel < %{version} 1.41 + 1.42 +%description devel 1.43 +The %{name}-devel package contains libraries and header files for 1.44 +developing applications that use %{name}. 1.45 + 1.46 + 1.47 +%prep 1.48 +%setup -q 1.49 +iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp 1.50 +touch -r AUTHORS AUTHORS.tmp 1.51 +cp -p -f AUTHORS.tmp AUTHORS 1.52 +rm AUTHORS.tmp 1.53 + 1.54 +#Disable ppc altivec case 1.55 +sed -i -e 's/ppc-/noppc64-/' configure.ac configure 1.56 +sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure 1.57 + 1.58 +%build 1.59 +%configure --disable-static \ 1.60 +%ifarch %{ix86} ppc 1.61 + --disable-accel-detect \ 1.62 +%endif 1.63 + 1.64 +# mpeg2dec have rpath 1.65 +# remove rpath from libtool 1.66 +sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool 1.67 +sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool 1.68 + 1.69 +make %{?_smp_mflags} \ 1.70 +%ifarch %{ix86} 1.71 + OPT_CFLAGS="-fPIC -DPIC" \ 1.72 +%else 1.73 + OPT_CFLAGS="" \ 1.74 +%endif 1.75 + 1.76 + 1.77 +%install 1.78 +rm -rf $RPM_BUILD_ROOT 1.79 +make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" 1.80 +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' 1.81 + 1.82 + 1.83 +#Fix datatype internal definitions 1.84 +install -pm 0644 libmpeg2/mpeg2_internal.h \ 1.85 + $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/ 1.86 + 1.87 + 1.88 + 1.89 +%clean 1.90 +rm -rf $RPM_BUILD_ROOT 1.91 + 1.92 + 1.93 +%post -p /sbin/ldconfig 1.94 + 1.95 +%postun -p /sbin/ldconfig 1.96 + 1.97 + 1.98 +%files 1.99 +%defattr(-,root,root,-) 1.100 +%doc AUTHORS ChangeLog COPYING NEWS README TODO 1.101 +%{_libdir}/*.so.* 1.102 + 1.103 +%files -n mpeg2dec 1.104 +%defattr(-,root,root,-) 1.105 +%{_bindir}/corrupt_mpeg2 1.106 +%{_bindir}/extract_mpeg2 1.107 +%{_bindir}/mpeg2dec 1.108 +%{_mandir}/man1/*.1* 1.109 + 1.110 +%files devel 1.111 +%defattr(-,root,root,-) 1.112 +%doc CodingStyle doc/libmpeg2.txt doc/sample*.c 1.113 +%{_includedir}/mpeg2dec/ 1.114 +%{_libdir}/*.so 1.115 +%{_libdir}/pkgconfig/libmpeg2.pc 1.116 +%{_libdir}/pkgconfig/libmpeg2convert.pc 1.117 + 1.118 + 1.119 +%changelog 1.120 +* Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.1-9 1.121 +- Build for MeeGo 1.1 1.122 + 1.123 +* Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8 1.124 +- Rebuild for F-12 1.125 + 1.126 +* Wed Apr 8 2009 kwizart < kwizart at gmail.com > - 0.5.1-7 1.127 +- New attempt 1.128 + 1.129 +* Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.1-6 1.130 +- rebuild for new F11 features 1.131 + 1.132 +* Fri Mar 27 2009 kwizart < kwizart at gmail.com > - 0.5.1-5 1.133 +- Rebuild 1.134 +- Fix target_arch conditionals 1.135 +- Provides internal definitions mpeg2_internal.h 1.136 +- Disable ppc altivec optim (TODO improve asm optim later) 1.137 + 1.138 +* Fri Oct 4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3 1.139 +- Fix CFLAGS on x86 producing selinux denials. 1.140 + 1.141 +* Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.5.1-2 1.142 +- rebuild for buildsys cflags issue 1.143 + 1.144 +* Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1 1.145 +- Update to 0.5.1 1.146 + 1.147 +* Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1 1.148 +- Initial package (based on mpeg2dec) 1.149 +