xvidcore/xvidcore.spec

Fri, 11 Mar 2011 21:39:41 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 11 Mar 2011 21:39:41 +0100
changeset 2
e3665a058d13
parent 0
4f133201e207
permissions
-rw-r--r--

Import new package specs for introduction into repository.

michael@0 1 Name: xvidcore
michael@0 2 Summary: MPEG-4 Simple and Advanced Simple Profile codec
michael@1 3 Vendor: Europalab Software
michael@1 4 Packager: Michael Schloh von Bennewitz
michael@1 5 Distribution: MeeGo Thirdparty
michael@1 6 Version: 1.2.2
michael@1 7 Release: 20101201
michael@0 8 Group: System Environment/Libraries
michael@0 9 License: GPLv2+
michael@0 10 URL: http://www.xvid.org/
michael@0 11 Source0: http://downloads.xvid.org/downloads/xvidcore-%{version}.tar.bz2
michael@1 12 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
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@1 23 other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine
michael@1 24 and many more.
michael@0 25
michael@0 26 %package devel
michael@0 27 Summary: Development files for the Xvid video codec
michael@1 28 Vendor: Europalab Software
michael@1 29 Packager: Michael Schloh von Bennewitz
michael@1 30 Distribution: MeeGo Thirdparty
michael@0 31 Group: Development/Libraries
michael@0 32 Requires: %{name} = %{version}-%{release}
michael@0 33
michael@0 34 %description devel
michael@1 35 The Xvid video codec implements MPEG-4 Simple Profile and Advanced Simple
michael@1 36 Profile standards. It permits compressing and decompressing digital video
michael@1 37 in order to reduce the required bandwidth of video data for transmission
michael@1 38 over computer networks or efficient storage on CDs or DVDs. Due to its
michael@1 39 unrivalled quality Xvid has gained great popularity and is used in many
michael@1 40 other GPLed applications, like e.g. Transcode, MEncoder, MPlayer, Xine
michael@1 41 and many more.
michael@0 42
michael@1 43 This package contains header files, static library and API documentation
michael@1 44 for the Xvid video codec.
michael@0 45
michael@0 46 %prep
michael@1 47 %setup -q -c -n %{name}-%{version}
michael@1 48 chmod -x %{name}/examples/*.pl
michael@1 49 %{__perl} -pi -e 's/^\t@(?!echo\b)/\t/' %{name}/build/generic/Makefile
michael@0 50
michael@0 51 %build
michael@1 52 cd %{name}/build/generic
michael@0 53 export CFLAGS="$RPM_OPT_FLAGS -ffast-math"
michael@0 54 %configure
michael@1 55 make %{?_smp_mflags}
michael@0 56
michael@0 57 %install
michael@0 58 rm -rf $RPM_BUILD_ROOT
michael@1 59 ( cd %{name}
michael@1 60 make -C build/generic install DESTDIR=$RPM_BUILD_ROOT
michael@1 61 cd $RPM_BUILD_ROOT%{_libdir}
michael@1 62 chmod 755 libxvidcore.so*
michael@1 63 /sbin/ldconfig -n .
michael@1 64 ln -s libxvidcore.so.? libxvidcore.so
michael@1 65 ) || exit $?
michael@0 66
michael@0 67 %clean
michael@0 68 rm -rf $RPM_BUILD_ROOT
michael@0 69
michael@0 70 %post -p /sbin/ldconfig
michael@0 71
michael@0 72 %postun -p /sbin/ldconfig
michael@0 73
michael@0 74 %files
michael@0 75 %defattr(-,root,root,-)
michael@1 76 %doc %{name}/LICENSE %{name}/README %{name}/AUTHORS %{name}/ChangeLog
michael@0 77 %{_libdir}/libxvidcore.so.*
michael@0 78
michael@0 79 %files devel
michael@0 80 %defattr(-,root,root,-)
michael@1 81 %doc %{name}/CodingStyle %{name}/TODO %{name}/examples
michael@0 82 %{_includedir}/xvid.h
michael@1 83 %{_libdir}/libxvidcore.a
michael@0 84 %{_libdir}/libxvidcore.so
michael@0 85
michael@1 86 %changelog
michael@1 87 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.2.2-20101201
michael@1 88 - Synchronize with upstream vendor version 1.2.2
michael@1 89 - Adjust packaging and patch logic
michael@0 90
michael@0 91 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.2.1-1
michael@1 92 - Package for MeeGo 1.1

mercurial