Logoj0ke.net Open Build Service > Projects > multimedia:EL5 > mpeg4ip > Changes
Sign Up | Log In

Changes of Revision 2

[-] Changed mpeg4ip.spec
x
 
1
@@ -1,34 +1,47 @@
2
 # norootforbuild
3
-#!BuildIgnore:          post-build-checks
4
+
5
 Name:      mpeg4ip
6
-Version:   1.5.0.1
7
-Release:   10
8
+Version:   1.6.1
9
+Release:   3
10
 Summary:   Set of linux video stream processing utilities
11
 License:   MPL
12
-Group:         Productivity/Multimedia/Video/Other
13
+Group:         Productivity/Multimedia/Other
14
 Url:       http://www.mpeg4ip.net
15
 
16
-Source:        http://dl.sourceforge.net/sourceforge/mpeg4ip/%name-%version.tar.bz2
17
-
18
-Patch0:        mpeg4ip-1.3_configure.patch
19
-Patch1:         mpeg4ip-1.4.1-gcc41.patch
20
-Patch2:         mpeg4ip-1.4.1-x264r48.patch
21
-Patch3:        mpeg4ip-1.5.0.1-gcc42.patch
22
-Patch4:        mpeg4ip-1.5.0.1-gcc43.patch
23
-
24
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
25
-BuildRequires:  SDL-devel a52dec esound-devel gcc-c++ glib2-devel gtk2-devel id3lib-devel lame libmpeg2 libmpeg2-devel libvorbis-devel mad-devel nasm pkgconfig libx264-devel xvid-devel
26
-%if 0%{?suse_version} < 1000
27
-BuildRequires: slang-devel
28
-%endif
29
+Source:        mpeg4ip-%{version}.tar.bz2
30
 
31
-%if 0%{?suse_version} < 1000 && 0%{?suse_version} > 910
32
-BuildRequires:   xorg-x11-devel
33
+Patch0:        %{name}-link.patch
34
+Patch1:        %{name}-ac.patch
35
+Patch2:        %{name}-gcc4.patch
36
+Patch3:        %{name}-configure.patch
37
+Patch4:        %{name}-audio_l16.cpp-typo.patch
38
+Patch5:        %{name}-ffmpeg.patch
39
+Patch6:        %{name}-gcc44.patch
40
+Patch7:        %{name}-ambiguous.patch.bz2
41
+
42
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-build
43
+Requires:       libmp4v2 = %{version}-%{release}
44
+BuildRequires:  a52dec
45
+BuildRequires:  liba52-devel
46
+BuildRequires:  esound-devel
47
+BuildRequires:  gcc-c++
48
+BuildRequires:  glib2-devel
49
+BuildRequires:  gtk2-devel
50
+BuildRequires:  id3lib-devel
51
+BuildRequires:  libmp3lame-devel
52
+BuildRequires:  libmpeg2-devel
53
+BuildRequires:  libvorbis-devel
54
+BuildRequires:  libmad-devel
55
+BuildRequires:  libx264-devel
56
+BuildRequires:  libxvidcore-devel
57
+%if %suse_version > 1110
58
+BuildRequires:  SDL-devel
59
+%else
60
+BuildRequires:  SDL-devel
61
 %endif
62
-
63
-%if 0%{?suse_version} <= 910 && 0%{?suse_version} > 0
64
-BuildRequires:   XFree86-libs XFree86-devel
65
-%endif 
66
+BuildRequires:  nasm
67
+BuildRequires:  pkgconfig
68
+#BuildRequires: -post-build-checks
69
 
70
 %description
71
 The MPEG4IP project provides a standarts-based system
72
@@ -40,88 +53,136 @@
73
 Summary:      MPEG4v2 library
74
 
75
 %description -n libmp4v2
76
+The MPEG4IP project provides a standarts-based system
77
+for encoding, streaming and playing encoded auido and video.
78
+This package contains libraries of the MPEG4IP project.
79
+
80
 MPEG4v2 library
81
 
82
 %package -n libmp4v2-devel
83
-Group:        System/Libraries
84
+Group:        Development/Libraries/C and C++
85
 Summary:      Files needed for development with libmp4v2
86
-Requires:     libmp4v2 = %{version} SDL-devel
87
+Requires:     libmp4v2 = %{version}-%{release}
88
+Requires:     glibc-devel
89
+%if %suse_version > 1110
90
+Requires:     SDL-devel
91
+%else
92
+Requires:     SDL-devel
93
+%endif
94
+Requires:     xorg-x11-libX11-devel
95
+Requires:     xorg-x11-libXext-devel
96
 
