Group :: Sistema/Bibliotecas
RPM: libdv
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_enable shared
%def_enable static
%def_without debug
%def_enable asm
%def_enable sdl
%def_enable xv
%def_enable gtk
%def_with x
# YV12|YUY2
%define pal-yuv YUY2
#----------------------------------------------------------------------
Name: libdv
Version: 1.0.0
Release: alt4
Summary: DV software video codec
License: %lgpl2plus
Group: System/Libraries
URL: http://%name.sourceforge.net
Source: %name-%version.tar
Patch: %name-%version-%release.patch
%define popt_ver 1.7-alt5
Requires: libpopt >= %popt_ver
Packager: Led <led at altlinux.ru>
BuildRequires(pre): rpm-build-licenses
BuildRequires: libpopt-devel >= %popt_ver
%{?_enable_sdl:BuildRequires: libSDL-devel >= 1.1.6}
%{?_enable_xv:BuildRequires: libXv-devel xorg-xextproto-devel}
%{?_enable_gtk:BuildRequires: gtk+-devel > 1.2}
%{?_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} = %version-%release
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 = %version-%release}
%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 = %version-%release
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
%build
%define _optlevel 3
%add_optflags %optflags_shared
%configure \
%{subst_enable static} \
%{subst_enable shared} \
%{subst_with debug} \
%{subst_enable asm} \
%{subst_enable sdl} \
%{subst_enable gtk} \
%{subst_enable xv} \
%{subst_with x} \
%{?pal_yuv:--with-pal-yuv=%pal_yuv}
%make_build
bzip2 --best --keep --force ChangeLog
%install
%make_install DESTDIR=%buildroot install
%ifarch %ix86
%{?_enable_asm:%set_verify_elf_method textrel=relaxed}
%endif
%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
…
Todas as alterações você pod ver aqui
%def_enable static
%def_without debug
%def_enable asm
%def_enable sdl
%def_enable xv
%def_enable gtk
%def_with x
# YV12|YUY2
%define pal-yuv YUY2
#----------------------------------------------------------------------
Name: libdv
Version: 1.0.0
Release: alt4
Summary: DV software video codec
License: %lgpl2plus
Group: System/Libraries
URL: http://%name.sourceforge.net
Source: %name-%version.tar
Patch: %name-%version-%release.patch
%define popt_ver 1.7-alt5
Requires: libpopt >= %popt_ver
Packager: Led <led at altlinux.ru>
BuildRequires(pre): rpm-build-licenses
BuildRequires: libpopt-devel >= %popt_ver
%{?_enable_sdl:BuildRequires: libSDL-devel >= 1.1.6}
%{?_enable_xv:BuildRequires: libXv-devel xorg-xextproto-devel}
%{?_enable_gtk:BuildRequires: gtk+-devel > 1.2}
%{?_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} = %version-%release
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 = %version-%release}
%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 = %version-%release
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
%build
%define _optlevel 3
%add_optflags %optflags_shared
%configure \
%{subst_enable static} \
%{subst_enable shared} \
%{subst_with debug} \
%{subst_enable asm} \
%{subst_enable sdl} \
%{subst_enable gtk} \
%{subst_enable xv} \
%{subst_with x} \
%{?pal_yuv:--with-pal-yuv=%pal_yuv}
%make_build
bzip2 --best --keep --force ChangeLog
%install
%make_install DESTDIR=%buildroot install
%ifarch %ix86
%{?_enable_asm:%set_verify_elf_method textrel=relaxed}
%endif
%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
…
Todas as alterações você pod ver aqui