mjpegtools/mjpegtools.spec

changeset 2
e3665a058d13
parent 0
4f133201e207
equal deleted inserted replaced
0:85164847c8a7 1:a4e10030bd8f
1 Name: mjpegtools 1 Name: mjpegtools
2 Summary: Tools to manipulate MPEG data
3 Vendor: Europalab Software
4 Packager: Michael Schloh von Bennewitz
5 Distribution: MeeGo Thirdparty
2 Version: 1.9.0 6 Version: 1.9.0
3 Release: 3%{?dist} 7 Release: 20101201
4 Summary: Tools to manipulate MPEG data
5
6 Group: Applications/Multimedia 8 Group: Applications/Multimedia
7 License: GPLv2 9 License: GPLv2
8 URL: http://mjpeg.sourceforge.net/ 10 URL: http://mjpeg.sourceforge.net/
9 Source0: http://downloads.sourceforge.net/mjpeg/%{name}-%{version}.tar.gz 11 Source0: http://downloads.sourceforge.net/mjpeg/%{version}/%{name}-%{version}.tar.gz
10 Patch0: %{name}-1.9.0rc1-anytovcd-ffmpegver.patch 12 Patch0: %{name}-1.9.0rc1-anytovcd-ffmpegver.patch
11 Patch1: mjpegtools-1.9.0-gcc44.patch 13 Patch1: mjpegtools-1.9.0-gcc44.patch
12 Patch2: mjpegtools-1.9.0-png-memleak.patch 14 Patch2: mjpegtools-1.9.0-png-memleak.patch
13 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 15 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
14
15 BuildRequires: libjpeg-devel
16 BuildRequires: nasm 16 BuildRequires: nasm
17 BuildRequires: libdv-devel 17 BuildRequires: libdv-devel
18 BuildRequires: SDL-devel >= 1.1.3 18 BuildRequires: libjpeg-devel
19 BuildRequires: libquicktime-devel
20 BuildRequires: libpng-devel
21 BuildRequires: SDL-devel
19 BuildRequires: SDL_gfx-devel 22 BuildRequires: SDL_gfx-devel
20 BuildRequires: libquicktime-devel >= 0.9.8
21 BuildRequires: libpng-devel
22 BuildRequires: gtk2-devel >= 2.4.0
23 Requires: %{name}-libs = %{version}-%{release} 23 Requires: %{name}-libs = %{version}-%{release}
24 # mencoder for lav2avi.sh
25 Requires: mencoder 24 Requires: mencoder
26 # ffmpeg main package, y4mscaler and which for anytovcd.sh
27 Requires: ffmpeg 25 Requires: ffmpeg
28 Requires: y4mscaler 26 Requires: y4mscaler
29 Requires: which 27 Requires: which
30 Requires(post): /sbin/install-info 28 Requires(post): /sbin/install-info
31 Requires(preun): /sbin/install-info 29 Requires(preun): /sbin/install-info
32 30
33 %description 31 %description
34 The mjpeg programs are a set of tools that can do recording of videos 32 The mjpeg programs are a set of tools that can do recording of videos
35 and playback, simple cut-and-paste editing and the MPEG compression of 33 and playback, simple cut-and-paste editing and the MPEG compression of
36 audio and video under Linux. This package contains mjpegtools console 34 audio and video under Linux. This package contains mjpegtools console
37 utilities.
38
39 %package gui
40 Summary: GUI tools to manipulate MPEG data
41 Group: Applications/Multimedia
42 Requires: %{name} = %{version}-%{release}
43
44 %description gui
45 The mjpeg programs are a set of tools that can do recording of videos
46 and playback, simple cut-and-paste editing and the MPEG compression of
47 audio and video under Linux. This package contains mjpegtools GUI
48 utilities. 35 utilities.
49 36
50 %package libs 37 %package libs
51 Summary: Libraries used by mjpegtools 38 Summary: Libraries used by mjpegtools
39 Vendor: Europalab Software
40 Packager: Michael Schloh von Bennewitz
41 Distribution: MeeGo Thirdparty
52 Group: System Environment/Libraries 42 Group: System Environment/Libraries
53 Requires: libquicktime >= 0.9.8 43 Requires: libquicktime >= 0.9.8
54 44
55 %description libs 45 %description libs
56 The mjpeg programs are a set of tools that can do recording of videos 46 The mjpeg programs are a set of tools that can do recording of videos
57 and playback, simple cut-and-paste editing and the MPEG compression of 47 and playback, simple cut-and-paste editing and the MPEG compression of
58 audio and video under Linux. This package contains libraries used by 48 audio and video under Linux. This package contains libraries used by
59 mjpegtools. 49 mjpegtools.
60 50
61 %package devel 51 %package devel
62 Summary: Development files for mjpegtools libraries 52 Summary: Development files for mjpegtools libraries
53 Vendor: Europalab Software
54 Packager: Michael Schloh von Bennewitz
55 Distribution: MeeGo Thirdparty
63 Group: Development/Libraries 56 Group: Development/Libraries
64 Requires: %{name}-libs = %{version}-%{release} 57 Requires: %{name}-libs = %{version}-%{release}
65 Requires: pkgconfig 58 Requires: pkgconfig
66 59
67 %description devel 60 %description devel
68 The mjpeg programs are a set of tools that can do recording of videos 61 The mjpeg programs are a set of tools that can do recording of videos
69 and playback, simple cut-and-paste editing and the MPEG compression of 62 and playback, simple cut-and-paste editing and the MPEG compression of
70 audio and video under Linux. This package contains development files 63 audio and video under Linux. This package contains development files
71 for building applications that use mjpegtools libraries. 64 for building applications that use mjpegtools libraries.
72
73 65
74 %prep 66 %prep
75 %setup -q 67 %setup -q
76 %patch0 -p1 68 %patch0 -p1
77 %patch1 -p1 69 %patch1 -p1
78 %patch2 -p1 70 %patch2 -p1
79 sed -i -e 's/ARCHFLAGS=.*/ARCHFLAGS=/' configure* 71 sed -i -e 's/ARCHFLAGS=.*/ARCHFLAGS=/' configure*
80 sed -i -e 's|/lib /usr/lib|/%{_lib} %{_libdir}|' configure # lib64 rpaths 72 sed -i -e 's|/lib /usr/lib|/%{_lib} %{_libdir}|' configure
81 for f in docs/yuvfps.1 ; do
82 iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
83 done
84
85 73
86 %build 74 %build
87 %configure --disable-dependency-tracking --disable-static 75 %configure
88 make # %{?_smp_mflags} 76 make %{?_smp_mflags}
89
90 77
91 %install 78 %install
92 rm -rf $RPM_BUILD_ROOT 79 rm -rf $RPM_BUILD_ROOT
93 make install DESTDIR=$RPM_BUILD_ROOT 80 make install DESTDIR=$RPM_BUILD_ROOT
94 rm -f $RPM_BUILD_ROOT{%{_infodir}/dir,%{_libdir}/lib*.la} 81 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
95 # too broken/outdated to be useful in 1.[89].0 (and would come with dep chain)
96 rm -f $RPM_BUILD_ROOT%{_bindir}/mpegtranscode 82 rm -f $RPM_BUILD_ROOT%{_bindir}/mpegtranscode
97
98 83
99 %clean 84 %clean
100 rm -rf $RPM_BUILD_ROOT 85 rm -rf $RPM_BUILD_ROOT
101 86
102
103 %post libs -p /sbin/ldconfig 87 %post libs -p /sbin/ldconfig
104 88
105 %postun libs -p /sbin/ldconfig 89 %postun libs -p /sbin/ldconfig
106
107 %post
108 /sbin/install-info %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
109
110 %preun
111 [ $1 -eq 0 ] && \
112 /sbin/install-info --delete %{_infodir}/mjpeg-howto.info %{_infodir}/dir || :
113
114 90
115 %files 91 %files
116 %defattr(-,root,root,-) 92 %defattr(-,root,root,-)
117 %doc COPYING CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO 93 %doc COPYING CHANGES ChangeLog AUTHORS BUGS README.lavpipe NEWS TODO
118 %{_bindir}/* 94 %{_bindir}/*
119 %exclude %{_bindir}/glav
120 %exclude %{_bindir}/lavplay
121 %exclude %{_bindir}/y4mhist
122 %exclude %{_bindir}/yuvplay
123 %{_mandir}/man1/*.1* 95 %{_mandir}/man1/*.1*
124 %exclude %{_mandir}/man1/lavplay.1*
125 %exclude %{_mandir}/man1/yuvplay.1*
126 %{_mandir}/man5/yuv4mpeg.5* 96 %{_mandir}/man5/yuv4mpeg.5*
127 %{_infodir}/mjpeg-howto.info* 97 %{_infodir}/mjpeg-howto.info.gz
128
129 %files gui
130 %defattr(-,root,root,-)
131 %doc README.glav
132 %{_bindir}/glav
133 # lavplay and yuvplay won't save -libs/console util users from X11 and SDL
134 # dependencies as long as liblavplay is in -libs, but they're inherently
135 # GUI tools -> include them here
136 %{_bindir}/lavplay
137 %{_bindir}/y4mhist
138 %{_bindir}/yuvplay
139 %{_mandir}/man1/lavplay.1*
140 %{_mandir}/man1/yuvplay.1*
141 98
142 %files libs 99 %files libs
143 %defattr(-,root,root,-) 100 %defattr(-,root,root,-)
144 %doc COPYING 101 %doc COPYING
145 %{_libdir}/lib*.so.* 102 %{_libdir}/lib*.so.*
146 103
147 %files devel 104 %files devel
148 %defattr(-,root,root,-) 105 %defattr(-,root,root,-)
149 %{_includedir}/%{name} 106 %{_includedir}/%{name}
107 %{_libdir}/lib*.a
108 %{_libdir}/lib*.la
150 %{_libdir}/lib*.so 109 %{_libdir}/lib*.so
151 %{_libdir}/pkgconfig/%{name}.pc 110 %{_libdir}/pkgconfig/%{name}.pc
152 111
153
154 %changelog 112 %changelog
113 * Wed Dec 1 2010 Michael Schloh von Bennewitz <michael@schloh.com> - 1.9.0-20101201
114 - Adjust packaging and patch logic
115
155 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.9.0-3 116 * Mon Nov 1 2010 Kozinov Ivan <kozinov@gmail.com> - 1.9.0-3
156 - Build for MeeGo 1.1 117 - Package for MeeGo 1.1
157 118
158 * Fri Sep 3 2010 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-2 119 * Fri Sep 3 2010 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-2
159 - Fix a memleak which is causing issues for LiVES 120 - Fix a memleak which is causing issues for LiVES
160 121
161 * Wed Apr 15 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-1 122 * Wed Apr 15 2009 Hans de Goede <j.w.r.degoede@hhs.nl> 1.9.0-1

mercurial