SPECS: bmpx.spec - added mozilla-firefox-plugin-bmpx subpackage - ...

megabajt megabajt at pld-linux.org
Mon Oct 9 22:15:54 CEST 2006


Author: megabajt                     Date: Mon Oct  9 20:15:54 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- added mozilla-firefox-plugin-bmpx subpackage
- removed TODO
- rel. 1.2

---- Files affected:
SPECS:
   bmpx.spec (1.59 -> 1.60) 

---- Diffs:

================================================================
Index: SPECS/bmpx.spec
diff -u SPECS/bmpx.spec:1.59 SPECS/bmpx.spec:1.60
--- SPECS/bmpx.spec:1.59	Sun Oct  8 20:01:35 2006
+++ SPECS/bmpx.spec	Mon Oct  9 22:15:49 2006
@@ -1,6 +1,4 @@
 # $Revision$, $Date$
-# 
-# TODO: add subpackage with bmpx.xpi (lastm:// URIs support in firefox)
 #
 # Conditional build:
 %bcond_without	gaim	# build without D-BUS gaim support
@@ -11,7 +9,7 @@
 Summary(pl):	Odtwarzacz dźwięku z interfejsem WinAmpa dla GTK+
 Name:		bmpx
 Version:	0.32.0
-Release:	1.1
+Release:	1.2
 License:	GPL v2
 Group:		X11/Applications/Sound
 Source0:	http://files.beep-media-player.org/releases/0.30/%{name}-%{version}.tar.bz2
@@ -49,6 +47,7 @@
 BuildRequires:	rpm-pythonprov
 BuildRequires:	startup-notification-devel >= 0.8
 BuildRequires:	taglib-devel >= 1.4
+BuildRequires:	unzip
 Requires(post,postun):	desktop-file-utils
 Requires(post,postun):	gtk+2 >= 2:2.10.0
 Requires(post,postun):	hicolor-icon-theme
@@ -67,6 +66,9 @@
 Obsoletes:	bmpx-static
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%define		_firefoxdir	%{_libdir}/mozilla-firefox
+%define		_chromedir	%{_firefoxdir}/chrome
+
 %description
 BMPx is the follow-up of the BMP project with a codebase rewritten
 from scratch and aims to maintain a stable audio player foundation,
@@ -93,6 +95,19 @@
 Pliki nagłówkowe potrzebne do kompilowania wtyczek odtwarzacza
 multimedialnego BMPx.
 
+%package -n mozilla-firefox-plugin-bmpx
+Summary:	BMPx plugin for Mozilla Firefox
+Summary(pl):	Wtyczka BMPx dla Mozilli Firefox
+Group:		X11/Applications
+Requires:	bmpx
+Requires:	mozilla-firefox
+
+%description -n mozilla-firefox-plugin-bmpx
+This plugin registers the lastfm:// protocol to BMPx.
+
+%description -n mozilla-firefox-plugin-bmpx -l pl
+Ta wtyczka rejestruje protokół lastfm:// do BMPx.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -118,11 +133,17 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_chromedir}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT \
 	m4datadir=%{_aclocaldir}
 
+unzip xpi/bmp.xpi -d $RPM_BUILD_ROOT%{_firefoxdir}
+sed -e 's at chrome/bmp\.jar at bmp\.jar@' $RPM_BUILD_ROOT%{_firefoxdir}/chrome.manifest \
+	> $RPM_BUILD_ROOT%{_chromedir}/bmp.manifest
+
+rm -f $RPM_BUILD_ROOT%{_firefoxdir}/{install.rdf,chrome.manifest}
 rm -f $RPM_BUILD_ROOT%{_datadir}/bmpx/data/GPL.txt
 rm -f $RPM_BUILD_ROOT%{_libdir}/bmpx/plugins/{flow,vfs/container,vfs/transport}/*.{a,la}
 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/th_TH
@@ -183,12 +204,22 @@
 %{_includedir}/bmp-2.0
 %{_pkgconfigdir}/*.pc
 
+%files -n mozilla-firefox-plugin-bmpx
+%defattr(644,root,root,755)
+%{_chromedir}/bmp.jar
+%{_chromedir}/bmp.manifest
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.60  2006/10/09 20:15:49  megabajt
+- added mozilla-firefox-plugin-bmpx subpackage
+- removed TODO
+- rel. 1.2
+
 Revision 1.59  2006/10/08 18:01:35  ankry
 - tabs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/bmpx.spec?r1=1.59&r2=1.60&f=u



More information about the pld-cvs-commit mailing list