Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37560594
en ru br
Репозитории ALT
S:1.0.0-alt6
5.1: 1.0.0-alt4
4.1: 1.0.0-alt2
4.0: 1.0.0-alt2
3.0: 0.104-alt1
www.altlinux.org/Changes

Группа :: Система/Библиотеки
Пакет: libdv

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1

%def_enable shared
%def_enable static
%def_without debug

%def_enable asm
%def_enable sdl
%def_enable xv
%def_with x
# YV12|YUY2
%define pal-yuv YUY2
#----------------------------------------------------------------------

%ifarch %ix86
%if_enabled asm
%set_verify_elf_method strict,textrel=relaxed
%else
%set_verify_elf_method strict
%endif
%else
%set_verify_elf_method strict
%endif

%{?optflags_lto:%global optflags_lto %optflags_lto -ffat-lto-objects}

Name: libdv
Version: 1.0.0
Release: alt6
Summary: DV software video codec
License: %lgpl2plus
Group: System/Libraries
URL: http://%name.sourceforge.net
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Patch1: %name-1.0.0-alt-DSO.patch
%define popt_ver 1.7-alt5
Requires: libpopt >= %popt_ver

BuildRequires(pre): rpm-build-licenses
BuildRequires: libpopt-devel >= %popt_ver
%{?_enable_sdl:BuildRequires: libSDL-devel >= 1.1.6}
%{?_enable_xv:BuildRequires: libXv-devel libXext-devel xorg-xextproto-devel}
%{?_with_x:BuildRequires: libXt-devel xorg-cf-files}

%description
The Quasar DV codec (%name) is a software codec for DV video.  DV is
the encoding format used by most digital camcorders, typically those
that support the IEEE 1394 (aka FireWire or i.Link) interface. %name
was developed according to the official standards for DV video, IEC
61834 and SMPTE 314M.

%name package contains shared libraries you can use to run %name
applications.


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

%description devel
The Quasar DV codec (%name) is a software codec for DV video. DV is the
encoding format used by most digital camcorders, typically those that
support the IEEE 1394 (aka FireWire or i.Link) interface. %name was
developed according to the official standards for DV video, IEC 61834
and SMPTE 314M.

This is the libraries, include files and other resources you can use
to incorporate %name into applications.


%if_enabled static
%package devel-static
Summary: Static %name libraries
Group: Development/C
%{?_enable_shared:Requires: %name-devel = %EVR}

%description devel-static
The Quasar DV codec (%name) is a software codec for DV video. DV is the
encoding format used by most digital camcorders, typically those that
support the IEEE 1394 (aka FireWire or i.Link) interface. %name was
developed according to the official standards for DV video, IEC 61834
and SMPTE 314M.

This package contains static libraries you can use to build %name
applications.
%endif


%package utils
Summary: Binaries from %name
Group: Video
Requires: %name = %EVR
Requires: libpopt >= %popt_ver

%description utils
The Quasar DV codec (%name) is a software codec for DV video. DV is the
encoding format used by most digital camcorders, typically those that
support the IEEE 1394 (aka FireWire or i.Link) interface. %name was
developed according to the official standards for DV video, IEC 61834
and SMPTE 314M.


%prep
%setup
%patch -p1
%patch1 -p0


%build
%define _optlevel 3
%add_optflags %optflags_shared
%ifnarch %ix86 x86_64
%add_optflags -DBRUTE_FORCE_DCT_88 -DBRUTE_FORCE_DCT_248
%endif
%add_optflags -D_FILE_OFFSET_BITS=64
%configure \
   %{subst_enable static} \
   %{subst_enable shared} \
   %{subst_with debug} \
%ifarch %ix86 x86_64
   %{subst_enable asm} \
%else
   --disable-asm \
%endif
   %{subst_enable sdl} \
   %{subst_enable xv} \
   %{subst_with x} \
   %{?pal_yuv:--with-pal-yuv=%pal_yuv}
sed -ri 's/^(hardcode_libdir_flag_spec|runpath_var)=.*/\1=/' libtool
%make_build
bzip2 --best --keep --force ChangeLog


%install
%makeinstall_std


%if_enabled shared
%files
%doc AUTHORS
%_libdir/*.so.*
%endif


%files devel
%doc ChangeLog.* TODO
%if_enabled shared
%_libdir/*.so
%else
%doc AUTHORS
%endif
%_includedir/*
%_pkgconfigdir/*


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


%files utils
%doc README.*
%_bindir/*
%_man1dir/*


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin