2 # - new dir for gecko extensions
3 %define firebreath_version 1.3.0
4 Summary: Estonian ID card digital signing browser plugin
5 Name: browser-plugin-esteid
9 Group: Applications/Networking
10 URL: http://code.google.com/p/esteid/
11 Source0: http://firebreath.googlecode.com/files/firebreath-%{firebreath_version}.tar.bz2
12 # Source0-md5: 704bd0183407a166d105277b13763d01
13 Source1: http://esteid.googlecode.com/files/esteid-browser-plugin-%{version}.tar.bz2
14 # Source1-md5: 4a26435087b8578c5727b144e5870ae6
15 BuildRequires: boost-devel
17 BuildRequires: gtkmm-devel
18 BuildRequires: libstdc++-devel
19 BuildRequires: openssl-devel
20 BuildRequires: pkgconfig
21 BuildRequires: rpmbuild(macros) >= 1.577
22 BuildRequires: smartcardpp-devel
25 # obsolete package name upstream uses
26 Obsoletes: esteid-browser-plugin
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 # this comes from install.rdf
30 %define extension_id \{aa84ce40-4253-11da-8cd6-0800200c9a66\}
33 Esteid Browser Plugin is cross-browser plugin that exposes Estonian
34 eID card functions via JavaScript.
36 The plugin is used by web pages to obtain users digital signature. To
37 protect privacy, only web pages in "whitelist" can use the card. For
38 unlisted pages, a yellow notification bar appears. The plugin also
39 implements a compatibility mode to support existing web pages that use
44 %setup -q -n firebreath-%{firebreath_version}
45 # Extract esteid-browser-plugin into firebreath's projects/ subdir
47 tar -xf %{SOURCE1} -C projects
52 export CXXFLAGS="%{rpmcxxflags} -fno-strict-aliasing"
53 export CFLAGS="$CXXFLAGS"
55 -DCMAKE_BUILD_WITH_INSTALL_RPATH=FALSE \
56 -DCMAKE_SKIP_RPATH=TRUE \
58 -DWITH_SYSTEM_BOOST:BOOL=YES
64 rm -rf $RPM_BUILD_ROOT
65 %{__make} -C build install \
66 DESTDIR=$RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_libdir}/browser-plugins
69 mv $RPM_BUILD_ROOT%{_libdir}/mozilla/plugins/npesteid.so $RPM_BUILD_ROOT%{_libdir}/browser-plugins
71 # Install Gecko extension
72 install -d $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{extension_id}
73 cp -a build/projects/esteid-browser-plugin-1/Mozilla/xpi/* \
74 $RPM_BUILD_ROOT%{_libdir}/mozilla/extensions/%{extension_id}
76 %find_lang esteid-browser-plugin
79 rm -rf $RPM_BUILD_ROOT
81 %files -f esteid-browser-plugin.lang
82 %defattr(644,root,root,755)
83 %doc projects/esteid-browser-plugin-%{version}/AUTHORS
84 %attr(755,root,root) %{_libdir}/browser-plugins/npesteid.so
85 %{_datadir}/esteid-browser-plugin
86 %{_libdir}/mozilla/extensions/%{extension_id}