]> git.pld-linux.org Git - packages/browser-plugin-genres.git/blame - browser-plugin-genres.spec
- 1.0.2 - needs porting to new xulrunner
[packages/browser-plugin-genres.git] / browser-plugin-genres.spec
CommitLineData
b922ed0f
PG
1# TODO:
2# - browser-plugins v2
3# - port to xulrunner >= 1.9.0
67952b96 4Summary: GenReS browser scriptable plugin
a8a76017 5Summary(pl.UTF-8): GenReS - skryptowalna wtyczka do przeglądarki
67952b96 6Name: browser-plugin-genres
b922ed0f
PG
7Version: 1.0.2
8Release: 0.1
67952b96
JB
9License: GPL
10Group: X11/Applications/Multimedia
11Source0: http://download.savannah.nongnu.org/releases/genres/genres-%{version}.tar.bz2
b922ed0f 12# Source0-md5: b18778368fd5f9889557ab98f4998dcd
67952b96
JB
13Patch0: genres-mozilla-config.patch
14Patch1: genres-itvp.patch
15URL: https://savannah.nongnu.org/projects/genres
a8a76017 16BuildRequires: pkgconfig
b922ed0f 17BuildRequires: xulrunner-devel < 1.9.0
67952b96
JB
18Requires: perl-Gtk2
19BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21%define _plugindir %{_libdir}/browser-plugins
22%define browsers mozilla, mozilla-firefox
23
24%description
25GenReS is a generic reconfigurable scriptable plugin for
26Mozilla/Firefox. It allows to use external programs for EMBED or
27OBJECT HTML tags. The plugin is supplied with a Perl script for
28embedding mplayer and mencoder in a browser and controlling it with
29Javascript. It allows to play audio and video files and streams and to
30record them to set of files. Manipulations with object variables in
31JavaScript are translated to a Perl program. Status messages from the
32controlled program (mplayer or mencoder) are translated back to
33Javascript object variables, and Javascript functions are called for
34notifications.
35
36Supported browsers: %{browsers}.
37
a8a76017
JB
38%description -l pl.UTF-8
39GenReS to uniwersalna skryptowalna wtyczka dla przeglądarek z rodziny
40Mozilli. Umożliwia używanie zewnętrznych programów do obsługi
41znaczników EMBED i OBJECT. Wtyczka pełni rolę interfejsu między stroną
42WWW/JavaScriptem, a skryptem zdefiniowanym do obsługi danego typu
43MIME. Dwustronna komunikacja między skryptem a stroną oparta jest na
44strumieniach we/wy, dzięki czemu tworzenie skryptów jest proste, można
45je pisać w dowolnym języku. W pakiecie znajduje się przykładowy, ale w
46pełni funkcjonalny skrypt napisany w Perlu osadzający mplayera oraz
47mencodera i umożliwiający ich kontrolę z okna przeglądarki.
67952b96
JB
48
49%prep
50%setup -q -n genres-%{version}
51%patch0 -p1
52%patch1 -p1
53
54%build
55%{__make}
56
57%install
58rm -rf $RPM_BUILD_ROOT
59install -D genres.so $RPM_BUILD_ROOT%{_plugindir}/genres.so
60install -D slaves/video/mplayer.sh $RPM_BUILD_ROOT%{_libdir}/genres/mplayer.sh
61install -D doc/genres.conf $RPM_BUILD_ROOT%{_sysconfdir}/genres.conf
a8a76017
JB
62
63%{__make} install \
64 DESTDIR=$RPM_BUILD_ROOT
65
67952b96
JB
66rm -rf $RPM_BUILD_ROOT%{_libdir}/mozilla
67rm -rf $RPM_BUILD_ROOT%{_libdir}/mozilla-firefox
68
69%clean
70rm -rf $RPM_BUILD_ROOT
71
72%triggerin -- mozilla-firefox
73%nsplugin_install -d %{_libdir}/mozilla-firefox/plugins genres.so genres.so
74
75%triggerun -- mozilla-firefox
76%nsplugin_uninstall -d %{_libdir}/mozilla-firefox/plugins genres.so genres.so
77
78%triggerin -- mozilla
79%nsplugin_install -d %{_libdir}/mozilla/plugins genres.so genres.so
80
81%triggerun -- mozilla
82%nsplugin_uninstall -d %{_libdir}/mozilla/plugins genres.so genres.so
83
84%files
85%defattr(644,root,root,755)
a8a76017 86%doc README.en.html example
67952b96 87%attr(755,root,root) %{_plugindir}/genres.so
a8a76017 88%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/genres.conf
67952b96
JB
89%attr(755,root,root) %{_libdir}/genres/config.pl
90%attr(755,root,root) %{_libdir}/genres/mplayer.pl
91%attr(755,root,root) %{_libdir}/genres/mplayer.sh
92%attr(755,root,root) %{_libdir}/genres/slaves
This page took 0.058943 seconds and 4 git commands to generate.