|
@@ -1,76 +1,89 @@
|
|
-%define name xvidcore
|
|
+Summary: MPEG-4 Simple and Advanced Simple Profile codec
|
|
-%define version 1.2.1
|
|
+Name: xvidcore
|
|
-%define release 4%{?_dist_release}
|
|
+Version: 1.2.2
|
|
-
|
|
+Release: 1%{?_dist_release}
|
|
-Summary: Free reimplementation of the OpenDivX video codec
|
|
+Source: http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2
|
|
-Name: %{name}
|
|
+Patch0: xvidcore-noexec-stack.patch
|
|
-Version: %{version}
|
|
+Group: System Environment/Libraries
|
|
-Release: %{release}
|
|
+License: GPLv2+
|
|
-Source: http://downloads.xvid.org/downloads/%{name}-%{version}.tar.bz2
|
|
+URL: http://www.xvid.org/
|
|
-License: XVID (GPL with specific restrictions)
|
|
+
|
|
-URL: http://www.xvid.org/
|
|
+BuildRequires: nasm >= 2.0
|
|
-Group: System Environment/Libraries
|
|
+
|
|
-
|
|
|
|
-#Requires:
|
|
|
|
-%ifarch %{ix86}
|
|
|
|
-BuildRequires: nasm
|
|
|
|
-%endif
|
|
|
|
-%ifarch x86_64
|
|
|
|
-BuildRequires: yasm
|
|
|
|
-%endif
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
%description
|
|
%description
|
|
-Free reimplementation of the OpenDivX video codec. You can play OpenDivX
|
|
+The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple
|
|
-and DivX4 videos with it, as well as encode compatible files.
|
|
+Profile standards. It permits compressing and decompressing digital video
|
|
-
|
|
+in order to reduce the required bandwidth of video data for transmission
|
|
-%package devel
|
|
+over computer networks or efficient storage on CDs or DVDs. Due to its
|
|
-Summary: Development files for the XviD video codec
|
|
+unrivalled quality Xvid has gained great popularity and is used in many
|
|
-Group: Development/Libraries
|
|
+other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and
|
|
-Requires: %{name} = %{version}-%{release}
|
|
+many more.
|
|
-
|
|
+
|
|
-%description devel
|
|
+%package devel
|
|
|
|
+Summary: Development files for the Xvid video codec
|
|
|
|
+Group: Development/Libraries
|
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
|
+
|
|
|
|
+%description devel
|
|
This package contains header files, static library and API
|
|
This package contains header files, static library and API
|
|
-documentation for the XviD video codec.
|
|
+documentation for the Xvid video codec.
|
|
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q -n %{name}
|
|
%setup -q -n %{name}
|
|
|
|
+%patch0 -p1 -z .noexec-stack
|
|
|
|
+chmod -x examples/*.pl
|
|
|
|
+f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f
|
|
|
|
+# Yes, we want to see the build output.
|
|
|
|
+%{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile
|
|
|
|
+
|
|
|
|
|
|
%build
|
|
%build
|
|
cd build/generic
|
|
cd build/generic
|
|
|
|
+export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
|
|
|
|
+%configure
|
|
|
|
+%__make %{?_smp_mflags}
|
|
|
|
+cd -
|
|
|
|
|
|
-%configure
|
|
|
|
-make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf %{buildroot}
|
|
+%__rm -rf $RPM_BUILD_ROOT
|
|
-cd build/generic
|
|
+%__make -C build/generic install DESTDIR=$RPM_BUILD_ROOT
|
|
-%makeinstall
|
|
+%__rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a
|
|
-rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a
|
|
|
|
cd $RPM_BUILD_ROOT%{_libdir}
|
|
cd $RPM_BUILD_ROOT%{_libdir}
|
|
chmod 755 libxvidcore.so*
|
|
chmod 755 libxvidcore.so*
|
|
/sbin/ldconfig -n .
|
|
/sbin/ldconfig -n .
|
|
ln -s libxvidcore.so.? libxvidcore.so
|
|
ln -s libxvidcore.so.? libxvidcore.so
|
|
|
|
+cd -
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%clean
|
|
|
|
+%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
+
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
-%clean
|
|
|
|
-rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc LICENSE README AUTHORS ChangeLog TODO
|
|
+%doc LICENSE README AUTHORS ChangeLog
|
|
%{_libdir}/libxvidcore.so.*
|
|
%{_libdir}/libxvidcore.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
-%doc CodingStyle examples/
|
|
+%doc CodingStyle TODO examples/
|
|
%{_includedir}/xvid.h
|
|
%{_includedir}/xvid.h
|
|
%{_libdir}/libxvidcore.so
|
|
%{_libdir}/libxvidcore.so
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Sat Dec 25 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.2-1
|
|
|
|
+- new upstream release
|
|
|
|
+- applied a rebase noexec-stack patch from RPM Fusion development
|
|
|
|
+
|
|
* Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4
|
|
* Sun Mar 21 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.2.1-4
|
|
- change release to sync with self-build-xvidcore
|
|
- change release to sync with self-build-xvidcore
|
|
|
|
|