97
 %description -n libmp4v2-devel
98
+The MPEG4IP project provides a standarts-based system
99
+for encoding, streaming and playing encoded auido and video.
100
+This package contains libraries of the MPEG4IP project.
101
+
102
 Files needed for development with libmp4v2
103
 
104
 %prep
105
-%setup -q 
106
+%setup -q
107
+### fix me! ###
108
+%if %suse_version >= 1110 
109
+%patch0 -p1 -F2
110
+%else
111
 %patch0 -p1
112
+%endif
113
 %patch1 -p1
114
-%patch2
115
+%patch2 -p1
116
 %patch3 -p1
117
-%patch4
118
-
119
+%patch4 -p1
120
+%patch5 -p1
121
+%patch6 -p1
122
+%patch7 -p1
123
+
124
+# causes build loops, just overwrite it and always say yes
125
+# rpmbuild takes care of having a sufficiently recent nasm package
126
+echo -e "#!/bin/sh\necho yes\nexit 0" > util/testnasm.sh
127
+%__chmod 755 util/testnasm.sh
128
 
129
 %build
130
-%if 0%{?suse_version} >= 1100
131
-%__sed -i -e "s|nasm -r|nasm -v|g" configure
132
-%endif
133
-CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing" ./bootstrap \
134
-   --prefix=%_prefix \
135
-   --libdir=%_libdir \
136
-   --mandir=%_mandir \
137
-   --disable-player 
138
-%__sed -i -e "s|-Werror||g" common/video/iso-mpeg4/src/Makefile
139
-%__make
140
+cd lib/SDLAudio
141
+%{__libtoolize}
142
+%{__aclocal}
143
+%{__autoconf}
144
+touch NEWS
145
+touch AUTHORS
146
+touch ChangeLog
147
+%{__automake} --add-missing
148
+%{__automake}
149
+cd ../..
150
+%{__libtoolize}
151
+%{__aclocal}
152
+%{__autoconf}
153
+%{__autoheader}
154
+touch NEWS
155
+touch AUTHORS
156
+touch ChangeLog
157
+%{__automake} --add-missing
158
+%{__automake}
159
+install -d config
160
+touch bootstrapped
161
+%{configure} --disable-player 
162
+
163
+%{__make} \
164
+   CCAS="%{__cc}"
165
 
166
 %install
167
-%__make DESTDIR="%{buildroot}" install-strip
168
+cd lib/mp4v2
169
+%{makeinstall}
170
+cd ../..
171
+%{makeinstall}
172
+%if %suse_version > 1110
173
+%{__rm} -f  %{buildroot}%{_libdir}/*.la
174
+%endif
175
 
176
-%post -n libmp4v2
177
-/sbin/ldconfig
178
+%clean
179
+[ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot}
180
 
181
-%postun -n libmp4v2
182
-/sbin/ldconfig
183
+%post -n libmp4v2 -p/sbin/ldconfig
184
+%postun -n libmp4v2 -p/sbin/ldconfig
185
 
186
 %files
187
 %defattr(-, root, root)
188
 # utilitys
189
-%_bindir/mp4creator
190
-%_bindir/mp4info
191
-%_bindir/mp4dump
192
-%_bindir/mp4trackdump
193
-%_bindir/mp4tags
194
-%_bindir/mp4art
195
-%_bindir/mp4videoinfo
196
+%{_bindir}/mp4creator
197
+%{_bindir}/mp4info
198
+%{_bindir}/mp4dump
199
+%{_bindir}/mp4trackdump
200
+%{_bindir}/mp4tags
201
[+] Deleted mpeg4ip-1.3_configure.patch ^
[+] Deleted mpeg4ip-1.4.1-gcc41.patch ^
[+] Deleted mpeg4ip-1.4.1-x264r48.patch ^
[+] Deleted mpeg4ip-1.5.0.1-gcc42.patch ^
[+] Deleted mpeg4ip-1.5.0.1-gcc43.patch ^
[+] Added mpeg4ip-ac.patch ^
[+] Added mpeg4ip-ambiguous.patch.bz2 ^
[+] Added mpeg4ip-audio_l16.cpp-typo.patch ^
[+] Added mpeg4ip-configure.patch ^
[+] Added mpeg4ip-ffmpeg.patch ^
[+] Added mpeg4ip-gcc4.patch ^
[+] Added mpeg4ip-gcc44.patch ^
Changed mpeg4ip-1.6.1.tar.bz2 ^