Projects
Multimedia
transcode
transcode.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File transcode.spec of Package transcode (Revision 13)
Currently displaying revision
13
,
Show latest
# # spec file for package transcode # # Copyright (c) 2015 SUSE LINUX 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 sversion %(echo %{version}|cut -b 1-3) Name: transcode Version: 1.2.0 Release: 0 Summary: A linux video stream processing utility Summary(de): Das Schweizer Taschenmesser der Videobearbeitung License: GPL-2.0+ Group: Productivity/Multimedia/Other Url: https://bitbucket.org/achurch_/transcode/wiki/Home Source: transcode-%{version}.tar.bz2 # Doesn't apply. Patch0: transcode-fix-rpmlint.patch Patch1: transcode-ffmpeg.diff Patch2: transcode-configdir.patch BuildRequires: SDL-devel BuildRequires: aalib-devel BuildRequires: autoconf BuildRequires: automake BuildRequires: ffmpeg-devel BuildRequires: gcc-c++ BuildRequires: liba52-devel BuildRequires: libfaac-devel BuildRequires: libfame-devel BuildRequires: libjpeg-devel BuildRequires: libmp3lame-devel BuildRequires: libmpeg2-devel BuildRequires: libtool BuildRequires: libvorbis #BuildRequires: GraphicsMagick-devel BuildRequires: libx264-devel BuildRequires: libv4l-devel BuildRequires: libxvidcore-devel BuildRequires: xorg-x11-devel BuildRequires: lzo BuildRequires: lzo-devel >= 2.01 BuildRequires: mjpegtools BuildRequires: nasm >= 0.98.35 BuildRequires: pkgconfig BuildRequires: pvm-devel BuildRequires: pkgconfig(alsa) BuildRequires: pkgconfig(GraphicsMagick) #BuildRequires: pkgconfig(ImageMagick) #BuildRequires: pkgconfig(ImageMagick-6.Q16) #BuildRequires: pkgconfig(MagickCore) #BuildRequires: pkgconfig(MagickCore-6.Q16) BuildRequires: pkgconfig(GraphicsMagickWand) #BuildRequires: pkgconfig(MagickWand-6.Q16) #BuildRequires: pkgconfig(Wand) #BuildRequires: pkgconfig(Wand-6.Q16) BuildRequires: pkgconfig(dvdread) BuildRequires: pkgconfig(freetype2) BuildRequires: pkgconfig(libdv) BuildRequires: pkgconfig(libquicktime) >= 0.9.3 BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(mjpegtools) BuildRequires: pkgconfig(ogg) BuildRequires: pkgconfig(sndfile) BuildRequires: pkgconfig(theora) BuildRequires: pkgconfig(theoradec) BuildRequires: pkgconfig(theoraenc) BuildRequires: pkgconfig(vdpau) BuildRequires: pkgconfig(vorbis) BuildRequires: pkgconfig(vorbisenc) BuildRequires: pkgconfig(vorbisfile) BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} < 1130 BuildRequires: glib-devel BuildRequires: gtk-devel %endif %description transcode is a text-console video stream processing tool. Decoding and encoding is done by loading shared library modules that are responsible for feeding transcode with raw RGB/PCM streams (import module) and encoding the frames (export module). It supports elementary video and audio frame transformations. Some example modules are included to enable import of MPEG program streams (VOB), Digital Video (DV), or YUV video and export modules for writing DivX;-), OpenDivX, or uncompressed AVI files. A set of tools is available to extract and decode the sources into raw video/audio streams for import and to enable post-processing of AVI files. %description -l de Videokonverter mit sehr vielen input/output und filter plugins, kann auch zum encodieren von dvd's genutzt werden. %prep %setup -q #%%patch0 -p1 #%%patch1 -p1 #%%patch2 # NOTE: Left this intact but the config file method has changed, not quite sure what this fixes. # had to append || true because it passes on local build but fails in obs. perl -ne 'print $1,"\n" if /^\+{3}\s+(.+?)\s+/' <"%{PATCH2}" | while read f; do sed -i 's|@@CONFIGDIR@@|%{_libdir}/transcode|g' "$f" || true done echo %{sversion} %build export CFLAGS="%{optflags} -isystem %{_includedir}/ffmpeg/" export CPPFLAGS="%{optflags} -isystem %{_includedir}/ffmpeg/" export LDFLAGS=" -L%{_libdir} `glib-config --libs`" autoreconf -ifv # --enable-ibp --enable-pv3 --enable-bsdav # NOTE: The build fails with graphicsmagick in obs but passes on my Leap42.1 machine. # --enable-graphicsmagick \ %configure --docdir=%{_docdir} \ --enable-libavcodec --enable-libavformat \ --enable-libv4l2 --enable-libv4lconvert --enable-oss --enable-alsa \ --enable-libpostproc --enable-v4l \ --enable-freetype2 --enable-lame --enable-xvid --enable-x264 \ --enable-ogg --enable-vorbis --enable-vorbisenc --enable-theora \ --enable-libdvdread --enable-libdv --enable-libquicktime \ --enable-lzo --with-lzo-includes=%{_includedir}/lzo \ --enable-a52 --enable-faac --enable-libxml2 \ --enable-mjpegtools --enable-sdl \ %ifarch %ix86 x86_64 --enable-nuv \ %endif --enable-libmpeg2 --enable-libmpeg2convert \ --enable-libjpeg --enable-iconv --enable-deprecated make %{?_smp_mflags} %install make DESTDIR=%{buildroot} install %{?_smp_mflags} find %{buildroot} -type f -name "*.la" -delete -print rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{sversion} rm -rf %{buildroot}%{_docdir}/%{name}/man docs/man rm -f %{buildroot}%{_bindir}/pvmgs find docs/ -name 'Makefile*' -print -delete rm -f docs/tcmkmodhelp.py rm -f docs/make-filter-man.sh rm -f docs/make-import-man.sh find docs/ -name tcindent.sh -print -exec chmod 0644 {} \; %files %defattr(-,root,root) %{_bindir}/* %{_libdir}/%{name}-%{sversion}/ %{_mandir}/man*/* %{_datadir}/%{name}-%{sversion}/ %doc AUTHORS COPYING ChangeLog README TODO docs/* %changelog
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.