Change-Id: I3c67f329b031e7867d5e0b9d510ddb652e548915
Reviewed-on: http://photon-jenkins.eng.vmware.com/808
Tested-by: jenkins-photon <wangnan2015@hotmail.com>
Reviewed-by: Priyesh Padmavilasom <ppadmavilasom@vmware.com>
(cherry picked from commit 819141e72018260f19db348c5b9446efe362e8b1)
Reviewed-on: http://photon-jenkins.eng.vmware.com/922
Reviewed-by: suezzelur <anishs@vmware.com>
Tested-by: suezzelur <anishs@vmware.com>
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Mercurial-3.1.2 |
| 2 | 2 |
Name: mercurial |
| 3 | 3 |
Version: 3.7.1 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: GPLv2+ |
| 6 | 6 |
URL: https://www.ruby-lang.org/en/ |
| 7 | 7 |
Group: System Environment/Security |
| ... | ... |
@@ -41,14 +41,18 @@ export PYTHONPATH="$PYTHONPATH:/var/opt/%{name}-%{version}/mercurial/pure"
|
| 41 | 41 |
EOF |
| 42 | 42 |
|
| 43 | 43 |
%{_fixperms} %{buildroot}/*
|
| 44 |
+ |
|
| 44 | 45 |
%check |
| 45 | 46 |
make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 47 |
+ |
|
| 46 | 48 |
%post -p /sbin/ldconfig |
| 49 |
+ |
|
| 47 | 50 |
%postun |
| 48 | 51 |
/sbin/ldconfig |
| 49 |
-rm /etc/profile.d/java-exports.sh |
|
| 52 |
+ |
|
| 50 | 53 |
%clean |
| 51 | 54 |
rm -rf %{buildroot}/*
|
| 55 |
+ |
|
| 52 | 56 |
%files |
| 53 | 57 |
%defattr(-,root,root) |
| 54 | 58 |
/.hgrc |
| ... | ... |
@@ -58,6 +62,8 @@ rm -rf %{buildroot}/*
|
| 58 | 58 |
%exclude /var/opt/%{name}-%{version}/contrib/plan9
|
| 59 | 59 |
%exclude /var/opt/%{name}-%{version}/build/temp.*
|
| 60 | 60 |
%changelog |
| 61 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 3.7.1-2 |
|
| 62 |
+- Edit postun script. |
|
| 61 | 63 |
* Thu Feb 25 2016 Kumar Kaushik <kaushikk@vmware.com> 3.7.1-1 |
| 62 | 64 |
- Updating Version. |
| 63 | 65 |
* Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 3.1.2-4 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Network Time Protocol reference implementation |
| 2 | 2 |
Name: ntp |
| 3 | 3 |
Version: 4.2.8p6 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: NTP |
| 6 | 6 |
URL: http://www.ntp.org/ |
| 7 | 7 |
Group: System Environment/NetworkingPrograms |
| ... | ... |
@@ -101,14 +101,13 @@ if ! getent passwd ntp >/dev/null; then |
| 101 | 101 |
fi |
| 102 | 102 |
%post |
| 103 | 103 |
%{_sbindir}/ldconfig
|
| 104 |
-if [ $1 -eq 1 ] ; then |
|
| 105 |
- # Initial installation |
|
| 106 |
- # Enabled by default per "runs once then goes away" exception |
|
| 107 |
- /bin/systemctl enable ntpd.service >/dev/null 2>&1 || : |
|
| 108 |
-fi |
|
| 104 |
+%systemd_post ntpd.service |
|
| 109 | 105 |
|
| 110 | 106 |
%preun |
| 111 |
-/bin/systemctl disable ntpd.service |
|
| 107 |
+%systemd_preun ntpd.service |
|
| 108 |
+ |
|
| 109 |
+%postun |
|
| 110 |
+%systemd_postun_with_restart ntpd.service |
|
| 112 | 111 |
|
| 113 | 112 |
%clean |
| 114 | 113 |
rm -rf %{buildroot}/*
|
| ... | ... |
@@ -133,6 +132,8 @@ rm -rf %{buildroot}/*
|
| 133 | 133 |
%{_mandir}/man8/ntpstat.8*
|
| 134 | 134 |
|
| 135 | 135 |
%changelog |
| 136 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 4.2.8p6-2 |
|
| 137 |
+- Edit scriptlets. |
|
| 136 | 138 |
* Thu Jan 21 2016 Anish Swaminathan <anishs@vmware.com> 4.2.8p6-1 |
| 137 | 139 |
- Upgrade version |
| 138 | 140 |
* Thu Jan 7 2016 Xiaolin Li <xiaolinl@vmware.com> 4.2.8p3-4 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Usermode tools for VmWare virts |
| 2 | 2 |
Name: open-vm-tools |
| 3 | 3 |
Version: 10.0.5 |
| 4 |
-Release: 8%{?dist}
|
|
| 4 |
+Release: 9%{?dist}
|
|
| 5 | 5 |
License: LGPLv2+ |
| 6 | 6 |
URL: https://github.com/vmware/open-vm-tools |
| 7 | 7 |
Group: Applications/System |
| ... | ... |
@@ -65,12 +65,10 @@ mv %{buildroot}%{_sysconfdir}/vmware-tools/vm-support %{buildroot}%{_bindir}
|
| 65 | 65 |
|
| 66 | 66 |
%post |
| 67 | 67 |
/sbin/ldconfig |
| 68 |
-%systemd_post vgauthd.service |
|
| 69 |
-%systemd_post vmtoolsd.service |
|
| 68 |
+%systemd_post vgauthd.service vmtoolsd.service |
|
| 70 | 69 |
|
| 71 | 70 |
%preun |
| 72 |
-%systemd_preun vmtoolsd.service |
|
| 73 |
-%systemd_preun vgauthd.service |
|
| 71 |
+%systemd_preun vmtoolsd.service vgauthd.service |
|
| 74 | 72 |
# Tell VMware that open-vm-tools is being uninstalled |
| 75 | 73 |
if [ "$1" = "0" -a \ |
| 76 | 74 |
-e %{_bindir}/vmware-checkvm -a \
|
| ... | ... |
@@ -81,8 +79,7 @@ fi |
| 81 | 81 |
|
| 82 | 82 |
%postun |
| 83 | 83 |
/sbin/ldconfig |
| 84 |
-%systemd_postun_with_restart vmtoolsd.service |
|
| 85 |
-%systemd_postun_with_restart vgauthd.service |
|
| 84 |
+%systemd_postun_with_restart vmtoolsd.service vgauthd.service |
|
| 86 | 85 |
|
| 87 | 86 |
%files |
| 88 | 87 |
%defattr(-,root,root) |
| ... | ... |
@@ -100,6 +97,8 @@ fi |
| 100 | 100 |
|
| 101 | 101 |
|
| 102 | 102 |
%changelog |
| 103 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 10.0.5-9 |
|
| 104 |
+- Edit scriptlets. |
|
| 103 | 105 |
* Fri Apr 29 2016 Kumar Kaushik <kaushikk@vmware.com> 10.0.5-8 |
| 104 | 106 |
- Combining all GOSC scripts patches and fixing bug#1648133. |
| 105 | 107 |
* Tue Apr 19 2016 Kumar Kaushik <kaushikk@vmware.com> 10.0.5-7 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 |
-Summary: 'Free version of the SSH connectivity tools |
|
| 1 |
+Summary: Free version of the SSH connectivity tools |
|
| 2 | 2 |
Name: openssh |
| 3 | 3 |
Version: 7.1p2 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: BSD |
| 6 | 6 |
URL: http://openssh.org |
| 7 | 7 |
Group: System Environment/Security |
| ... | ... |
@@ -94,18 +94,28 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 94 | 94 |
%pre |
| 95 | 95 |
getent group sshd >/dev/null || groupadd -g 50 sshd |
| 96 | 96 |
getent passwd sshd >/dev/null || useradd -c 'sshd PrivSep' -d /var/lib/sshd -g sshd -s /bin/false -u 50 sshd |
| 97 |
+ |
|
| 97 | 98 |
%preun |
| 98 |
-/bin/systemctl disable sshd-keygen.service |
|
| 99 |
-/bin/systemctl disable sshd.service |
|
| 99 |
+%systemd_preun sshd.service sshd-keygen.service |
|
| 100 |
+ |
|
| 100 | 101 |
%post |
| 101 | 102 |
/sbin/ldconfig |
| 102 |
-chown -v root:sys /var/lib/sshd |
|
| 103 |
-/bin/systemctl enable sshd-keygen.service |
|
| 104 |
-/bin/systemctl enable sshd.service |
|
| 103 |
+if [ $1 -eq 1 ] ; then |
|
| 104 |
+ chown -v root:sys /var/lib/sshd |
|
| 105 |
+fi |
|
| 106 |
+%systemd_post sshd.service sshd-keygen.service |
|
| 105 | 107 |
|
| 106 | 108 |
%postun |
| 107 | 109 |
/sbin/ldconfig |
| 108 | 110 |
%systemd_postun_with_restart sshd.service sshd-keygen.service |
| 111 |
+if [ $1 -eq 0 ] ; then |
|
| 112 |
+ if getent passwd sshd >/dev/null; then |
|
| 113 |
+ userdel sshd |
|
| 114 |
+ fi |
|
| 115 |
+ if getent group sshd >/dev/null; then |
|
| 116 |
+ groupdel sshd |
|
| 117 |
+ fi |
|
| 118 |
+fi |
|
| 109 | 119 |
|
| 110 | 120 |
%clean |
| 111 | 121 |
rm -rf %{buildroot}/*
|
| ... | ... |
@@ -127,8 +137,10 @@ rm -rf %{buildroot}/*
|
| 127 | 127 |
%{_mandir}/man8/*
|
| 128 | 128 |
%attr(700,root,sys)/var/lib/sshd |
| 129 | 129 |
%changelog |
| 130 |
-* Thu Mar 17 2016 Xiaolin Li <xiaolinl@vmware.com> 7.1p2-1 |
|
| 131 |
-- Updated to version 7.1p2 |
|
| 130 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 7.1p2-2 |
|
| 131 |
+- Edit scriptlets. |
|
| 132 |
+* Thu Mar 17 2016 Xiaolin Li <xiaolinl@vmware.com> 7.1p2-1 |
|
| 133 |
+- Updated to version 7.1p2 |
|
| 132 | 134 |
* Fri Feb 05 2016 Anish Swaminathan <anishs@vmware.com> 6.6p1-6 |
| 133 | 135 |
- Add pre install scripts in the rpm |
| 134 | 136 |
* Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 6.6p1-5 |
| ... | ... |
@@ -1,11 +1,10 @@ |
| 1 | 1 |
Summary: Git for operating system binaries |
| 2 | 2 |
Name: ostree |
| 3 | 3 |
Version: 2015.7 |
| 4 |
-Release: 2%{?dist}
|
|
| 4 |
+Release: 3%{?dist}
|
|
| 5 | 5 |
Source0: http://ftp.gnome.org/pub/GNOME/sources/ostree/%{version}/%{name}-%{version}.tar.gz
|
| 6 | 6 |
%define sha1 ostree=baa502aa46363cd4828d257fb87f5e18a7ed000a |
| 7 | 7 |
Source1: 91-ostree.preset |
| 8 |
-#Patch0: ostree_syntax_error_fix.patch |
|
| 9 | 8 |
License: LGPLv2+ |
| 10 | 9 |
URL: http://live.gnome.org/OSTree |
| 11 | 10 |
Vendor: VMware, Inc. |
| ... | ... |
@@ -66,8 +65,6 @@ The %{name}-devel package includes the header files for the %{name} library
|
| 66 | 66 |
git clone git://git.gnome.org/libglnx libglnx |
| 67 | 67 |
git clone https://github.com/mendsley/bsdiff bsdiff |
| 68 | 68 |
|
| 69 |
-#pwd |
|
| 70 |
-#%patch0 -p0 |
|
| 71 | 69 |
%build |
| 72 | 70 |
env NOCONFIGURE=1 ./autogen.sh |
| 73 | 71 |
%configure \ |
| ... | ... |
@@ -126,8 +123,10 @@ rm -rf %{buildroot}
|
| 126 | 126 |
%{_datadir}/gir-1.0/OSTree-1.0.gir
|
| 127 | 127 |
|
| 128 | 128 |
%changelog |
| 129 |
-* Sat Jul 11 2015 Touseef Liaqat <tliaqat@vmware.com> 2015.7-2 |
|
| 130 |
-- Add dracut, mkinitcpio and libsoup as dependencies |
|
| 129 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 2015.7-3 |
|
| 130 |
+- Remove commented steps. |
|
| 131 |
+* Sat Jul 11 2015 Touseef Liaqat <tliaqat@vmware.com> 2015.7-2 |
|
| 132 |
+- Add dracut, mkinitcpio and libsoup as dependencies |
|
| 131 | 133 |
* Wed Jun 17 2015 Anish Swaminathan <anishs@vmware.com> 2015.7-1 |
| 132 | 134 |
- Updated the version |
| 133 | 135 |
* Tue Nov 25 2014 Divya Thaluru <dthaluru@vmware.com> 2014.11-1 |
| 134 | 136 |
deleted file mode 100644 |
| ... | ... |
@@ -1,10 +0,0 @@ |
| 1 |
-+++ src/libostree/ostree-repo_modified.c 2014-11-25 11:00:53.853017693 -0800 |
|
| 2 |
-@@ -2181,6 +2181,7 @@ |
|
| 3 |
- gboolean |
|
| 4 |
- ostree_repo_pull_one_dir (OstreeRepo *self, |
|
| 5 |
- const char *remote_name, |
|
| 6 |
-+ const char *dir_to_pull, |
|
| 7 |
- char **refs_to_fetch, |
|
| 8 |
- OstreeRepoPullFlags flags, |
|
| 9 |
- OstreeAsyncProgress *progress, |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Connection pooler for PostgreSQL. |
| 2 | 2 |
Name: pgbouncer |
| 3 | 3 |
Version: 1.7.2 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
License: BSD |
| 6 | 6 |
URL: https://wiki.postgresql.org/wiki/PgBouncer |
| 7 | 7 |
Source0: https://pgbouncer.github.io/downloads/files/1.7.2/%{name}-%{version}.tar.gz
|
| ... | ... |
@@ -48,18 +48,30 @@ WantedBy=multi-user.target |
| 48 | 48 |
EOF |
| 49 | 49 |
|
| 50 | 50 |
%pre |
| 51 |
-/sbin/groupadd -r %{name}
|
|
| 52 |
-/sbin/useradd -g %{name} %{name}
|
|
| 51 |
+if ! getent group %{name} >/dev/null; then
|
|
| 52 |
+ /sbin/groupadd -r %{name}
|
|
| 53 |
+fi |
|
| 54 |
+if ! getent passwd %{name} >/dev/null; then
|
|
| 55 |
+ /sbin/useradd -g %{name} %{name}
|
|
| 56 |
+fi |
|
| 53 | 57 |
|
| 54 | 58 |
%post |
| 55 |
-chown %{name}:%{name} /var/log/%{name}
|
|
| 56 |
-chown %{name}:%{name} /var/run/%{name}
|
|
| 59 |
+if [ $1 -eq 1 ] ; then |
|
| 60 |
+ chown %{name}:%{name} /var/log/%{name}
|
|
| 61 |
+ chown %{name}:%{name} /var/run/%{name}
|
|
| 62 |
+fi |
|
| 57 | 63 |
|
| 58 | 64 |
%postun |
| 59 |
-/sbin/userdel pgbouncer |
|
| 60 |
-/sbin/groupdel pgbouncer |
|
| 61 |
-rm -rf /var/log/%{name}
|
|
| 62 |
-rm -rf /var/run/%{name}
|
|
| 65 |
+if [ $1 -eq 0 ] ; then |
|
| 66 |
+ if getent passwd %{name} >/dev/null; then
|
|
| 67 |
+ /sbin/userdel %{name}
|
|
| 68 |
+ fi |
|
| 69 |
+ if getent group %{name} >/dev/null; then
|
|
| 70 |
+ /sbin/groupdel %{name}
|
|
| 71 |
+ fi |
|
| 72 |
+ rm -rf /var/log/%{name}
|
|
| 73 |
+ rm -rf /var/run/%{name}
|
|
| 74 |
+fi |
|
| 63 | 75 |
|
| 64 | 76 |
%files |
| 65 | 77 |
%defattr(-,root,root,-) |
| ... | ... |
@@ -73,5 +85,7 @@ rm -rf /var/run/%{name}
|
| 73 | 73 |
/var/run/pgbouncer |
| 74 | 74 |
|
| 75 | 75 |
%changelog |
| 76 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 1.7.2-2 |
|
| 77 |
+- Edit scriptlets. |
|
| 76 | 78 |
* Thu Apr 28 2016 Kumar Kaushik <kaushikk@vmware.com> 1.7.2-1 |
| 77 | 79 |
- Initial Version. |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: A high-level scripting language |
| 2 | 2 |
Name: python3 |
| 3 | 3 |
Version: 3.5.1 |
| 4 |
-Release: 3%{?dist}
|
|
| 4 |
+Release: 4%{?dist}
|
|
| 5 | 5 |
License: PSF |
| 6 | 6 |
URL: http://www.python.org/ |
| 7 | 7 |
Group: System Environment/Programming |
| ... | ... |
@@ -116,8 +116,6 @@ make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck}
|
| 116 | 116 |
|
| 117 | 117 |
%post |
| 118 | 118 |
/sbin/ldconfig |
| 119 |
-#ln -s %{_bindir}/python3 %{_bindir}/python
|
|
| 120 |
-#ln -s %{_bindir}/python3-config %{_bindir}/python-config
|
|
| 121 | 119 |
ln -sf %{_libdir}/libpython3.5m.so %{_libdir}/libpython3.5.so
|
| 122 | 120 |
|
| 123 | 121 |
%post libs |
| ... | ... |
@@ -125,7 +123,9 @@ export PYTHONHOME=/usr |
| 125 | 125 |
export PYTHONPATH=/usr/lib/python3.5 |
| 126 | 126 |
|
| 127 | 127 |
%postun |
| 128 |
-rm %{_libdir}/libpython3.5.so
|
|
| 128 |
+if [ $1 -eq 0 ] ; then |
|
| 129 |
+ rm %{_libdir}/libpython3.5.so
|
|
| 130 |
+fi |
|
| 129 | 131 |
/sbin/ldconfig |
| 130 | 132 |
|
| 131 | 133 |
%clean |
| ... | ... |
@@ -186,12 +186,14 @@ rm -rf %{buildroot}/*
|
| 186 | 186 |
%{_bindir}/idle*
|
| 187 | 187 |
|
| 188 | 188 |
%changelog |
| 189 |
-* Wed Apr 13 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.5.1-3 |
|
| 190 |
-- update python to require python-libs |
|
| 191 |
-* Thu Apr 07 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 3.5.1-2 |
|
| 192 |
-- Providing python3 binaries instead of the minor versions. |
|
| 193 |
-* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.5.1-1 |
|
| 194 |
-- Updated to version 3.5.1 |
|
| 189 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 3.5.1-4 |
|
| 190 |
+- Edit scriptlets. |
|
| 191 |
+* Wed Apr 13 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.5.1-3 |
|
| 192 |
+- update python to require python-libs |
|
| 193 |
+* Thu Apr 07 2016 Mahmoud Bassiouny <mbassiouny@vmware.com> 3.5.1-2 |
|
| 194 |
+- Providing python3 binaries instead of the minor versions. |
|
| 195 |
+* Tue Feb 23 2016 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.5.1-1 |
|
| 196 |
+- Updated to version 3.5.1 |
|
| 195 | 197 |
* Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 3.4.3-3 |
| 196 | 198 |
- Edit post script. |
| 197 | 199 |
* Mon Aug 17 2015 Vinay Kulkarni <kulkarniv@vmware.com> 3.4.3-2 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: RPC program number mapper |
| 2 | 2 |
Name: rpcbind |
| 3 | 3 |
Version: 0.2.3 |
| 4 |
-Release: 4%{?dist}
|
|
| 4 |
+Release: 5%{?dist}
|
|
| 5 | 5 |
License: BSD |
| 6 | 6 |
URL: http://nfsv4.bullopensource.org |
| 7 | 7 |
Group: Applications/Daemons |
| ... | ... |
@@ -70,9 +70,10 @@ fi |
| 70 | 70 |
|
| 71 | 71 |
%post |
| 72 | 72 |
/sbin/ldconfig |
| 73 |
-chown -v root:sys /var/lib/rpcbind |
|
| 74 |
-systemctl enable rpcbind.socket >/dev/null 2>&1 |
|
| 75 |
-systemctl enable rpcbind.service >/dev/null 2>&1 |
|
| 73 |
+if [ $1 -eq 1 ] ; then |
|
| 74 |
+ chown -v root:sys /var/lib/rpcbind |
|
| 75 |
+fi |
|
| 76 |
+%systemd_post rpcbind.socket rpcbind.service |
|
| 76 | 77 |
|
| 77 | 78 |
%postun |
| 78 | 79 |
/sbin/ldconfig |
| ... | ... |
@@ -81,6 +82,8 @@ systemctl enable rpcbind.service >/dev/null 2>&1 |
| 81 | 81 |
%clean |
| 82 | 82 |
rm -rf %{buildroot}/*
|
| 83 | 83 |
%changelog |
| 84 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 0.2.3-5 |
|
| 85 |
+- Edit scriptlets. |
|
| 84 | 86 |
* Fri Feb 05 2016 Anish Swaminathan <anishs@vmware.com> 0.2.3-4 |
| 85 | 87 |
- Add pre install scripts in the rpm |
| 86 | 88 |
* Wed Feb 03 2016 Anish Swaminathan <anishs@vmware.com> 0.2.3-3 |
| ... | ... |
@@ -1,7 +1,7 @@ |
| 1 | 1 |
Summary: Extra tools for rpm-ostree |
| 2 | 2 |
Name: rpm-ostree-toolbox |
| 3 | 3 |
Version: 2015.12 |
| 4 |
-Release: 1%{?dist}
|
|
| 4 |
+Release: 2%{?dist}
|
|
| 5 | 5 |
#VCS: https://github.com/cgwalters/rpm-ostree-toolbox |
| 6 | 6 |
# This tarball is generated via "make -C packaging -f Makefile.dist-packaging dist-snapshot" |
| 7 | 7 |
# which is really just a wrapper for "git archive". |
| ... | ... |
@@ -34,50 +34,6 @@ Requires: python2 |
| 34 | 34 |
Requires: shadow |
| 35 | 35 |
Requires: perl-Config-IniFiles |
| 36 | 36 |
Requires: perl-JSON-XS |
| 37 |
-# |
|
| 38 |
-# %global unprivileged_user rpmostreecompose |
|
| 39 |
-# %global unprivileged_group rpmostreecompose |
|
| 40 |
-# |
|
| 41 |
-# Requires: python |
|
| 42 |
-# Requires: python-iniparse |
|
| 43 |
-# Requires: pygobject2 |
|
| 44 |
-# Requires: gjs |
|
| 45 |
-# Requires: libvirt-python |
|
| 46 |
-# Requires: libguestfs-tools-c |
|
| 47 |
-# Requires: libguestfs-gobject |
|
| 48 |
-# # Needed for libguests |
|
| 49 |
-# Requires: kernel |
|
| 50 |
-# |
|
| 51 |
-# Requires: rpm-ostree |
|
| 52 |
-# Requires: lorax |
|
| 53 |
-# |
|
| 54 |
-# %if 0%{?fedora}
|
|
| 55 |
-# Requires: docker-io |
|
| 56 |
-# %else |
|
| 57 |
-# Requires: docker |
|
| 58 |
-# %endif |
|
| 59 |
-# |
|
| 60 |
-# # Imagefactory |
|
| 61 |
-# Requires: imagefactory >= 1.1.7-1 |
|
| 62 |
-# Requires: imagefactory-plugins-TinMan >= 1.1.7-1 |
|
| 63 |
-# Requires: imagefactory-plugins-OVA >= 1.1.7-1 |
|
| 64 |
-# Requires: imagefactory-plugins-vSphere >= 1.1.7-1 |
|
| 65 |
-# Requires: imagefactory-plugins-RHEVM >= 1.1.7-1 |
|
| 66 |
-# Requires: imagefactory-plugins-IndirectionCloud >= 1.1.7-1 |
|
| 67 |
-# |
|
| 68 |
-# Requires: VMDKstream >= 0.3-1 |
|
| 69 |
-# |
|
| 70 |
-# %if 0%{?rhel}
|
|
| 71 |
-# %else |
|
| 72 |
-# Requires: libguestfs-xfs |
|
| 73 |
-# %endif |
|
| 74 |
-# # Needed for rpmostree-build-monitor |
|
| 75 |
-# Requires: python-qpid |
|
| 76 |
-# Requires: cyrus-sasl-gssapi |
|
| 77 |
-# Requires: python-saslwrapper |
|
| 78 |
-# Requires(pre): shadow-utils |
|
| 79 |
-# Requires: systemd-units |
|
| 80 |
-# Requires(post): systemd-units |
|
| 81 | 37 |
|
| 82 | 38 |
%description |
| 83 | 39 |
Various utilities and scripts for working with rpm-ostree based |
| ... | ... |
@@ -95,13 +51,23 @@ make %{?_smp_mflags}
|
| 95 | 95 |
make install DESTDIR=%{buildroot} INSTALL="install -p -c"
|
| 96 | 96 |
|
| 97 | 97 |
%pre |
| 98 |
-getent group %{unprivileged_group} >/dev/null || groupadd -r %{unprivileged_group}
|
|
| 99 |
-getent passwd %{unprivileged_user} >/dev/null || \
|
|
| 100 |
- useradd -r -g %{unprivileged_group} -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "RPM OStree Toolbox user" %{unprivileged_user}
|
|
| 98 |
+getent group rpmostreecompose >/dev/null || groupadd -r rpmostreecompose |
|
| 99 |
+getent passwd rpmostreecompose >/dev/null || \ |
|
| 100 |
+ useradd -r -g rpmostreecompose -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "RPM OStree Toolbox user" rpmostreecompose
|
|
| 101 | 101 |
|
| 102 | 102 |
%post |
| 103 | 103 |
/bin/systemctl daemon-reload >/dev/null 2>&1 || : |
| 104 | 104 |
|
| 105 |
+%postun |
|
| 106 |
+if [ $1 -eq 0 ] ; then |
|
| 107 |
+ if getent passwd rpmostreecompose >/dev/null; then |
|
| 108 |
+ userdel rpmostreecompose |
|
| 109 |
+ fi |
|
| 110 |
+ if getent group rpmostreecompose >/dev/null; then |
|
| 111 |
+ groupdel rpmostreecompose |
|
| 112 |
+ fi |
|
| 113 |
+fi |
|
| 114 |
+ |
|
| 105 | 115 |
%files |
| 106 | 116 |
%doc COPYING README.md src/py/config.ini.sample |
| 107 | 117 |
%{_bindir}/rpm-ostree-toolbox
|
| ... | ... |
@@ -110,11 +76,13 @@ getent passwd %{unprivileged_user} >/dev/null || \
|
| 110 | 110 |
%{_mandir}/man1/%{name}*.gz
|
| 111 | 111 |
|
| 112 | 112 |
%dir %{_localstatedir}/lib/%{name}
|
| 113 |
-%attr(0755,%{unprivileged_user},%{unprivileged_group}) %{_localstatedir}/lib/%{name}
|
|
| 113 |
+%attr(0755,rpmostreecompose,rpmostreecompose) %{_localstatedir}/lib/%{name}
|
|
| 114 | 114 |
|
| 115 | 115 |
%changelog |
| 116 |
+* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 2015.12-2 |
|
| 117 |
+- Clean up the spec file. |
|
| 116 | 118 |
* Tue Feb 23 2016 Xiaolin Li <xiaolinl@vmware.com> 2015.12-1 |
| 117 | 119 |
- Updated to version 2015.12 |
| 118 |
-* Sat May 24 2014 Colin Walters <walters@verbum.org> - 2014.11-1 |
|
| 119 |
-- Initial package |
|
| 120 |
+* Sat May 24 2014 Colin Walters <walters@verbum.org> - 2014.11-1 |
|
| 121 |
+- Initial package |
|
| 120 | 122 |
|