3 %bcond_without quicktime # without Quicktime playback/recording support
5 # - configure: - MPEG Z/Alpha : false
6 Summary: Tools for recording, editing, playing back and MPEG-encoding video under Linux
7 Summary(pl.UTF-8): Narzędzia do nagrywania, edycji, odtwarzania i kodowania do MPEG obrazu
12 Group: Applications/Graphics
13 Source0: http://dl.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
14 # Source0-md5: 309a6fcf0900a010d6a9c1e91afc2f5c
15 URL: http://mjpeg.sourceforge.net/
16 BuildRequires: SDL-devel >= 1.1.3
17 BuildRequires: autoconf >= 2.57
18 BuildRequires: automake >= 1:1.7
19 BuildRequires: gtk+2-devel >= 2:2.4.0
20 BuildRequires: libdv-devel >= 0.9.5
21 BuildRequires: libjpeg-devel
22 BuildRequires: libmovtar-devel >= 0.0.2
23 BuildRequires: libpng-devel
24 %{?with_quicktime:BuildRequires: libquicktime-devel >= 0.9.4}
25 BuildRequires: libtool >= 2:1.5
26 BuildRequires: pkgconfig
27 BuildRequires: xorg-lib-libX11-devel
28 # only checked for, not used for anything
29 #BuildRequires: xorg-lib-libXxf86dga-devel
30 Requires: %{name}-libs = %{version}-%{release}
31 Obsoletes: libmjpegtools0
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 The MJPEG-tools are a basic set of utilities for recording, editing,
36 playing back and encoding (to MPEG) video under Linux. Recording can
37 be done with Zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle
38 DC10(+), Marvel G200/G400), these can also playback video using the
39 hardware. With the rest of the tools, this video can be edited and
40 encoded into MPEG 1/2 or DivX video.
42 %description -l pl.UTF-8
43 MJPEG-tools to podstawowy zestaw narzędzi do nagrywania, edycji,
44 odtwarzania i kodowania (do MPEG) obrazu pod Linuksem. Nagrywać można
45 przy użyciu kart MJPEG opartych na Zoranie (LML33, Iomega Buz,
46 Pinnacle DC10(+), Marvel G200/G400), na nich można także odtwarzać
47 obraz ze wsparciem sprzętowym. Przy pomocy pozostałych narzędzi obraz
48 można obrabiać i kodować do formatu MPEG 1/2 lub DivX.
51 Summary: MJPEG-tools shared libraries
52 Summary(pl.UTF-8): Biblioteki współdzielone MJPEG-tools
56 MJPEG-tools shared libraries.
58 %description libs -l pl.UTF-8
59 Biblioteki współdzielone MJPEG-tools.
62 Summary: Development headers for the mjpegtools
63 Summary(pl.UTF-8): Pliki nagłówkowe mjpegtools
64 Group: Development/Libraries
65 Requires: %{name}-libs = %{version}-%{release}
66 Obsoletes: libmjpegtools0-devel
67 # libmjpegutils has no additional deps
68 # liblavfile R: libquicktime-devel libdv-devel
69 # liblavjpeg R: libjpeg-devel
70 # liblavplay R: SDL-devel xorg-lib-libX11-devel +liblavfile,liblavjpeg
71 # liblavrec R: +liblavfile,liblavjpeg
72 # libmpeg2encpp R: libstdc++-devel
73 # libmplex2 R: libstdc++-devel
76 This package contains C system header files needed to compile
77 applications that use part of the libraries of the mjpegtools package.
79 %description devel -l pl.UTF-8
80 Ten pakiet zawiera pliki nagłówkowe C potrzebne do kompilowania
81 aplikacji używających części bibliotek z pakietu mjpegtools.
84 Summary: Static libraries for mjpegtools
85 Summary(pl.UTF-8): Statyczne biblioteki mjpegtools
86 Group: Development/Libraries
87 Requires: %{name}-devel = %{version}-%{release}
90 Static libraries for mjpegtools.
92 %description static -l pl.UTF-8
93 Statyczne biblioteki mjpegtools.
105 --with-dv=%{_prefix} \
106 %{!?with_quicktime:--without-libquicktime} \
114 rm -rf $RPM_BUILD_ROOT
117 DESTDIR=$RPM_BUILD_ROOT
119 rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
122 rm -rf $RPM_BUILD_ROOT
124 %post -p /sbin/postshell
125 -/usr/sbin/fix-info-dir -c %{_infodir}
127 %postun -p /sbin/postshell
128 -/usr/sbin/fix-info-dir -c %{_infodir}
130 %post libs -p /sbin/ldconfig
131 %postun libs -p /sbin/ldconfig
134 %defattr(644,root,root,755)
135 %attr(755,root,root) %{_bindir}/lav*
136 %attr(755,root,root) %{_bindir}/yuv*
137 %attr(755,root,root) %{_bindir}/jpeg2yuv
138 %attr(755,root,root) %{_bindir}/testrec
139 %attr(755,root,root) %{_bindir}/y4m*
140 %attr(755,root,root) %{_bindir}/pgm*
141 %attr(755,root,root) %{_bindir}/png2yuv
142 %attr(755,root,root) %{_bindir}/ppm*
143 %attr(755,root,root) %{_bindir}/glav
144 %attr(755,root,root) %{_bindir}/ypipe
145 %attr(755,root,root) %{_bindir}/mp*
146 %attr(755,root,root) %{_bindir}/*.flt
147 %attr(755,root,root) %{_bindir}/anytovcd.sh
148 %attr(755,root,root) %{_bindir}/mjpeg_simd_helper
149 %attr(755,root,root) %{_bindir}/pnmtoy4m
150 %attr(755,root,root) %{_bindir}/yuyvtoy4m
152 %{_infodir}/mjpeg-howto*
155 %defattr(644,root,root,755)
156 %doc AUTHORS BUGS CHANGES HINTS PLANS README TODO
157 %attr(755,root,root) %{_libdir}/lib*.so.*.*
158 %attr(755,root,root) %{_libdir}/lib*.so.0
162 %defattr(644,root,root,755)
163 %attr(755,root,root) %{_libdir}/lib*.so
165 %{_includedir}/mjpegtools
166 %{_pkgconfigdir}/*.pc
169 %defattr(644,root,root,755)