SPECS: nspluginwrapper.spec - add %post and browser-plugins v2
glen
glen at pld-linux.org
Wed Jan 10 01:22:46 CET 2007
Author: glen Date: Wed Jan 10 00:22:46 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- add %post and browser-plugins v2
---- Files affected:
SPECS:
nspluginwrapper.spec (1.7 -> 1.8)
---- Diffs:
================================================================
Index: SPECS/nspluginwrapper.spec
diff -u SPECS/nspluginwrapper.spec:1.7 SPECS/nspluginwrapper.spec:1.8
--- SPECS/nspluginwrapper.spec:1.7 Wed Jan 10 01:17:58 2007
+++ SPECS/nspluginwrapper.spec Wed Jan 10 01:22:41 2007
@@ -5,13 +5,15 @@
Summary(pl): Wtyczka Open Source dla kompatybilności z wtyczkami Netscape'a 4 (NPAPI)
Name: nspluginwrapper
Version: 0.9.91.2
-Release: 0.1
+Release: 0.2
License: GPL v2
Group: Applications/Multimedia
Source0: http://gwenole.beauchesne.info/projects/nspluginwrapper/files/%{name}-%{version}.tar.bz2
# Source0-md5: 74e40fa501ded6f1670684b3e42464c7
URL: http://gwenole.beauchesne.info/en/projects/nspluginwrapper
BuildRequires: /usr/lib/libsupc++.a
+BuildRequires: rpmbuild(macros) >= 1.357
+Requires: browser-plugins >= 2.0
BuildRequires: gtk+2-devel
#Requires: qemu
Requires: linux32
@@ -44,12 +46,30 @@
DONT_STRIP=yes \
DESTDIR=$RPM_BUILD_ROOT
+mkdir -p $RPM_BUILD_ROOT%{_browserpluginsdir}
+ln -s %{_prefix}/lib/%{name}/%{_arch}/%{_os}/npwrapper.so $RPM_BUILD_ROOT%{_browserpluginsdir}/npwrapper.so
+
%clean
rm -rf $RPM_BUILD_ROOT
+%post
+%update_browser_plugins
+if [ "$1" = 1 ]; then
+ %{_bindir}/%{name} -v -a -i
+else
+ %{_bindir}/%{name} -v -a -u
+fi
+
+%preun
+if [ "$1" = 0 ]; then
+ %update_browser_plugins
+ %{_bindir}/%{name} -v -a -r
+fi
+
%files
%defattr(644,root,root,755)
%doc ChangeLog NEWS README TODO
+%attr(755,root,root) %{_browserpluginsdir}/npwrapper.so
%dir %{_prefix}/lib/nspluginwrapper
%dir %{_prefix}/lib/nspluginwrapper/i386
%dir %{_prefix}/lib/nspluginwrapper/i386/linux
@@ -69,6 +89,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.8 2007/01/10 00:22:41 glen
+- add %post and browser-plugins v2
+
Revision 1.7 2007/01/10 00:17:58 glen
- add %doc
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/nspluginwrapper.spec?r1=1.7&r2=1.8&f=u
More information about the pld-cvs-commit
mailing list