From 1dcb207bfe397a8c8cff3ba6e933ad6bba2f26fb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Fri, 15 May 2015 12:47:34 +0200 Subject: [PATCH] initial --- browser-plugin-wacom.spec | 50 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 browser-plugin-wacom.spec diff --git a/browser-plugin-wacom.spec b/browser-plugin-wacom.spec new file mode 100644 index 0000000..1055b7a --- /dev/null +++ b/browser-plugin-wacom.spec @@ -0,0 +1,50 @@ +Summary: An implementation of the Wacom Tablet Plugin +Name: browser-plugin-wacom +Version: 0.3.0 +Release: 1 +License: GPL v2+ +Group: X11/Applications/Multimedia +Source0: https://github.com/ZaneA/WacomWebPlugin/archive/v%{version}.tar.gz +# Source0-md5: ac25285a639280cb9d92a912e0ee6b63 +BuildRequires: iceweasel-devel +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.357 +Requires: browser-plugins >= 2.0 +Requires: browser-plugins(%{_target_base_arch}) +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +# directory where you store the plugin +%define _plugindir %{_libdir}/browser-plugins + +%description +An implementation of the Wacom Tablet Plugin for modern browsers on +Linux. + +%prep +%setup -q -n WacomWebPlugin-%{version} +sed -i -e 's#/usr/include/firefox#%{_includedir}/iceweasel#g' Makefile +sed -i -e 's#gcc#%{__cc} %{rpmcflags} %{rpmcppflags}#g' Makefile + +%build +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +install -D npWacomWebPlugin.so $RPM_BUILD_ROOT%{_plugindir}/npWacomWebPlugin.so + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%update_browser_plugins + +%postun +if [ "$1" = "0" ]; then + %update_browser_plugins +fi + +%files +%defattr(644,root,root,755) +%doc README.md +%attr(755,root,root) %{_plugindir}/npWacomWebPlugin.so -- 2.43.0