Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37590045
en ru br
ALT Linux repos
S:1.4.0-alt5
5.0: 1.1.0-alt1
4.1: 0.2.7-alt1

Group :: System/Libraries
RPM: libgavl

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

%def_enable shared
%def_enable static
%def_disable debug
%def_enable libpng
%def_with pic
%def_with doc

%if_enabled static
%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}
%endif

%define bname gavl
Name: lib%bname
Version: 1.4.0
Release: alt5
Summary: Library for handling uncompressed audio- and video data
License: GPL2+
Group: System/Libraries
URL: http://gmerlin.sourceforge.net/

Source: %bname-%version.tar

Patch: %bname-1.1.2-config.patch
Patch1: %bname-1.4.0-debian-Makefile.patch

BuildRequires(pre): rpm-build-licenses

## Automatically added by buildreq on Sat Apr 24 2010

#BuildRequires: doxygen glibc-devel-static libpng-devel

BuildRequires: gcc-c++
%{?_enable_libpng:BuildRequires: libpng-devel}
%{?_with_doc:BuildRequires: doxygen}

%description
Gavl is short for Gmerlin Audio Video Library. It defines generic types
for audio and video formats, which are applicable to a wide range of
multimedia applications. In addition, it provides conversion functions
from all possible formats to all other formats.

%package devel
Group: Development/C
Summary: Development files for %name
Requires: %name%{?_disable_shared:-devel-static} = %EVR

%description devel
Gavl is short for Gmerlin Audio Video Library. It defines generic types
for audio and video formats, which are applicable to a wide range of
multimedia applications. In addition, it provides conversion functions
from all possible formats to all other formats.

If you want to write a multimedia application, gavl will help you a
lot: You don't have to mess around with the large varieties of
pixelformats, interleaving modes, audio sample formats and so on.

This package contains header files and documentation needed to develop
applications with %name.


%if_enabled static
%package devel-static
Summary: Static %name
Group: Development/C
Requires: %name-devel = %EVR

%description devel-static
Gavl is short for Gmerlin Audio Video Library. It defines generic types
for audio and video formats, which are applicable to a wide range of
multimedia applications. In addition, it provides conversion functions
from all possible formats to all other formats.

This package contains static library to develop applications with
%name.
%endif


%package doc
Summary: %name documentation
Group: Documentation
BuildArch: noarch

%description doc
Gavl is short for Gmerlin Audio Video Library. It defines generic types
for audio and video formats, which are applicable to a wide range of
multimedia applications. In addition, it provides conversion functions
from all possible formats to all other formats.

If you want to write a multimedia application, gavl will help you a
lot: You don't have to mess around with the large varieties of
pixelformats, interleaving modes, audio sample formats and so on.

This package contains API Reference for develop with %name.


%prep
%setup -n %bname-%version
%patch -p1
%patch1 -p1

%build
%ifarch %arm aarch64 %e2k
export LIBS="-lm"
%endif
%define _optlevel 3
%add_optflags -D_FILE_OFFSET_BITS=64
%autoreconf
%configure \
   %{subst_enable shared} \
   %{subst_enable static} \
   %{subst_enable libpng} \
   %{subst_enable debug} \
   %{subst_with pic} \
   %{?_without_doc:--without-doxygen} \
   --without-cpuflags
%make_build


%install
%make_install DESTDIR=%buildroot docdir=%_docdir/%name-devel-%version install
install -d -m 0755 %buildroot%_docdir/%name-%version
install -m 0644 AUTHORS README TODO %buildroot%_docdir/%name-%version/


%if_enabled shared
%files
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%_libdir/*.so.*
%endif


%files devel
%if_disabled shared
%dir %_docdir/%name-%version
%_docdir/%name-%version/*
%endif
%{?_enable_shared:%_libdir/*.so}
%_includedir/*
%_pkgconfigdir/*


%if_enabled static
%files devel-static
%_libdir/*.a
%endif


%if_with doc
%files doc
%dir %_docdir/%name-devel-%version
%_docdir/%name-devel-%version/apiref
%endif


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin