xvidcore/xvidcore.spec

Fri, 11 Mar 2011 21:30:26 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:30:26 +0100
changeset 0
4f133201e207
child 1
4667f24fe848
permissions
-rw-r--r--

Import package vendor original specs for necessary manipulations.

michael@0 1 Name: xvidcore
michael@0 2 Version: 1.2.1
michael@0 3 Release: 1%{?dist}
michael@0 4 Summary: MPEG-4 Simple and Advanced Simple Profile codec
michael@0 5
michael@0 6 Group: System Environment/Libraries
michael@0 7 License: GPLv2+
michael@0 8 URL: http://www.xvid.org/
michael@0 9 Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2
michael@0 10 Patch0: xvidcore-1.2.1-noexec-stack.patch
michael@0 11 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
michael@0 12
michael@0 13 %ifarch %{ix86} x86_64
michael@0 14 BuildRequires: nasm >= 2.0
michael@0 15 %endif
michael@0 16
michael@0 17 %description
michael@0 18 The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple
michael@0 19 Profile standards. It permits compressing and decompressing digital video
michael@0 20 in order to reduce the required bandwidth of video data for transmission
michael@0 21 over computer networks or efficient storage on CDs or DVDs. Due to its
michael@0 22 unrivalled quality Xvid has gained great popularity and is used in many
michael@0 23 other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine and
michael@0 24 many more.
michael@0 25
michael@0 26 %package devel
michael@0 27 Summary: Development files for the Xvid video codec
michael@0 28 Group: Development/Libraries
michael@0 29 Requires: %{name} = %{version}-%{release}
michael@0 30
michael@0 31 %description devel
michael@0 32 This package contains header files, static library and API
michael@0 33 documentation for the Xvid video codec.
michael@0 34
michael@0 35
michael@0 36 %prep
michael@0 37 %setup -q -n %{name}
michael@0 38 %patch0 -p1 -z .noexec-stack
michael@0 39 chmod -x examples/*.pl
michael@0 40 f=AUTHORS ; iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && touch -r $f $f.utf8 && mv $f.utf8 $f
michael@0 41 # Yes, we want to see the build output.
michael@0 42 %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' build/generic/Makefile
michael@0 43
michael@0 44
michael@0 45 %build
michael@0 46 cd build/generic
michael@0 47 export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
michael@0 48 %configure
michael@0 49 make %{?_smp_mflags}
michael@0 50 cd -
michael@0 51
michael@0 52
michael@0 53 %install
michael@0 54 rm -rf $RPM_BUILD_ROOT
michael@0 55 make -C build/generic install DESTDIR=$RPM_BUILD_ROOT
michael@0 56 rm $RPM_BUILD_ROOT%{_libdir}/libxvidcore.a
michael@0 57 cd $RPM_BUILD_ROOT%{_libdir}
michael@0 58 chmod 755 libxvidcore.so*
michael@0 59 /sbin/ldconfig -n .
michael@0 60 ln -s libxvidcore.so.? libxvidcore.so
michael@0 61 cd -
michael@0 62
michael@0 63
michael@0 64 %clean
michael@0 65 rm -rf $RPM_BUILD_ROOT
michael@0 66
michael@0 67
michael@0 68 %post -p /sbin/ldconfig
michael@0 69
michael@0 70 %postun -p /sbin/ldconfig
michael@0 71
michael@0 72
michael@0 73 %files
michael@0 74 %defattr(-,root,root,-)
michael@0 75 %doc LICENSE README AUTHORS ChangeLog
michael@0 76 %{_libdir}/libxvidcore.so.*
michael@0 77
michael@0 78 %files devel
michael@0 79 %defattr(-,root,root,-)
michael@0 80 %doc CodingStyle TODO examples/
michael@0 81 %{_includedir}/xvid.h
michael@0 82 %{_libdir}/libxvidcore.so
michael@0 83
michael@0 84
michael@0 85 %changelog
michael@0 86 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.2.1-1
michael@0 87 - Build for MeeGo 1.1

mercurial