File libavutil.spec of Package libavutil

#
# spec file for package libavutil
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


%define soname 51

Name:           libavutil
Version:        1.0.1
Release:        0
Summary:        Utilities library from ffmpeg
License:        LGPL-3.0+
Group:          System/Libraries
Url:            http://ffmpeg.org/
# http://ffmpeg.org/releases/ffmpeg-%{version}.tar.bz2
Source0:        ffmpeg-%{version}-crippled.tar.bz2
Source99:       precheckin_cripple_tarball.sh
Source100:      baselibs.conf
Patch0:         libavutil-%{version}-cripple.patch
BuildRequires:  pkg-config
BuildRequires:  yasm

%description
Utilities library from ffmpeg.

%package -n libavutil%{soname}
Summary:        Utilities library from ffmpeg
Group:          System/Libraries

%description -n libavutil%{soname}
Utilities library from ffmpeg.

%package -n libavutil-devel
Summary:        Development files for libavutil
Group:          Development/Libraries/C and C++
Requires:       libavutil%{soname} = %{version}

%description -n libavutil-devel
Headers and libraries to program against libavutil.

%prep
%setup -q -n ffmpeg-%{version}
%patch0

%build
CFLAGS='%{optflags}'
./configure --enable-shared --disable-static --disable-doc \
            --prefix=%{_prefix} --libdir=%{_libdir} --shlibdir=%{_libdir} \
            --disable-stripping --extra-cflags='%{optflags}'
make %{?_smp_mflags} V=1

%install
%make_install

%post -n libavutil%{soname} -p /sbin/ldconfig

%postun -n libavutil%{soname} -p /sbin/ldconfig

%files -n libavutil%{soname}
%defattr(0644,root,root,0755)
%doc Changelog COPYING.LGPLv3 CREDITS LICENSE MAINTAINERS README
%{_libdir}/libavutil.so.%{soname}*

%files -n libavutil-devel
%defattr(0644,root,root,0755)
%{_includedir}/libavutil
%{_libdir}/libavutil.so
%{_libdir}/pkgconfig/libavutil.pc

%changelog
openSUSE Build Service is sponsored by