xvidcore/xvidcore.spec

Fri, 11 Mar 2011 21:36:51 +0100

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

Adjust specification build configurations to port packages to MeeGo.

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

mercurial