]> git.pld-linux.org Git - packages/mjpegtools.git/blame - mjpegtools.spec
- rel 2
[packages/mjpegtools.git] / mjpegtools.spec
CommitLineData
34a5ff60
JB
1#
2# Conditional build:
3%bcond_without quicktime # without Quicktime playback/recording support
2fef353f
ER
4# TODO
5# - configure: - MPEG Z/Alpha : false
8010b1d1 6Summary: Tools for recording, editing, playing back and MPEG-encoding video under Linux
431a6560 7Summary(pl.UTF-8): Narzędzia do nagrywania, edycji, odtwarzania i kodowania do MPEG obrazu
73c3f2c0 8Name: mjpegtools
4bf2b08e 9Version: 1.8.0
4beabc65 10Release: 2
73c3f2c0 11License: GPL
a2aa66d1 12Group: Applications/Graphics
e29e8b56 13Source0: http://dl.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz
4bf2b08e 14# Source0-md5: 6fd98362310480bdaf7171e9659f165f
34a5ff60 15Patch0: %{name}-link.patch
d0ce65ae 16Patch1: %{name}-headers.patch
04649d38 17Patch2: %{name}-gcc4.patch
73c3f2c0 18URL: http://mjpeg.sourceforge.net/
9a4cc9b3 19BuildRequires: SDL-devel >= 1.1.3
34a5ff60
JB
20BuildRequires: autoconf >= 2.57
21BuildRequires: automake >= 1:1.7
22BuildRequires: gtk+2-devel >= 2:2.4.0
9a4cc9b3 23BuildRequires: libdv-devel >= 0.9.5
a2aa66d1 24BuildRequires: libjpeg-devel
4663acf8 25BuildRequires: libmovtar-devel >= 0.0.2
a2aa66d1 26BuildRequires: libpng-devel
34a5ff60 27%{?with_quicktime:BuildRequires: libquicktime-devel >= 0.9.4}
9a4cc9b3 28BuildRequires: libtool >= 2:1.5
34a5ff60 29BuildRequires: pkgconfig
dcb8826d
JB
30BuildRequires: xorg-lib-libX11-devel
31# only checked for, not used for anything
32#BuildRequires: xorg-lib-libXxf86dga-devel
5c3a78dc 33Requires: %{name}-libs = %{version}-%{release}
d1bc43d5 34Obsoletes: libmjpegtools0
34a5ff60 35BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
73c3f2c0 36
37%description
38The MJPEG-tools are a basic set of utilities for recording, editing,
8010b1d1
JB
39playing back and encoding (to MPEG) video under Linux. Recording can
40be done with Zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle
73c3f2c0 41DC10(+), Marvel G200/G400), these can also playback video using the
42hardware. With the rest of the tools, this video can be edited and
8010b1d1
JB
43encoded into MPEG 1/2 or DivX video.
44
1fb6316b
JR
45%description -l pl.UTF-8
46MJPEG-tools to podstawowy zestaw narzędzi do nagrywania, edycji,
47odtwarzania i kodowania (do MPEG) obrazu pod Linuksem. Nagrywać można
48przy użyciu kart MJPEG opartych na Zoranie (LML33, Iomega Buz,
49Pinnacle DC10(+), Marvel G200/G400), na nich można także odtwarzać
50obraz ze wsparciem sprzętowym. Przy pomocy pozostałych narzędzi obraz
51można obrabiać i kodować do formatu MPEG 1/2 lub DivX.
73c3f2c0 52
a2aa66d1
JB
53%package libs
54Summary: MJPEG-tools shared libraries
431a6560 55Summary(pl.UTF-8): Biblioteki współdzielone MJPEG-tools
a2aa66d1
JB
56Group: Libraries
57
58%description libs
59MJPEG-tools shared libraries.
60
1fb6316b
JR
61%description libs -l pl.UTF-8
62Biblioteki współdzielone MJPEG-tools.
a2aa66d1 63
73c3f2c0 64%package devel
8010b1d1 65Summary: Development headers for the mjpegtools
431a6560 66Summary(pl.UTF-8): Pliki nagłówkowe mjpegtools
73c3f2c0 67Group: Development/Libraries
5c3a78dc 68Requires: %{name}-libs = %{version}-%{release}
d1bc43d5 69Obsoletes: libmjpegtools0-devel
dcb8826d
JB
70# libmjpegutils has no additional deps
71# liblavfile R: libquicktime-devel libdv-devel
72# liblavjpeg R: libjpeg-devel
73# liblavplay R: SDL-devel xorg-lib-libX11-devel +liblavfile,liblavjpeg
74# liblavrec R: +liblavfile,liblavjpeg
75# libmpeg2encpp R: libstdc++-devel
76# libmplex2 R: libstdc++-devel
73c3f2c0 77
78%description devel
8010b1d1
JB
79This package contains C system header files needed to compile
80applications that use part of the libraries of the mjpegtools package.
81
1fb6316b
JR
82%description devel -l pl.UTF-8
83Ten pakiet zawiera pliki nagłówkowe C potrzebne do kompilowania
84aplikacji używających części bibliotek z pakietu mjpegtools.
73c3f2c0 85
86%package static
87Summary: Static libraries for mjpegtools
431a6560 88Summary(pl.UTF-8): Statyczne biblioteki mjpegtools
73c3f2c0 89Group: Development/Libraries
5c3a78dc 90Requires: %{name}-devel = %{version}-%{release}
73c3f2c0 91
92%description static
8010b1d1
JB
93Static libraries for mjpegtools.
94
1fb6316b 95%description static -l pl.UTF-8
8010b1d1 96Statyczne biblioteki mjpegtools.
73c3f2c0 97
98%prep
99%setup -q
34a5ff60 100%patch0 -p1
d0ce65ae 101%patch1 -p1
04649d38 102%patch2 -p1
da46dc0b 103
73c3f2c0 104%build
a2aa66d1
JB
105%{__libtoolize}
106%{__aclocal}
107%{__autoconf}
34a5ff60 108%{__autoheader}
a2aa66d1
JB
109%{__automake}
110%configure \
081570e3 111 --with-dv=%{_prefix} \
34a5ff60 112 %{!?with_quicktime:--without-libquicktime} \
2dd5f278 113%ifarch ppc
114 --disable-simd-accel
a2aa66d1
JB
115%endif
116
73c3f2c0 117%{__make}
118
119%install
120rm -rf $RPM_BUILD_ROOT
73c3f2c0 121
9a4cc9b3
JB
122%{__make} install \
123 DESTDIR=$RPM_BUILD_ROOT
73c3f2c0 124
e5b23170
ER
125rm -f $RPM_BUILD_ROOT%{_infodir}/dir*
126
73c3f2c0 127%clean
128rm -rf $RPM_BUILD_ROOT
129
9a4cc9b3
JB
130%post
131[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
132
133%postun
134[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
135
a2aa66d1
JB
136%post libs -p /sbin/ldconfig
137%postun libs -p /sbin/ldconfig
8010b1d1 138
73c3f2c0 139%files
140%defattr(644,root,root,755)
73c3f2c0 141%attr(755,root,root) %{_bindir}/lav*
142%attr(755,root,root) %{_bindir}/yuv*
143%attr(755,root,root) %{_bindir}/jpeg2yuv
73c3f2c0 144%attr(755,root,root) %{_bindir}/testrec
145%attr(755,root,root) %{_bindir}/y4m*
9a4cc9b3
JB
146%attr(755,root,root) %{_bindir}/pgm*
147%attr(755,root,root) %{_bindir}/png2yuv
73c3f2c0 148%attr(755,root,root) %{_bindir}/ppm*
149%attr(755,root,root) %{_bindir}/glav
150%attr(755,root,root) %{_bindir}/ypipe
151%attr(755,root,root) %{_bindir}/mp*
152%attr(755,root,root) %{_bindir}/*.flt
e5b23170
ER
153%attr(755,root,root) %{_bindir}/anytovcd.sh
154%attr(755,root,root) %{_bindir}/mjpeg_simd_helper
155%attr(755,root,root) %{_bindir}/pnmtoy4m
156%attr(755,root,root) %{_bindir}/yuyvtoy4m
73c3f2c0 157%{_mandir}/man1/*
9a4cc9b3 158%{_infodir}/mjpeg-howto*
a2aa66d1
JB
159
160%files libs
f32d5fc9 161%defattr(644,root,root,755)
a2aa66d1
JB
162%doc AUTHORS BUGS CHANGES HINTS PLANS README TODO
163%attr(755,root,root) %{_libdir}/lib*.so.*.*
73c3f2c0 164%{_mandir}/man5/*
165
166%files devel
167%defattr(644,root,root,755)
a2aa66d1
JB
168%attr(755,root,root) %{_libdir}/lib*.so
169%{_libdir}/lib*.la
8972b3bb 170%{_includedir}/mjpegtools
73c3f2c0 171%{_pkgconfigdir}/*.pc
8010b1d1
JB
172
173%files static
174%defattr(644,root,root,755)
175%{_libdir}/lib*.a
This page took 0.094201 seconds and 4 git commands to generate.