Author: kwizart
Update of /cvs/free/rpms/libmpeg2/F-8
In directory se02.es.rpmfusion.net:/tmp/cvs-serv23893/F-8
Modified Files:
.cvsignore sources
Added Files:
libmpeg2.spec
Log Message:
Import for F-8
--- NEW FILE libmpeg2.spec ---
Name: libmpeg2
Version: 0.5.1
Release: 1%{?dist}
Summary: MPEG-2 decoder libraries
Group: System Environment/Libraries
License: GPLv2+
URL:
http://libmpeg2.sourceforge.net/
Source0:
http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: SDL-devel
BuildRequires: libXt-devel
BuildRequires: libXv-devel
%description
libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
streams. It is released under the terms of the GPL license.
%package -n mpeg2dec
Summary: MPEG-2 decoder program
Group: Applications/Multimedia
Requires: %{name} = %{version}-%{release}
%description -n mpeg2dec
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package devel
Summary: Development files for %{name}
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
# Introducted in F-10 Can be dropped in F-12
Provides: mpeg2dec-devel = %{version}-%{release}
Obsoletes: mpeg2dec-devel < %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q
iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp
touch -r AUTHORS AUTHORS.tmp
cp -p -f AUTHORS.tmp AUTHORS
rm AUTHORS.tmp
%build
%configure --disable-static
# mpeg2dec have rpath
# remove rpath from libtool
sed -i.rpath
's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g'
libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_libdir}/*.so.*
%files -n mpeg2dec
%defattr(-,root,root,-)
%{_bindir}/corrupt_mpeg2
%{_bindir}/extract_mpeg2
%{_bindir}/mpeg2dec
%{_mandir}/man1/*.1*
%files devel
%defattr(-,root,root,-)
%doc CodingStyle doc/libmpeg2.txt doc/sample*.c
%{_includedir}/mpeg2dec/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libmpeg2.pc
%{_libdir}/pkgconfig/libmpeg2convert.pc
%changelog
* Fri Jul 18 2008 kwizart < kwizart at
gmail.com > - 0.5.1-1
- Update to 0.5.1
* Tue Jul 15 2008 kwizart < kwizart at
gmail.com > - 0.5.0-1
- Initial package (based on mpeg2dec)
Index: .cvsignore
===================================================================
RCS file: /cvs/free/rpms/libmpeg2/F-8/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 20 Jul 2008 10:51:01 -0000 1.1
+++ .cvsignore 20 Jul 2008 11:46:05 -0000 1.2
@@ -0,0 +1 @@
+libmpeg2-0.5.1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/free/rpms/libmpeg2/F-8/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 20 Jul 2008 10:51:01 -0000 1.1
+++ sources 20 Jul 2008 11:46:05 -0000 1.2
@@ -0,0 +1 @@
+0f92c7454e58379b4a5a378485bbd8ef libmpeg2-0.5.1.tar.gz