Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.1
mjpegtools
mjpegtools.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mjpegtools.spec of Package mjpegtools
# # spec file for package mjpegtools # # Copyright (c) 2011 SUSE LINUX Products 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/ # # norootforbuild Name: mjpegtools Version: 1.9.0 Release: 22 License: BSD3c(or similar) ; GPLv2+ Group: Productivity/Multimedia/Video/Editors and Convertors Summary: MJPEG Video Capture and Processing Tools AutoReqProv: on Url: http://mjpeg.sourceforge.net/ %if 0%{?BUILD_ORIG} Source0: %{name}-%{version}.tar.bz2 %else # FIXME read the comment at the top. # WARNING: This is not a comment, but a real command to repack souce: #%(sh %{_sourcedir}/%{name}-codecpatch.sh %{_sourcedir} %{name}-%{version}.tar.bz2 %{name}-%{version}-patched.tar.bz2 ) Source0: %{name}-%{version}-patched.tar.bz2 %endif Source1: mjpegtools-codecpatch.sh Patch0: mjpegtools-cpuinfo.patch Patch4: mjpegtools-vector_alignment.patch Patch5: mjpegtools-getopt.patch Patch6: mjpegtools-writeable_strings.patch Patch7: mjpegtools-fix-invalid-conversion.patch Patch8: mjpegtools-1.9.0-fix-compiler-error.patch Patch9: mjpegtools-jpeg-7.patch Patch10: mjpegtools-fix_init.patch Patch11: mjpegtools-fix_lib_versioning.patch Patch12: mjpegtools-no_arch_tuning.patch Patch13: mjpegtools-v4l-2.6.38.patch Patch21: mjpegtools-fix_lib_versioning-mpeg2enc.patch Patch100: %{name}-codecpatch.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %install_info_prereq BuildRequires: SDL-devel BuildRequires: gcc-c++ BuildRequires: gtk2-devel BuildRequires: libjpeg-devel BuildRequires: libpng-devel BuildRequires: libquicktime-devel BuildRequires: nasm %if 0%{?suse_version} >= 1210 BuildRequires: libv4l-devel >= 0.8.4 %endif #BuildRequires: gtk1-compat-devel #BuildRequires: libmovtar popt-devel %define lib_version %(echo %{version}|cut -d. -f1-2) %description The mjpegtools allow for capture, playback, processing, and simple editing of MJPEG AV data. The hardware I/O applications are intended for use with Zoran MJPEG framegrabber-based hardware (see the zoran-driver package), but the processing tools can be used with MJPEG data from other sources as well. %package devel License: BSD3c(or similar) ; GPLv2+ Group: Development/Libraries/C and C++ Summary: MJPEG Video Capture and Processing Tools Requires: %{name} = %{version} Requires: SDL-devel glibc-devel zlib-devel libdv-devel libjpeg-devel libquicktime-devel %description devel This package contains all files needed to develop code that uses the mjpegtools libraries. %prep %setup -q %patch0 %if 0%{?BUILD_ORIG} %patch4 -p1 %patch21 %endif %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %if ! 0%{?BUILD_ORIG} # remove references to files removed by %%{name}-codecpatch.sh %patch100 -p1 %endif %patch10 %patch11 %patch12 %if 0%{?suse_version} >= 1210 %patch13 -p1 %endif %build %if 0%{?BUILD_ORIG} sed -i~ '/currently broken/d' mpeg2enc/mpeg2enc.cc diff -u mpeg2enc/mpeg2enc.cc* || : %endif CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %ifnarch %ix86 CFLAGS+=" -fPIC" %endif export CXXFLAGS CFLAGS autoreconf -vfi # disable linking against libmpeg2encpp on ppc architectures ./configure \ %ifarch ppc ppc64 --disable-simd-accel \ %endif --prefix=%{_prefix} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --infodir=%{_infodir} \ --disable-warnings_as_errors \ --disable-arch_tuning # --with-quicktime=/usr/include/quicktime \ # --with-dv=/usr \ %{__make} %{?jobs:-j%jobs} %install make DESTDIR=%{buildroot} install rm -f %{buildroot}/usr/share/info/dir # remove mpeg encoding %if ! 0%{?BUILD_ORIG} for app in lav2mpeg mp2enc mpeg2enc mpegtranscode; do rm -f %{buildroot}%{_bindir}/${app} rm -f %{buildroot}%{_mandir}/man1/${app}.* done %endif rm -f %{buildroot}/%{_libdir}/*.la %clean rm -rf "%{buildroot}" %post %install_info --info-dir=%{_infodir} %{_infodir}/mjpeg-howto.info.gz /sbin/ldconfig %postun %install_info_delete --info-dir=%{_infodir} %{_infodir}/mjpeg-howto.info.gz /sbin/ldconfig %files %defattr(-,root,root) %doc AUTHORS CHANGES COPYING ChangeLog HINTS README* %{_bindir}/* %{_libdir}/lib*-%{lib_version}.so %doc %{_mandir}/man1/*.1.gz %doc %{_mandir}/man5/*.5.gz %doc %{_infodir}/mjpeg-howto* %files devel %defattr(-,root,root) %{_includedir}/mjpegtools %{_libdir}/liblavfile.so %{_libdir}/liblavjpeg.so %{_libdir}/liblavplay.so %{_libdir}/liblavrec.so %{_libdir}/libmjpegutils.so %if 0%{?BUILD_ORIG} %{_libdir}/libmpeg2encpp.so %endif %{_libdir}/libmplex2.so %{_libdir}/pkgconfig/mjpegtools.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor