ALT Linux repositórios
Group :: Vídeo
RPM: mjpegtools
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%def_enable static
%def_with quicktime
Name: mjpegtools
Version: 1.7.0
Release: alt0.2
Summary: Tools for recording, editing, playing back mpeg-encoding video under linux
License: GPL
Group: Video
Url: http://mjpeg.sourceforge.net
Packager: Yuri N. Sedunov <aris at altlinux.ru>
Source: http://prdownloads.sourceforge.net/mjpeg/%name-%version.tar.gz
Patch: %name-1.6.1.90-alt-info.patch
%define quicktime_ver 0.9.4
%define libdv_ver 0.104
%define popt_ver 1.7-alt5
%define jpeg_mmx_ver 0.1.5
Requires: libquicktime >= %quicktime_ver
Requires: lib%name = %version-%release
Requires: libdv >= %libdv_ver
Requires: libpopt >= %popt_ver
Requires(post): %install_info
Requires(preun): %uninstall_info
BuildPreReq: libquicktime-devel >= %quicktime_ver
BuildPreReq: libpopt-devel >= %popt_ver
BuildPreReq: libdv >= %libdv_ver
BuildPreReq: libjpeg-mmx-devel >= %jpeg_mmx_ver
# Automatically added by buildreq on Wed Jan 19 2005
BuildRequires: XFree86-devel-static XFree86-libs esound gcc-c++ gcc-g77 glib2-devel libgtk+2-devel libSDL-devel libdv-devel libjpeg-mmx-devel libpng-devel libquicktime-devel libstdc++-devel pkgconfig zlib-devel
%description
The MJPEG-tools are a basic set of utilities for recording, editing,
playing back and encoding (to mpeg) video under linux. Recording can
be done with zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle
DC10(+), Marvel G200/G400), these can also playback video using the
hardware. With the rest of the tools, this video can be edited and
encoded into mpeg1/2 or divx video.
%ifarch %ix86
NOTE:
The resultant binaries will ***NOT*** run on a K6 or Pentium CPU
%endif
%package -n lib%name
Summary: Shared libraries for the mjpegtools
Group: System/Libraries
Obsoletes: %name-libs
Provides: %name-libs = %version-%release
%description -n lib%name
This package contains shared libraries needed to run mjpegtools.
%ifarch %ix86
NOTE:
This binaries does ***NOT*** compatible with a K6 or Pentium CPU
%endif
%package -n lib%name-devel
Summary: Development headers and libraries for the mjpegtools
Group: Development/C
Obsoletes: %name-devel
Provides: %name-devel = %version-%release
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains libraries and header files needed to compile
applications that use part of the libraries of the mjpegtools package.
%package -n lib%name-devel-static
Summary: Static libraries for the mjpegtools
Group: Development/C
Obsoletes: %name-static-libs
Provides: %name-static-libs = %version-%release
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
This package contains static libraries needed to compile applications
that use part of the libraries of the mjpegtools package.
%ifarch %ix86
NOTE:
This binaries does ***NOT*** compatible with a K6 or Pentium CPU
%endif
%set_verify_elf_method textrel=relaxed
%prep
%setup -q
%patch -p1
%build
%configure \
%{subst_enable static} \
%{subst_with quicktime} \
--enable-large-file \
%ifarch %ix86
--enable-simd-accel
%endif
# SMP-incompatible build
%make
%install
%makeinstall
# remove non-packaged files
%__rm -f %buildroot%_infodir/dir
%post
%install_info mjpeg-howto.info
%preun
%uninstall_info mjpeg-howto.info
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files
%_bindir/*
%_man1dir/*
%_infodir/*.info*
%doc AUTHORS BUGS CHANGES HINTS PLANS README TODO
%files -n lib%name
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%_man5dir/*
%files -n lib%name-devel-static
%_libdir/*.a
%changelog
…
Todas as alterações você pod ver aqui
%def_with quicktime
Name: mjpegtools
Version: 1.7.0
Release: alt0.2
Summary: Tools for recording, editing, playing back mpeg-encoding video under linux
License: GPL
Group: Video
Url: http://mjpeg.sourceforge.net
Packager: Yuri N. Sedunov <aris at altlinux.ru>
Source: http://prdownloads.sourceforge.net/mjpeg/%name-%version.tar.gz
Patch: %name-1.6.1.90-alt-info.patch
%define quicktime_ver 0.9.4
%define libdv_ver 0.104
%define popt_ver 1.7-alt5
%define jpeg_mmx_ver 0.1.5
Requires: libquicktime >= %quicktime_ver
Requires: lib%name = %version-%release
Requires: libdv >= %libdv_ver
Requires: libpopt >= %popt_ver
Requires(post): %install_info
Requires(preun): %uninstall_info
BuildPreReq: libquicktime-devel >= %quicktime_ver
BuildPreReq: libpopt-devel >= %popt_ver
BuildPreReq: libdv >= %libdv_ver
BuildPreReq: libjpeg-mmx-devel >= %jpeg_mmx_ver
# Automatically added by buildreq on Wed Jan 19 2005
BuildRequires: XFree86-devel-static XFree86-libs esound gcc-c++ gcc-g77 glib2-devel libgtk+2-devel libSDL-devel libdv-devel libjpeg-mmx-devel libpng-devel libquicktime-devel libstdc++-devel pkgconfig zlib-devel
%description
The MJPEG-tools are a basic set of utilities for recording, editing,
playing back and encoding (to mpeg) video under linux. Recording can
be done with zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle
DC10(+), Marvel G200/G400), these can also playback video using the
hardware. With the rest of the tools, this video can be edited and
encoded into mpeg1/2 or divx video.
%ifarch %ix86
NOTE:
The resultant binaries will ***NOT*** run on a K6 or Pentium CPU
%endif
%package -n lib%name
Summary: Shared libraries for the mjpegtools
Group: System/Libraries
Obsoletes: %name-libs
Provides: %name-libs = %version-%release
%description -n lib%name
This package contains shared libraries needed to run mjpegtools.
%ifarch %ix86
NOTE:
This binaries does ***NOT*** compatible with a K6 or Pentium CPU
%endif
%package -n lib%name-devel
Summary: Development headers and libraries for the mjpegtools
Group: Development/C
Obsoletes: %name-devel
Provides: %name-devel = %version-%release
Requires: lib%name = %version-%release
%description -n lib%name-devel
This package contains libraries and header files needed to compile
applications that use part of the libraries of the mjpegtools package.
%package -n lib%name-devel-static
Summary: Static libraries for the mjpegtools
Group: Development/C
Obsoletes: %name-static-libs
Provides: %name-static-libs = %version-%release
Requires: lib%name-devel = %version-%release
%description -n lib%name-devel-static
This package contains static libraries needed to compile applications
that use part of the libraries of the mjpegtools package.
%ifarch %ix86
NOTE:
This binaries does ***NOT*** compatible with a K6 or Pentium CPU
%endif
%set_verify_elf_method textrel=relaxed
%prep
%setup -q
%patch -p1
%build
%configure \
%{subst_enable static} \
%{subst_with quicktime} \
--enable-large-file \
%ifarch %ix86
--enable-simd-accel
%endif
# SMP-incompatible build
%make
%install
%makeinstall
# remove non-packaged files
%__rm -f %buildroot%_infodir/dir
%post
%install_info mjpeg-howto.info
%preun
%uninstall_info mjpeg-howto.info
%post -n lib%name -p %post_ldconfig
%postun -n lib%name -p %postun_ldconfig
%files
%_bindir/*
%_man1dir/*
%_infodir/*.info*
%doc AUTHORS BUGS CHANGES HINTS PLANS README TODO
%files -n lib%name
%_libdir/*.so.*
%files -n lib%name-devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%_man5dir/*
%files -n lib%name-devel-static
%_libdir/*.a
%changelog
…
Todas as alterações você pod ver aqui