Author: maciek2w Date: Sun Mar 19 12:43:48 2006 GMT Module: SPECS Tag: HEAD ---- Log message: - updated to 0.4.0 - changed licence to LGPL - added subpackage with browser plugin
---- Files affected: SPECS: gpac.spec (1.13 -> 1.14) ---- Diffs: ================================================================ Index: SPECS/gpac.spec diff -u SPECS/gpac.spec:1.13 SPECS/gpac.spec:1.14 --- SPECS/gpac.spec:1.13 Mon Oct 31 12:01:55 2005 +++ SPECS/gpac.spec Sun Mar 19 13:43:43 2006 @@ -17,12 +17,12 @@ Summary: GPAC - an implementation of the MPEG-4 Systems standard (ISO/IEC 14496-1) Summary(pl): GPAC - implementacja standardu MPEG-4 Systems (ISO/IEC 14496-1) Name: gpac -Version: 0.2.4 -Release: 3 -License: GPL +Version: 0.4.0 +Release: 1 +License: LGPL Group: Applications Source0: http://dl.sourceforge.net/gpac/%{name}-%{version}.tar.gz -# Source0-md5: cbbea28e99c23d1839d38c54c2cc090a +# Source0-md5: a8b4b3206cabda946850240f1e7aea93 Source1: http://www.3gpp.org/ftp/Specs/archive/26_series/26.073/26073-530.zip # Source1-md5: 705f6993fbf890e92eb7a331e7c716d1 Patch0: %{name}-install.patch @@ -51,6 +51,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _noautoreq libm4systems.so +%define _plugindir %{_libdir}/browser-plugins %description GPAC is an implementation of the MPEG-4 Systems standard (ISO/IEC @@ -82,6 +83,25 @@ Projekt docelowo dostarczy odtwarzacz(e), kodery systemowe i narzędzia do publikacji w celu dystrybucji materiałów. +%package -n browser-plugin-%{name} +Summary: GPAC browser plugin +Summary(pl): Wtyczka GPAC do przegląderek WWW +Group: X11/Libraries +Requires: %{name} = %{version}-%{release} +Requires: browser-plugins(%{_target_cpu}) + +%define browsers mozilla, mozilla-firefox + +%description -n browser-plugin-%{name} +GPAC plugin for Netscape-compatible WWW browsers. + +Supported browsers: %{browsers}. + +%description -n browser-plugin-%{name} -l pl +Wtyczka GPAC dla przeglądarek WWW zgodnych z Netscape. + +Obsługiwane przeglądarki: %{browsers}. + %prep %setup -q -n gpac %patch0 -p1 @@ -95,6 +115,10 @@ %endif chmod a+x configure +# files for w32 and linux was swapped +rm -rf applications/osmozilla/nsIOsmozilla.xpt_linux +mv applications/osmozilla/nsIOsmozilla.xpt_w32 applications/osmozilla/nsIOsmozilla.xpt_linux + %build %configure \ --enable-oss-audio \ @@ -122,7 +146,8 @@ mandir=$RPM_BUILD_ROOT%{_mandir} \ plugdir=$RPM_BUILD_ROOT%{_libdir}/gpac \ real_plugdir=%{_libdir}/gpac \ - prefix=$RPM_BUILD_ROOT/usr + prefix=$RPM_BUILD_ROOT/usr \ + MOZILLA_DIR=$RPM_BUILD_ROOT%{_plugindir} %clean rm -rf $RPM_BUILD_ROOT @@ -130,6 +155,35 @@ %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%triggerin -n browser-plugin-%{name} -- mozilla-firefox +%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins nposmozilla.so nposmozilla.xpt + +%triggerun -n browser-plugin-%{name} -- mozilla-firefox +%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins nposmozilla.so nposmozilla.xpt + +%triggerin -n browser-plugin-%{name} -- mozilla +%nsplugin_install -d %{_libdir}/mozilla/plugins nposmozilla.so nposmozilla.xpt +if [ -d /usr/%{_lib}/mozilla ]; then + umask 022 + rm -f /usr/%{_lib}/mozilla/components/{compreg,xpti}.dat + if [ -x /usr/bin/regxpcom ]; then + MOZILLA_FIVE_HOME=/usr/%{_lib}/mozilla /usr/bin/regxpcom + fi +fi + +%triggerun -n browser-plugin-%{name} -- mozilla +%nsplugin_uninstall -d %{_libdir}/mozilla/plugins nposmozilla.so nposmozilla.xpt +if [ -d /usr/%{_lib}/mozilla ]; then + umask 022 + rm -f /usr/%{_lib}/mozilla/components/{compreg,xpti}.dat + if [ -x /usr/bin/regxpcom ]; then + MOZILLA_FIVE_HOME=/usr/%{_lib}/mozilla /usr/bin/regxpcom + fi +fi + +%triggerpostun -n browser-plugin-%{name} -- mozilla-plugin-%{name} +%nsplugin_install -f -d %{_libdir}/mozilla/plugins nposmozilla.so nposmozilla.xpt + %files %defattr(644,root,root,755) %doc AUTHORS BUGS Changelog README TODO @@ -139,12 +193,22 @@ %attr(755,root,root) %{_libdir}/gpac/*.so %{_mandir}/man1/* +%files -n browser-plugin-%{name} +%defattr(644,root,root,755) +%attr(755,root,root) %{_plugindir}/nposmozilla.so +%attr(755,root,root) %{_plugindir}/nposmozilla.xpt + %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog * %{date} PLD Team <[EMAIL PROTECTED]> All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.14 2006/03/19 12:43:43 maciek2w +- updated to 0.4.0 +- changed licence to LGPL +- added subpackage with browser plugin + Revision 1.13 2005/10/31 11:01:55 arekm - rel 3 ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/gpac.spec?r1=1.13&r2=1.14&f=u _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit