Change-Id: I09f368c6c16b398a077fe524de093c93c11b8541
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3966
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,48 @@ |
| 0 |
+Summary: Mozilla's JavaScript engine. |
|
| 1 |
+Name: js |
|
| 2 |
+Version: 17.0.0 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: GPLv2+ or LGPLv2+ or MPLv1.1 |
|
| 5 |
+URL: http://www.mozilla.org/js |
|
| 6 |
+Group: Development/Languages |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: https://ftp.mozilla.org/pub/%{name}/moz%{name}%{version}.tar.gz
|
|
| 10 |
+%define sha1 mozjs=7805174898c34e5d3c3b256117af9944ba825c89 |
|
| 11 |
+BuildRequires: libffi nspr python2-libs python2-devel |
|
| 12 |
+Requires: libffi nspr python2 |
|
| 13 |
+%description |
|
| 14 |
+JS is Mozilla's JavaScript engine written in C/C++. |
|
| 15 |
+%package devel |
|
| 16 |
+Group: Development/Libraries |
|
| 17 |
+Summary: Headers and static lib for application development |
|
| 18 |
+Requires: %{name} = %{version}
|
|
| 19 |
+%description devel |
|
| 20 |
+Install this package if you want do compile applications using this package. |
|
| 21 |
+%prep |
|
| 22 |
+%setup -q -n moz%{name}%{version}/js/src
|
|
| 23 |
+%build |
|
| 24 |
+sed -i 's/(defined\((@TEMPLATE_FILE)\))/\1/' config/milestone.pl |
|
| 25 |
+./configure --prefix=%{_prefix} \
|
|
| 26 |
+ --enable-threadsafe \ |
|
| 27 |
+ --with-system-ffi \ |
|
| 28 |
+ --with-system-nspr |
|
| 29 |
+# --enable-readline \ |
|
| 30 |
+make %{?_smp_mflags}
|
|
| 31 |
+%install |
|
| 32 |
+make DESTDIR=%{buildroot} install
|
|
| 33 |
+find %{buildroot}/usr/include/js-17.0/ \
|
|
| 34 |
+ %{buildroot}/usr/lib/libmozjs-17.0.a \
|
|
| 35 |
+ %{buildroot}/usr/lib/pkgconfig/mozjs-17.0.pc \
|
|
| 36 |
+ -type f -exec chmod -v 644 {} \;
|
|
| 37 |
+%files |
|
| 38 |
+%defattr(-,root,root) |
|
| 39 |
+%{_bindir}/*
|
|
| 40 |
+%{_libdir}/*
|
|
| 41 |
+%exclude %{_libdir}/debug
|
|
| 42 |
+%files devel |
|
| 43 |
+%defattr(-,root,root) |
|
| 44 |
+%{_includedir}/*
|
|
| 45 |
+%changelog |
|
| 46 |
+* Fri May 22 2015 Alexey Makhalov <amakhalov@vmware.com> 17.0.0-1 |
|
| 47 |
+- initial version |
| 0 | 48 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,71 @@ |
| 0 |
+Summary: toolkit for defining and handling authorizations. |
|
| 1 |
+Name: polkit |
|
| 2 |
+Version: 0.113 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+License: LGPLv2+ |
|
| 5 |
+URL: http://www.freedesktop.org/software/polkit |
|
| 6 |
+Group: User Interface/Desktops |
|
| 7 |
+Vendor: VMware, Inc. |
|
| 8 |
+Distribution: Photon |
|
| 9 |
+Source0: http://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.gz
|
|
| 10 |
+%define sha1 polkit=ef855c2d04184dceb38e0940dc7bec9cc3da415c |
|
| 11 |
+BuildRequires: intltool glib-devel js-devel expat-devel systemd |
|
| 12 |
+Requires: glib js expat shadow systemd |
|
| 13 |
+%description |
|
| 14 |
+Polkit is a toolkit for defining and handling authorizations. It is used for allowing unprivileged processes to communicate with privileged processes. |
|
| 15 |
+%package devel |
|
| 16 |
+Group: Development/Libraries |
|
| 17 |
+Summary: Headers and static lib for application development |
|
| 18 |
+Requires: %{name} = %{version}
|
|
| 19 |
+Requires: intltool glib-devel js-devel expat systemd |
|
| 20 |
+%description devel |
|
| 21 |
+Install this package if you want do compile applications using the polkit. |
|
| 22 |
+%prep |
|
| 23 |
+%setup -q |
|
| 24 |
+%build |
|
| 25 |
+# current configure uses old auto tools |
|
| 26 |
+./configure --prefix=%{_prefix} \
|
|
| 27 |
+ --sysconfdir=%{_sysconfdir} \
|
|
| 28 |
+ --localstatedir=%{_localstatedir} \
|
|
| 29 |
+ --disable-static \ |
|
| 30 |
+ --enable-libsystemd-login=no \ |
|
| 31 |
+ --with-authfw=shadow |
|
| 32 |
+make %{?_smp_mflags}
|
|
| 33 |
+%install |
|
| 34 |
+make DESTDIR=%{buildroot} install
|
|
| 35 |
+install -vdm 755 %{buildroot}/etc/pam.d
|
|
| 36 |
+cat > %{buildroot}/etc/pam.d/polkit-1 << "EOF"
|
|
| 37 |
+# Begin /etc/pam.d/polkit-1 |
|
| 38 |
+ |
|
| 39 |
+auth include system-auth |
|
| 40 |
+account include system-account |
|
| 41 |
+password include system-password |
|
| 42 |
+session include system-session |
|
| 43 |
+ |
|
| 44 |
+# End /etc/pam.d/polkit-1 |
|
| 45 |
+EOF |
|
| 46 |
+%pre |
|
| 47 |
+getent group polkitd > /dev/null || groupadd -fg 27 polkitd && |
|
| 48 |
+getent passwd polkitd > /dev/null || useradd -c "PolicyKit Daemon Owner" -d /etc/polkit-1 -u 27 \ |
|
| 49 |
+ -g polkitd -s /bin/false polkitd |
|
| 50 |
+ |
|
| 51 |
+%files |
|
| 52 |
+%defattr(-,root,root) |
|
| 53 |
+%{_sysconfdir}/*
|
|
| 54 |
+%{_bindir}/*
|
|
| 55 |
+%{_libdir}/*
|
|
| 56 |
+%exclude %{_libdir}/debug
|
|
| 57 |
+%exclude %{_libdir}/*.la
|
|
| 58 |
+%exclude %{_libdir}/*.so
|
|
| 59 |
+%exclude %{_libdir}/debug
|
|
| 60 |
+%{_datadir}/*
|
|
| 61 |
+%files devel |
|
| 62 |
+%defattr(-,root,root) |
|
| 63 |
+%{_includedir}/*
|
|
| 64 |
+%{_libdir}/*.la
|
|
| 65 |
+%{_libdir}/*.so
|
|
| 66 |
+%changelog |
|
| 67 |
+* Wed Oct 04 2017 Dheeraj Shetty <dheerajs@vmware.com> 0.113-1 |
|
| 68 |
+- Upgrade to 0.113-1 |
|
| 69 |
+* Fri May 22 2015 Alexey Makhalov <amakhalov@vmware.com> 0.112-1 |
|
| 70 |
+- initial version |