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