libmpeg2/libmpeg2.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.

     1 Name:           libmpeg2
     2 Version:        0.5.1
     3 Release:        9%{?dist}
     4 Summary:        MPEG-2 decoder libraries
     6 Group:          System Environment/Libraries
     7 License:        GPLv2+
     8 URL:            http://libmpeg2.sourceforge.net/
     9 Source0:        http://libmpeg2.sourceforge.net/files/libmpeg2-%{version}.tar.gz
    10 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
    12 BuildRequires:  SDL-devel
    13 BuildRequires:  libXt-devel
    14 BuildRequires:  libXv-devel
    17 %description
    18 libmpeg2 is a free library for decoding mpeg-2 and mpeg-1 video
    19 streams. It is released under the terms of the GPL license.
    21 %package -n     mpeg2dec
    22 Summary:        MPEG-2 decoder program
    23 Group:          Applications/Multimedia
    24 Requires:       %{name} = %{version}-%{release}
    26 %description -n mpeg2dec
    27 The %{name}-devel package contains libraries and header files for
    28 developing applications that use %{name}.
    30 %package        devel
    31 Summary:        Development files for %{name}
    32 Group:          Development/Libraries
    33 Requires:       %{name} = %{version}-%{release}
    34 Requires:       pkgconfig
    35 # Introducted in F-10 Can be dropped in F-12
    36 Provides:       mpeg2dec-devel = %{version}-%{release}
    37 Obsoletes:      mpeg2dec-devel < %{version}
    39 %description    devel
    40 The %{name}-devel package contains libraries and header files for
    41 developing applications that use %{name}.
    44 %prep
    45 %setup -q
    46 iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.tmp
    47 touch -r AUTHORS AUTHORS.tmp 
    48 cp -p -f AUTHORS.tmp AUTHORS
    49 rm AUTHORS.tmp
    51 #Disable ppc altivec case
    52 sed -i -e 's/ppc-/noppc64-/' configure.ac configure
    53 sed -i -e 's/powerpc-/nopowerpc64-/' configure.ac configure
    55 %build
    56 %configure --disable-static \
    57 %ifarch %{ix86} ppc
    58   --disable-accel-detect \
    59 %endif
    61 # mpeg2dec have rpath
    62 # remove rpath from libtool
    63 sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
    64 sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
    66 make %{?_smp_mflags} \
    67 %ifarch %{ix86}
    68   OPT_CFLAGS="-fPIC -DPIC" \
    69 %else
    70   OPT_CFLAGS="" \
    71 %endif
    74 %install
    75 rm -rf $RPM_BUILD_ROOT
    76 make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
    77 find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
    80 #Fix datatype internal definitions
    81 install -pm 0644 libmpeg2/mpeg2_internal.h \
    82   $RPM_BUILD_ROOT%{_includedir}/mpeg2dec/
    86 %clean
    87 rm -rf $RPM_BUILD_ROOT
    90 %post -p /sbin/ldconfig
    92 %postun -p /sbin/ldconfig
    95 %files
    96 %defattr(-,root,root,-)
    97 %doc AUTHORS ChangeLog COPYING NEWS README TODO
    98 %{_libdir}/*.so.*
   100 %files -n mpeg2dec
   101 %defattr(-,root,root,-)
   102 %{_bindir}/corrupt_mpeg2
   103 %{_bindir}/extract_mpeg2
   104 %{_bindir}/mpeg2dec
   105 %{_mandir}/man1/*.1*
   107 %files devel
   108 %defattr(-,root,root,-)
   109 %doc CodingStyle doc/libmpeg2.txt doc/sample*.c
   110 %{_includedir}/mpeg2dec/
   111 %{_libdir}/*.so
   112 %{_libdir}/pkgconfig/libmpeg2.pc
   113 %{_libdir}/pkgconfig/libmpeg2convert.pc
   116 %changelog
   117 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 0.5.1-9
   118 - Build for MeeGo 1.1
   120 * Sat Oct 17 2009 kwizart < kwizart at gmail.com > - 0.5.1-8
   121 - Rebuild for F-12
   123 * Wed Apr  8 2009 kwizart < kwizart at gmail.com > - 0.5.1-7
   124 - New attempt
   126 * Sun Mar 29 2009 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 0.5.1-6
   127 - rebuild for new F11 features
   129 * Fri Mar 27 2009 kwizart < kwizart at gmail.com > - 0.5.1-5
   130 - Rebuild
   131 - Fix target_arch conditionals
   132 - Provides internal definitions mpeg2_internal.h
   133 - Disable ppc altivec optim (TODO improve asm optim later)
   135 * Fri Oct  4 2008 kwizart < kwizart at gmail.com > - 0.5.1-3
   136 - Fix CFLAGS on x86 producing selinux denials.
   138 * Wed Jul 30 2008 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info - 0.5.1-2
   139 - rebuild for buildsys cflags issue
   141 * Fri Jul 18 2008 kwizart < kwizart at gmail.com > - 0.5.1-1
   142 - Update to 0.5.1
   144 * Tue Jul 15 2008 kwizart < kwizart at gmail.com > - 0.5.0-1
   145 - Initial package (based on mpeg2dec)

mercurial