Include firefox extension packaging for centos
authorSam Hartman <hartmans@debian.org>
Thu, 21 May 2015 19:05:40 +0000 (15:05 -0400)
committerSam Hartman <hartmans@debian.org>
Fri, 22 May 2015 18:39:34 +0000 (14:39 -0400)
gssweb.spec

index e06e10c..748742d 100644 (file)
@@ -1,3 +1,4 @@
+%include %{_rpmconfigdir}/macros.mozilla
 Name:          gssweb
 Version:       0.1
 Release:       1%{?dist}
@@ -9,7 +10,8 @@ URL:           http://www.project-moonshot.org/
 Source0:       gssweb-%{version}.tar.gz
 BuildRoot:     %{_tmppath}/%{name}-%{version}-%{release}-root
 
-BuildRequires:  openssl-devel, cppunit-devel, jansson-devel, krb5-devel
+BuildRequires:  openssl-devel, cppunit-devel, jansson-devel, krb5-devel, glib-devel
+BuildRequires:  mozilla-build
 Requires:      moonshot-ui
 
 
@@ -17,6 +19,10 @@ Requires:    moonshot-ui
 %description
 This includes the json GSSAPI executables and libraries.
 
+%package -n firefox-gssweb
+Summary: Firefox Support for GssWeb
+Arch: noarch
+
 
 %prep
 %setup -q -n gssweb
@@ -30,6 +36,8 @@ make %{?_smp_mflags}
 %install
 rm -rf $RPM_BUILD_ROOT
 make install DESTDIR=$RPM_BUILD_ROOT
+%xpi_unpack -f browsers/firefox/gssweb.xpi
+%xpi_symlink -a %{firefox_app_id}
 
 
 %clean
@@ -41,6 +49,10 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/libjsongssapi.so
  %{_libdir}/libjsongssapi.so.*
 %{_bindir}/json_gssapi
+%files -n firefox-gssweb
+%defattr(-,root,root,-)
+%{_firefox_extdir}/
+%{_mozilla_common_extdir}/%{name}/