]> git.pld-linux.org Git - packages/mjpegtools.git/blame - mjpegtools.spec
- updated to 2.2.1 (new sonames)
[packages/mjpegtools.git] / mjpegtools.spec
CommitLineData
34a5ff60
JB
1#
2# Conditional build:
3%bcond_without quicktime # without Quicktime playback/recording support
a02da5ad 4%bcond_with simd # MMX/SSE/Altivec instructions
4ed20a6c 5#
a02da5ad
JB
6%ifarch pentium3 pentium4 %{x8664} x32
7%define with_simd 1
8%endif
8010b1d1 9Summary: Tools for recording, editing, playing back and MPEG-encoding video under Linux
431a6560 10Summary(pl.UTF-8): Narzędzia do nagrywania, edycji, odtwarzania i kodowania do MPEG obrazu
73c3f2c0 11Name: mjpegtools
a02da5ad
JB
12Version: 2.2.1
13Release: 1
6e881204 14License: GPL v2+
a2aa66d1 15Group: Applications/Graphics
a02da5ad
JB
16Source0: https://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
17# Source0-md5: 168e0131c0b8a2e31df7a73eb602fc32
18Patch0: %{name}-pthread.patch
19Patch1: x32.patch
20URL: https://mjpeg.sourceforge.io/
9a4cc9b3 21BuildRequires: SDL-devel >= 1.1.3
4ed20a6c 22BuildRequires: SDL_gfx-devel
34a5ff60
JB
23BuildRequires: autoconf >= 2.57
24BuildRequires: automake >= 1:1.7
25BuildRequires: gtk+2-devel >= 2:2.4.0
9a4cc9b3 26BuildRequires: libdv-devel >= 0.9.5
6e881204 27BuildRequires: libjpeg-devel >= 6b
a2aa66d1 28BuildRequires: libpng-devel
4ed20a6c
JB
29%{?with_quicktime:BuildRequires: libquicktime-devel >= 0.9.7}
30BuildRequires: libstdc++-devel
9a4cc9b3 31BuildRequires: libtool >= 2:1.5
34a5ff60 32BuildRequires: pkgconfig
dcb8826d
JB
33BuildRequires: xorg-lib-libX11-devel
34# only checked for, not used for anything
35#BuildRequires: xorg-lib-libXxf86dga-devel
5c3a78dc 36Requires: %{name}-libs = %{version}-%{release}
a02da5ad 37Obsoletes: libmjpegtools0 < 2
34a5ff60 38BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73c3f2c0 39
40%description
41The MJPEG-tools are a basic set of utilities for recording, editing,
8010b1d1
JB
42playing back and encoding (to MPEG) video under Linux. Recording can
43be done with Zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle
73c3f2c0 44DC10(+), Marvel G200/G400), these can also playback video using the
45hardware. With the rest of the tools, this video can be edited and
8010b1d1
JB
46encoded into MPEG 1/2 or DivX video.
47
1fb6316b
JR
48%description -l pl.UTF-8
49MJPEG-tools to podstawowy zestaw narzędzi do nagrywania, edycji,
50odtwarzania i kodowania (do MPEG) obrazu pod Linuksem. Nagrywać można
51przy użyciu kart MJPEG opartych na Zoranie (LML33, Iomega Buz,
52Pinnacle DC10(+), Marvel G200/G400), na nich można także odtwarzać
53obraz ze wsparciem sprzętowym. Przy pomocy pozostałych narzędzi obraz
54można obrabiać i kodować do formatu MPEG 1/2 lub DivX.
73c3f2c0 55
a2aa66d1
JB
56%package libs
57Summary: MJPEG-tools shared libraries
431a6560 58Summary(pl.UTF-8): Biblioteki współdzielone MJPEG-tools
a2aa66d1 59Group: Libraries
4ed20a6c 60Requires: libquicktime >= 0.9.7
a2aa66d1
JB
61
62%description libs
63MJPEG-tools shared libraries.
64
1fb6316b
JR
65%description libs -l pl.UTF-8
66Biblioteki współdzielone MJPEG-tools.
a2aa66d1 67
73c3f2c0 68%package devel
8010b1d1 69Summary: Development headers for the mjpegtools
431a6560 70Summary(pl.UTF-8): Pliki nagłówkowe mjpegtools
73c3f2c0 71Group: Development/Libraries
5c3a78dc 72Requires: %{name}-libs = %{version}-%{release}
a02da5ad 73Obsoletes: libmjpegtools0-devel < 2
dcb8826d 74# libmjpegutils has no additional deps
4ed20a6c 75# liblavfile R: libquicktime-devel >= 0.9.7 libdv-devel
dcb8826d
JB
76# liblavjpeg R: libjpeg-devel
77# liblavplay R: SDL-devel xorg-lib-libX11-devel +liblavfile,liblavjpeg
78# liblavrec R: +liblavfile,liblavjpeg
79# libmpeg2encpp R: libstdc++-devel
80# libmplex2 R: libstdc++-devel
73c3f2c0 81
82%description devel
8010b1d1
JB
83This package contains C system header files needed to compile
84applications that use part of the libraries of the mjpegtools package.
85
1fb6316b
JR
86%description devel -l pl.UTF-8
87Ten pakiet zawiera pliki nagłówkowe C potrzebne do kompilowania
88aplikacji używających części bibliotek z pakietu mjpegtools.
73c3f2c0 89
90%package static
91Summary: Static libraries for mjpegtools
431a6560 92Summary(pl.UTF-8): Statyczne biblioteki mjpegtools
73c3f2c0 93Group: Development/Libraries
5c3a78dc 94Requires: %{name}-devel = %{version}-%{release}
73c3f2c0 95
96%description static
8010b1d1
JB
97Static libraries for mjpegtools.
98
1fb6316b 99%description static -l pl.UTF-8
8010b1d1 100Statyczne biblioteki mjpegtools.
73c3f2c0 101
102%prep
103%setup -q
6fbda36c 104%patch0 -p1
4ed20a6c 105%patch1 -p1
da46dc0b 106
73c3f2c0 107%build
a2aa66d1
JB
108%{__libtoolize}
109%{__aclocal}
110%{__autoconf}
34a5ff60 111%{__autoheader}
a2aa66d1
JB
112%{__automake}
113%configure \
1580c3fe 114 PTHREAD_LIBS="-lpthread" \
34a5ff60 115 %{!?with_quicktime:--without-libquicktime} \
a02da5ad 116%if %{without simd}
2dd5f278 117 --disable-simd-accel
a2aa66d1
JB
118%endif
119
73c3f2c0 120%{__make}
121
122%install
123rm -rf $RPM_BUILD_ROOT
73c3f2c0 124
9a4cc9b3
JB
125%{__make} install \
126 DESTDIR=$RPM_BUILD_ROOT
73c3f2c0 127
a1d082eb 128rm -f $RPM_BUILD_ROOT%{_infodir}/dir
e5b23170 129
73c3f2c0 130%clean
131rm -rf $RPM_BUILD_ROOT
132
a1d082eb 133%post -p /sbin/postshell
e13e7948 134-/usr/sbin/fix-info-dir -c %{_infodir}
9a4cc9b3 135
a1d082eb 136%postun -p /sbin/postshell
e13e7948 137-/usr/sbin/fix-info-dir -c %{_infodir}
9a4cc9b3 138
a2aa66d1
JB
139%post libs -p /sbin/ldconfig
140%postun libs -p /sbin/ldconfig
8010b1d1 141
73c3f2c0 142%files
143%defattr(644,root,root,755)
a02da5ad 144%doc README.lavpipe README.transist
a1d082eb
JB
145%attr(755,root,root) %{_bindir}/anytovcd.sh
146%attr(755,root,root) %{_bindir}/glav
73c3f2c0 147%attr(755,root,root) %{_bindir}/jpeg2yuv
a1d082eb
JB
148%attr(755,root,root) %{_bindir}/lav*
149%attr(755,root,root) %{_bindir}/matteblend.flt
150%attr(755,root,root) %{_bindir}/mjpeg_simd_helper
151%attr(755,root,root) %{_bindir}/mp2enc
152%attr(755,root,root) %{_bindir}/mpeg2enc
153%attr(755,root,root) %{_bindir}/mpegtranscode
154%attr(755,root,root) %{_bindir}/mplex
155%attr(755,root,root) %{_bindir}/multiblend.flt
156%attr(755,root,root) %{_bindir}/pgmtoy4m
157%attr(755,root,root) %{_bindir}/png2yuv
158%attr(755,root,root) %{_bindir}/pnmtoy4m
159%attr(755,root,root) %{_bindir}/ppmtoy4m
160%attr(755,root,root) %{_bindir}/qttoy4m
a1d082eb 161%attr(755,root,root) %{_bindir}/transist.flt
73c3f2c0 162%attr(755,root,root) %{_bindir}/y4m*
73c3f2c0 163%attr(755,root,root) %{_bindir}/ypipe
a1d082eb 164%attr(755,root,root) %{_bindir}/yuv*
e5b23170 165%attr(755,root,root) %{_bindir}/yuyvtoy4m
a1d082eb
JB
166%{_mandir}/man1/jpeg2yuv.1*
167%{_mandir}/man1/lav*.1*
168%{_mandir}/man1/mjpegtools.1*
169%{_mandir}/man1/mp2enc.1*
170%{_mandir}/man1/mpeg2enc.1*
171%{_mandir}/man1/mplex.1*
172%{_mandir}/man1/pgmtoy4m.1*
173%{_mandir}/man1/png2yuv.1*
174%{_mandir}/man1/pnmtoy4m.1*
175%{_mandir}/man1/ppmtoy4m.1*
176%{_mandir}/man1/y4m*.1*
177%{_mandir}/man1/yuv*.1*
178%{_infodir}/mjpeg-howto.info*
a2aa66d1
JB
179
180%files libs
f32d5fc9 181%defattr(644,root,root,755)
4ed20a6c 182%doc AUTHORS BUGS CHANGES HINTS PLANS README README.DV README.avilib TODO
a02da5ad
JB
183%attr(755,root,root) %{_libdir}/liblavfile-2.2.so.*.*.*
184%attr(755,root,root) %ghost %{_libdir}/liblavfile-2.2.so.0
185%attr(755,root,root) %{_libdir}/liblavjpeg-2.2.so.*.*.*
186%attr(755,root,root) %ghost %{_libdir}/liblavjpeg-2.2.so.0
187%attr(755,root,root) %{_libdir}/liblavplay-2.2.so.*.*.*
188%attr(755,root,root) %ghost %{_libdir}/liblavplay-2.2.so.0
189%attr(755,root,root) %{_libdir}/libmjpegutils-2.2.so.*.*.*
190%attr(755,root,root) %ghost %{_libdir}/libmjpegutils-2.2.so.0
191%attr(755,root,root) %{_libdir}/libmpeg2encpp-2.2.so.*.*.*
192%attr(755,root,root) %ghost %{_libdir}/libmpeg2encpp-2.2.so.0
193%attr(755,root,root) %{_libdir}/libmplex2-2.2.so.*.*.*
194%attr(755,root,root) %ghost %{_libdir}/libmplex2-2.2.so.0
a1d082eb 195%{_mandir}/man5/yuv4mpeg.5*
73c3f2c0 196
197%files devel
198%defattr(644,root,root,755)
a1d082eb
JB
199%attr(755,root,root) %{_libdir}/liblavfile.so
200%attr(755,root,root) %{_libdir}/liblavjpeg.so
201%attr(755,root,root) %{_libdir}/liblavplay.so
a1d082eb
JB
202%attr(755,root,root) %{_libdir}/libmjpegutils.so
203%attr(755,root,root) %{_libdir}/libmpeg2encpp.so
204%attr(755,root,root) %{_libdir}/libmplex2.so
205%{_libdir}/liblavfile.la
206%{_libdir}/liblavjpeg.la
207%{_libdir}/liblavplay.la
a1d082eb
JB
208%{_libdir}/libmjpegutils.la
209%{_libdir}/libmpeg2encpp.la
210%{_libdir}/libmplex2.la
8972b3bb 211%{_includedir}/mjpegtools
a1d082eb 212%{_pkgconfigdir}/mjpegtools.pc
8010b1d1
JB
213
214%files static
215%defattr(644,root,root,755)
a1d082eb
JB
216%{_libdir}/liblavfile.a
217%{_libdir}/liblavjpeg.a
218%{_libdir}/liblavplay.a
a1d082eb
JB
219%{_libdir}/libmjpegutils.a
220%{_libdir}/libmpeg2encpp.a
221%{_libdir}/libmplex2.a
This page took 0.153425 seconds and 4 git commands to generate.