[5297] | 1 | %define svndate 20111217 |
---|
| 2 | |
---|
[615] | 3 | %define with_static 1 |
---|
| 4 | |
---|
| 5 | Name: gpac |
---|
| 6 | Summary: MPEG-4 multimedia framework |
---|
[5297] | 7 | Version: 0.4.6 |
---|
[6241] | 8 | Release: 2%{?svndate:.svn%svndate}%{?_dist_release} |
---|
[615] | 9 | License: LGPLv2+ |
---|
| 10 | Group: System Environment/Libraries |
---|
| 11 | URL: http://gpac.sourceforge.net/ |
---|
[5297] | 12 | #Source0: http://downloads.sourceforge.net/gpac/gpac-%{version}.tar.gz |
---|
| 13 | Source0: gpac-%{svndate}.tar.bz2 |
---|
| 14 | Source9: gpac-snapshot-vine.sh |
---|
[615] | 15 | |
---|
[5297] | 16 | Patch1: gpac-0.4.6_15-soname.patch |
---|
| 17 | Patch2: gpac-0.4.6-amr.patch |
---|
| 18 | Patch5: gpac-0.4.6-js_cflags.patch |
---|
| 19 | |
---|
[615] | 20 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 21 | |
---|
| 22 | BuildRequires: ImageMagick |
---|
| 23 | BuildRequires: SDL-devel |
---|
| 24 | BuildRequires: librsvg2-devel >= 2.5.0 |
---|
| 25 | BuildRequires: libGLU-devel |
---|
| 26 | BuildRequires: freeglut-devel |
---|
| 27 | BuildRequires: freetype2-devel >= 2.1.4 |
---|
| 28 | BuildRequires: libjpeg-devel |
---|
| 29 | BuildRequires: libpng-devel >= 1.2.5 |
---|
| 30 | BuildRequires: libxml2-devel |
---|
| 31 | BuildRequires: openssl-devel |
---|
[3538] | 32 | #BuildRequires: openjpeg-devel |
---|
[615] | 33 | BuildRequires: pulseaudio-libs-devel |
---|
| 34 | BuildRequires: zlib-devel |
---|
| 35 | BuildRequires: libogg-devel libvorbis-devel libtheora-devel |
---|
| 36 | BuildRequires: libXt-devel |
---|
| 37 | BuildRequires: libXpm-devel |
---|
| 38 | BuildRequires: libXv-devel |
---|
| 39 | #BuildRequires: wxGTK-devel |
---|
| 40 | BuildRequires: xmlrpc-epi-devel |
---|
| 41 | %{?_with_mozilla:BuildRequires: gecko-devel} |
---|
[1258] | 42 | #BuildRequires: doxygen |
---|
[615] | 43 | BuildRequires: desktop-file-utils |
---|
| 44 | %{?_with_amr:BuildRequires: amrnb-devel amrwb-devel} |
---|
| 45 | # *-devel packages provided by other self-build-* should only be listed |
---|
| 46 | # in self-build-%{name}.spec as PreReq. |
---|
| 47 | #BuildRequires: a52dec-devel |
---|
| 48 | #BuildRequires: faad2-devel |
---|
| 49 | #BuildRequires: libmad-devel |
---|
| 50 | #BuildRequires: xvidcore-devel >= 1.0.0 |
---|
| 51 | ##BuildRequires: ffmpeg-devel |
---|
| 52 | |
---|
| 53 | |
---|
| 54 | %description |
---|
| 55 | GPAC is a multimedia framework based on the MPEG-4 Systems standard developed |
---|
| 56 | from scratch in ANSI C. The original development goal is to provide a clean, |
---|
| 57 | small and flexible alternative to the MPEG-4 Systems reference software. |
---|
| 58 | |
---|
| 59 | GPAC features the integration of recent multimedia standards (SVG/SMIL, VRML, |
---|
| 60 | X3D, SWF, 3GPP(2) tools and more) into a single framework. GPAC also features |
---|
| 61 | MPEG-4 Systems encoders/multiplexers, publishing tools for content distribution |
---|
| 62 | for MP4 and 3GPP(2) files and many tools for scene descriptions |
---|
| 63 | (MPEG4 <-> VRML <-> X3D converters, SWF -> MPEG-4, etc). |
---|
| 64 | |
---|
| 65 | %package libs |
---|
| 66 | Summary: Library for %{name} |
---|
| 67 | Group: System Environment/Libraries |
---|
| 68 | |
---|
| 69 | %description libs |
---|
| 70 | The %{name}-libs package contains library for %{name}. |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | %package devel |
---|
| 74 | Summary: Development libraries and files for %{name} |
---|
| 75 | Group: Development/Libraries |
---|
| 76 | Requires: %{name}-libs = %{version}-%{release} |
---|
| 77 | |
---|
| 78 | |
---|
| 79 | %description devel |
---|
| 80 | Development libraries and files for gpac. |
---|
| 81 | |
---|
| 82 | |
---|
| 83 | %if %{with_static} |
---|
| 84 | %package devel-static |
---|
| 85 | Summary: Development libraries and files for %{name} |
---|
| 86 | Group: Development/Libraries |
---|
| 87 | Requires: %{name}-devel = %{version}-%{release} |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %description devel-static |
---|
| 91 | Static library for gpac. |
---|
| 92 | %endif |
---|
| 93 | |
---|
| 94 | |
---|
| 95 | %prep |
---|
| 96 | %setup -q -n gpac |
---|
| 97 | ## remove extra_libs directory |
---|
| 98 | %__rm -rf extra_libs |
---|
| 99 | |
---|
| 100 | %patch1 -p1 -b .soname |
---|
| 101 | %patch2 -p1 -b .amr |
---|
[5297] | 102 | %patch5 -p1 -b .jscflags |
---|
[615] | 103 | |
---|
| 104 | ## kwizart - enable dynamic mode - hardcoded with patch2 |
---|
| 105 | # define SONAME number from the first number of gpac version. |
---|
| 106 | #define soname libgpac.so.0 |
---|
| 107 | #sed -i.soname -e 's|EXTRALIBS+=$(GPAC_SH_FLAGS)|EXTRALIBS+=$(GPAC_SH_FLAGS)\nLDFLAGS+="-Wl,-soname,%{soname}"|' src/Makefile |
---|
| 108 | |
---|
| 109 | # Fix encoding warnings |
---|
[3538] | 110 | %__cp -p Changelog Changelog.origine |
---|
[615] | 111 | iconv -f ISO-8859-1 -t UTF8 Changelog.origine > Changelog |
---|
| 112 | touch -r Changelog.origine Changelog |
---|
[3538] | 113 | %__rm -rf Changelog.origine |
---|
[615] | 114 | |
---|
[3538] | 115 | %__cp -p doc/ipmpx_syntax.bt doc/ipmpx_syntax.bt.origine |
---|
[615] | 116 | iconv -f ISO-8859-1 -t UTF8 doc/ipmpx_syntax.bt.origine > doc/ipmpx_syntax.bt |
---|
| 117 | touch -r doc/ipmpx_syntax.bt.origine doc/ipmpx_syntax.bt |
---|
[3538] | 118 | %__rm -rf doc/ipmpx_syntax.bt.origine |
---|
[615] | 119 | |
---|
| 120 | |
---|
| 121 | # executable ./configure |
---|
| 122 | chmod +x configure |
---|
| 123 | |
---|
| 124 | %build |
---|
| 125 | %configure \ |
---|
| 126 | --X11-path=%{_prefix} \ |
---|
[3538] | 127 | %{?_with_mozilla:--mozdir=%{_libdir}/mozilla/plugins} \ |
---|
| 128 | --enable-pic \ |
---|
| 129 | --disable-static \ |
---|
| 130 | --disable-wx \ |
---|
[615] | 131 | --extra-cflags="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -D_LARGEFILE_SOURCE=1 -D_GNU_SOURCE=1" \ |
---|
| 132 | --disable-oss-audio \ |
---|
[5297] | 133 | %{?_with_amr:--enable-amr} \ |
---|
[615] | 134 | --use-js=no \ |
---|
[3538] | 135 | ; |
---|
[5297] | 136 | # --use-openjpeg=local \ |
---|
[615] | 137 | |
---|
| 138 | # Parallele build will fail |
---|
| 139 | %__make all OPTFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" |
---|
| 140 | #{?_smp_mflags} |
---|
| 141 | %__make sggen OPTFLAGS="$RPM_OPT_FLAGS -fPIC -DPIC" |
---|
| 142 | #{?_smp_mflags} |
---|
| 143 | |
---|
[1258] | 144 | # ## kwizart - build doxygen doc for devel |
---|
| 145 | # pushd doc |
---|
| 146 | # doxygen |
---|
| 147 | # popd |
---|
[615] | 148 | |
---|
| 149 | %install |
---|
[3538] | 150 | %__rm -rf $RPM_BUILD_ROOT |
---|
| 151 | %__make DESTDIR=$RPM_BUILD_ROOT install install-lib |
---|
[615] | 152 | |
---|
[5297] | 153 | #hack |
---|
| 154 | %if %{_lib} == "lib64" |
---|
| 155 | %__mv $RPM_BUILD_ROOT%{_prefix}/lib $RPM_BUILD_ROOT%{_libdir} |
---|
| 156 | %endif |
---|
| 157 | |
---|
[615] | 158 | ## kwizart - rpmlint gpac no-ldconfig-symlink |
---|
[5297] | 159 | #%__ln_s -f libgpac.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libgpac.so.0 |
---|
| 160 | %__ln_s -f libgpac.so.%{version}-DEV $RPM_BUILD_ROOT%{_libdir}/libgpac.so.0 |
---|
[3538] | 161 | %__ln_s -f libgpac.so.0 $RPM_BUILD_ROOT%{_libdir}/libgpac.so |
---|
[615] | 162 | |
---|
| 163 | #Install generated sggen binaries |
---|
| 164 | for b in MPEG4 SVG X3D; do |
---|
| 165 | pushd applications/generators/${b} |
---|
[3538] | 166 | %__install -pm 0755 ${b}Gen $RPM_BUILD_ROOT%{_bindir} |
---|
[615] | 167 | popd |
---|
| 168 | done |
---|
| 169 | |
---|
[1258] | 170 | # #Fix doxygen timestamp |
---|
| 171 | # touch -r Changelog doc/html/* |
---|
[615] | 172 | |
---|
| 173 | |
---|
| 174 | %clean |
---|
[3538] | 175 | %__rm -rf $RPM_BUILD_ROOT |
---|
[615] | 176 | |
---|
| 177 | %post libs -p /sbin/ldconfig |
---|
| 178 | |
---|
| 179 | %postun libs -p /sbin/ldconfig |
---|
| 180 | |
---|
| 181 | |
---|
| 182 | %files |
---|
| 183 | %defattr(-,root,root,-) |
---|
| 184 | %doc AUTHORS BUGS Changelog COPYING README TODO |
---|
| 185 | %{_bindir}/MP4* |
---|
| 186 | %{_bindir}/*Gen |
---|
| 187 | %{_datadir}/gpac/ |
---|
| 188 | %{_mandir}/man1/*.1.* |
---|
| 189 | |
---|
| 190 | %files libs |
---|
| 191 | %defattr(-,root,root) |
---|
| 192 | %{_libdir}/libgpac.so.* |
---|
| 193 | %{_libdir}/gpac/ |
---|
| 194 | |
---|
| 195 | %files devel |
---|
| 196 | %doc doc/CODING_STYLE doc/ipmpx_syntax.bt |
---|
| 197 | %defattr(-,root,root) |
---|
| 198 | %{_includedir}/gpac/ |
---|
| 199 | %{_libdir}/libgpac.so |
---|
| 200 | |
---|
| 201 | %if %{with_static} |
---|
| 202 | %files devel-static |
---|
| 203 | %defattr(-,root,root,-) |
---|
| 204 | %{_libdir}/libgpac_static.a |
---|
| 205 | %else |
---|
| 206 | %exclude %{_libdir}/libgpac_static.a |
---|
| 207 | %endif |
---|
| 208 | |
---|
| 209 | |
---|
| 210 | %changelog |
---|
[6241] | 211 | * Sat May 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.6-2.svn20111217 |
---|
| 212 | - rebuild |
---|
| 213 | |
---|
[5297] | 214 | * Sun Dec 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.6-1.svn20111217 |
---|
| 215 | - update snapshot svn20111217 |
---|
| 216 | - removed upstreamed/obsolated patches |
---|
| 217 | |
---|
[3538] | 218 | * Mon Apr 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-11 |
---|
| 219 | - rebuilt with internal openjpeg |
---|
| 220 | - added --use-openjpeg=local in configure options |
---|
| 221 | - added --enable-pic in configure options |
---|
| 222 | |
---|
[3126] | 223 | * Sat Mar 26 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-10 |
---|
| 224 | - rebuild |
---|
| 225 | |
---|
[1258] | 226 | * Sat Jun 26 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-9 |
---|
| 227 | - removed doxygen support |
---|
| 228 | |
---|
[615] | 229 | * Sat Mar 20 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-8 |
---|
| 230 | - change release to sync with self-build-gpac |
---|
| 231 | |
---|
| 232 | * Thu Feb 18 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.5-7 |
---|
| 233 | - rebuild |
---|
| 234 | |
---|
| 235 | * Sun Jun 07 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-6 |
---|
| 236 | - added --use-js=no in configure |
---|
| 237 | - added devel-static subpackage |
---|
| 238 | |
---|
| 239 | * Tue May 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.7.4-5 |
---|
| 240 | - change release to sync with self-build-gpac |
---|
| 241 | |
---|
| 242 | * Thu May 14 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-4 |
---|
| 243 | - change release to sync with self-build-gpac |
---|
| 244 | |
---|
| 245 | * Thu Mar 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-3 |
---|
| 246 | - applied gpac-0.4.5-ffmpeg.patch (RPM Fusion #454) |
---|
| 247 | - corrected default %%defattr |
---|
| 248 | |
---|
| 249 | * Thu Mar 12 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-2 |
---|
| 250 | - dropped BuildRequires: ffmpeg-devel as self-build-ffmpeg |
---|
| 251 | - rebuilt with ffmpeg-devel by self-build-ffmpeg |
---|
| 252 | |
---|
| 253 | * Sun Mar 01 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4.5-1 |
---|
| 254 | - initial build based on RPM Fusion |
---|
| 255 | - without Osmo4 and its plugins for Mozilla browsers |
---|
| 256 | - added --disable-wx in configure options |
---|
| 257 | - included %%{_libdir}/libgpac_static.a in devel subpackage |
---|
| 258 | |
---|
| 259 | * Sun Dec 28 2008 kwizart < kwizart at gmail.com > - 0.4.5-3 |
---|
| 260 | - Fix -devel doc timestamp which leads to multilib conflict |
---|
| 261 | ( RPM Fusion #270 ) |
---|
| 262 | |
---|
| 263 | * Thu Dec 18 2008 kwizart < kwizart at gmail.com > - 0.4.5-2 |
---|
| 264 | - Fix for ppc64 |
---|
| 265 | |
---|
| 266 | * Wed Dec 17 2008 kwizart < kwizart at gmail.com > - 0.4.5-1 |
---|
| 267 | - Update to 0.4.5 (final) |
---|
| 268 | - Drop upstreamed patches - Rewrite some |
---|
| 269 | - Add More BR. |
---|
| 270 | - Conditionalize --with mozilla amr |
---|
| 271 | |
---|
| 272 | * Mon Sep 8 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.5.20080217cvs |
---|
| 273 | - Fix for Large File Support (was livna #2075 ) |
---|
| 274 | |
---|
| 275 | * Mon Feb 25 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.3.20080217cvs |
---|
| 276 | - Enable devel-static |
---|
| 277 | - Conditionalize Osmo4 (buggy). |
---|
| 278 | - Clean the spec |
---|
| 279 | |
---|
| 280 | * Sun Feb 17 2008 kwizart < kwizart at gmail.com > - 0.4.5-0.2.20080217cvs |
---|
| 281 | - Update to 20080217. |
---|
| 282 | - Split libs. |
---|
| 283 | - Use the new amr nosrc scheme (need an end-users rebuilt to add support to it). |
---|
| 284 | - Add openjpeg-devel missing BR |
---|
| 285 | - Static patching instead of dyn patch when possible. |
---|
| 286 | - Disable %%{smp_mflags} (it tries to build the bin before the lib is ready) |
---|
| 287 | - Define soname as libgpac.so.0 (instead of libgpac.so.%%version ) |
---|
| 288 | - Exclude static lib |
---|
| 289 | |
---|
| 290 | * Mon Feb 11 2008 Stewart Adam < s.adam at diffingo.com > - 0.4.5-0.1.20080211cvs |
---|
| 291 | - Use %%{smp_mflags} |
---|
| 292 | - Oops, we're actually 0.4.5 |
---|
| 293 | - Fix gpac so filenames |
---|
| 294 | - Only install nposmozilla when %%{with_firefox} is set |
---|
| 295 | |
---|
| 296 | * Mon Feb 11 2008 Stewart Adam < s.adam at diffingo.com > - 0.4.4-3.20080211cvs |
---|
| 297 | - Update to 20080211cvs |
---|
| 298 | - Disable osmozilla, doesn't build with xulrunner |
---|
| 299 | - Fix builds with gcc 4.3 |
---|
| 300 | |
---|
| 301 | * Sat Dec 15 2007 Stewart Adam < s.adam at diffingo.com > - 0.4.4-2 |
---|
| 302 | - Rebuild for rawhide |
---|
| 303 | |
---|
| 304 | * Tue Oct 16 2007 Stewart Adam < s.adam at diffingo.com > - 0.4.4-1 |
---|
| 305 | - Update to v4.4 |
---|
| 306 | |
---|
| 307 | * Sat May 26 2007 kwizart < kwizart at gmail.com > - 0.4.3-0.1cvs20070526 |
---|
| 308 | - Update to cvs 20070526 |
---|
| 309 | - Enable conditional build ( 3gpp firefox ) |
---|
| 310 | |
---|
| 311 | * Wed Apr 11 2007 kwizart < kwizart at gmail.com > - 0.4.3-0.1cvs20070411 |
---|
| 312 | - Update to cvs 20070411 |
---|
| 313 | |
---|
| 314 | * Thu Dec 08 2006 kwizart < kwizart at gmail.com > - 0.4.3-cvs20061208.1.kwizart.fc6 |
---|
| 315 | - Update to 20061208 |
---|
| 316 | - Uses firefox-devel (since fc6!) |
---|
| 317 | - Drop tutorial |
---|
| 318 | - Use version-DEV-date with libgpac.so |
---|
| 319 | - Disabled osmozilla |
---|
| 320 | - Fix soname |
---|
| 321 | - Enabled gprof |
---|
| 322 | |
---|
| 323 | * Tue Oct 17 2006 kwizart < kwizart at gmail.com > - 0.4.3-cvs20061017.1_FC5 |
---|
| 324 | - gpac snapshot.sh |
---|
| 325 | - Revert Patch osmozilla.cpp (v1.17 - build error from gpac/internal/terminal_dev.h) |
---|
| 326 | - TODO: - no-soname make option for libgpac.so |
---|
| 327 | - static lib in devel - needed ? |
---|
| 328 | - osmozilla - xpt link problem. |
---|
| 329 | - Osmo4: segmentation fault on exit. |
---|
| 330 | - MP4Client: segmentation fault on launch. |
---|
| 331 | - The program 'Osmo4' received an X Window System error: |
---|
| 332 | "The error was 'BadMatch (invalid parameter attributes)'. |
---|
| 333 | (Details: serial 37 error_code 8 request_code 42 minor_code 0)" |
---|
| 334 | - MP4Box -version display: GPAC version 0.4.3-DEV (try to display cvs ) |
---|
| 335 | |
---|
| 336 | * Sat Oct 15 2006 kwizart < kwizart at gmail.com > - 0.4.2-rc2.1_FC5 |
---|
| 337 | - Update to 0.4.2cvs20061017 |
---|
| 338 | - Use DESTDIR=RPM_BUILD_ROOT in various Makefile. |
---|
| 339 | - Enable mozilla plugin: osmozilla. |
---|
| 340 | - Enable AMR_NB_FLOAT and AMR_WB_FLOAT / bundle AMR_NB_FIXED (but not used by default). |
---|
| 341 | - Provide documentation html in doc . |
---|
| 342 | - Provide tutorial from http://www.wildamerica.com/pages/Marty.html |
---|
| 343 | - Various corrections. |
---|
| 344 | |
---|
| 345 | * Fri Sep 01 2006 Anssi Hannula <anssi@zarb.org> 0.4.1-0.20060630.2plf2007.0 |
---|
| 346 | - lib64 fixes |
---|
| 347 | |
---|
| 348 | * Fri Jan 30 2006 Austin Acton <austin@mandriva.org> 0.4.1-0.20060630.1plf2007.0 |
---|
| 349 | - initial package |
---|