]>
Commit | Line | Data |
---|---|---|
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 | 6 | Summary: Tools for recording, editing, playing back and MPEG-encoding video under Linux |
431a6560 | 7 | Summary(pl.UTF-8): Narzędzia do nagrywania, edycji, odtwarzania i kodowania do MPEG obrazu |
73c3f2c0 | 8 | Name: mjpegtools |
4bf2b08e | 9 | Version: 1.8.0 |
4beabc65 | 10 | Release: 2 |
73c3f2c0 | 11 | License: GPL |
a2aa66d1 | 12 | Group: Applications/Graphics |
e29e8b56 | 13 | Source0: http://dl.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz |
4bf2b08e | 14 | # Source0-md5: 6fd98362310480bdaf7171e9659f165f |
34a5ff60 | 15 | Patch0: %{name}-link.patch |
d0ce65ae | 16 | Patch1: %{name}-headers.patch |
04649d38 | 17 | Patch2: %{name}-gcc4.patch |
73c3f2c0 | 18 | URL: http://mjpeg.sourceforge.net/ |
9a4cc9b3 | 19 | BuildRequires: SDL-devel >= 1.1.3 |
34a5ff60 JB |
20 | BuildRequires: autoconf >= 2.57 |
21 | BuildRequires: automake >= 1:1.7 | |
22 | BuildRequires: gtk+2-devel >= 2:2.4.0 | |
9a4cc9b3 | 23 | BuildRequires: libdv-devel >= 0.9.5 |
a2aa66d1 | 24 | BuildRequires: libjpeg-devel |
4663acf8 | 25 | BuildRequires: libmovtar-devel >= 0.0.2 |
a2aa66d1 | 26 | BuildRequires: libpng-devel |
34a5ff60 | 27 | %{?with_quicktime:BuildRequires: libquicktime-devel >= 0.9.4} |
9a4cc9b3 | 28 | BuildRequires: libtool >= 2:1.5 |
34a5ff60 | 29 | BuildRequires: pkgconfig |
dcb8826d JB |
30 | BuildRequires: xorg-lib-libX11-devel |
31 | # only checked for, not used for anything | |
32 | #BuildRequires: xorg-lib-libXxf86dga-devel | |
5c3a78dc | 33 | Requires: %{name}-libs = %{version}-%{release} |
d1bc43d5 | 34 | Obsoletes: libmjpegtools0 |
34a5ff60 | 35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
73c3f2c0 | 36 | |
37 | %description | |
38 | The MJPEG-tools are a basic set of utilities for recording, editing, | |
8010b1d1 JB |
39 | playing back and encoding (to MPEG) video under Linux. Recording can |
40 | be done with Zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle | |
73c3f2c0 | 41 | DC10(+), Marvel G200/G400), these can also playback video using the |
42 | hardware. With the rest of the tools, this video can be edited and | |
8010b1d1 JB |
43 | encoded into MPEG 1/2 or DivX video. |
44 | ||
1fb6316b JR |
45 | %description -l pl.UTF-8 |
46 | MJPEG-tools to podstawowy zestaw narzędzi do nagrywania, edycji, | |
47 | odtwarzania i kodowania (do MPEG) obrazu pod Linuksem. Nagrywać można | |
48 | przy użyciu kart MJPEG opartych na Zoranie (LML33, Iomega Buz, | |
49 | Pinnacle DC10(+), Marvel G200/G400), na nich można także odtwarzać | |
50 | obraz ze wsparciem sprzętowym. Przy pomocy pozostałych narzędzi obraz | |
51 | można obrabiać i kodować do formatu MPEG 1/2 lub DivX. | |
73c3f2c0 | 52 | |
a2aa66d1 JB |
53 | %package libs |
54 | Summary: MJPEG-tools shared libraries | |
431a6560 | 55 | Summary(pl.UTF-8): Biblioteki współdzielone MJPEG-tools |
a2aa66d1 JB |
56 | Group: Libraries |
57 | ||
58 | %description libs | |
59 | MJPEG-tools shared libraries. | |
60 | ||
1fb6316b JR |
61 | %description libs -l pl.UTF-8 |
62 | Biblioteki współdzielone MJPEG-tools. | |
a2aa66d1 | 63 | |
73c3f2c0 | 64 | %package devel |
8010b1d1 | 65 | Summary: Development headers for the mjpegtools |
431a6560 | 66 | Summary(pl.UTF-8): Pliki nagłówkowe mjpegtools |
73c3f2c0 | 67 | Group: Development/Libraries |
5c3a78dc | 68 | Requires: %{name}-libs = %{version}-%{release} |
d1bc43d5 | 69 | Obsoletes: 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 |
79 | This package contains C system header files needed to compile |
80 | applications that use part of the libraries of the mjpegtools package. | |
81 | ||
1fb6316b JR |
82 | %description devel -l pl.UTF-8 |
83 | Ten pakiet zawiera pliki nagłówkowe C potrzebne do kompilowania | |
84 | aplikacji używających części bibliotek z pakietu mjpegtools. | |
73c3f2c0 | 85 | |
86 | %package static | |
87 | Summary: Static libraries for mjpegtools | |
431a6560 | 88 | Summary(pl.UTF-8): Statyczne biblioteki mjpegtools |
73c3f2c0 | 89 | Group: Development/Libraries |
5c3a78dc | 90 | Requires: %{name}-devel = %{version}-%{release} |
73c3f2c0 | 91 | |
92 | %description static | |
8010b1d1 JB |
93 | Static libraries for mjpegtools. |
94 | ||
1fb6316b | 95 | %description static -l pl.UTF-8 |
8010b1d1 | 96 | Statyczne 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 | |
120 | rm -rf $RPM_BUILD_ROOT | |
73c3f2c0 | 121 | |
9a4cc9b3 JB |
122 | %{__make} install \ |
123 | DESTDIR=$RPM_BUILD_ROOT | |
73c3f2c0 | 124 | |
e5b23170 ER |
125 | rm -f $RPM_BUILD_ROOT%{_infodir}/dir* |
126 | ||
73c3f2c0 | 127 | %clean |
128 | rm -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 |