Fixed dependency generator to provide correct sorted order of packages
Updating the dependencies after repackaging openjdk
Fixed the package name for openjdk-devel
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Ant contrib |
2 | 2 |
Name: ant-contrib |
3 | 3 |
Version: 1.0b3 |
4 |
-Release: 0%{?dist} |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://ant-contrib.sourceforget.net |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -10,9 +10,9 @@ Distribution: Photon |
10 | 10 |
BuildArch: noarch |
11 | 11 |
Source0: http://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/%{name}-%{version}-src.tar.gz |
12 | 12 |
%define sha1 ant-contrib=b28d2bf18656b263611187fa9fbb95cec93d47c8 |
13 |
-Requires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
14 |
-BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
15 |
- |
|
13 |
+Requires: openjre >= 1.8.0.45, apache-ant >= 1.9.4 |
|
14 |
+BuildRequires: openjre >= 1.8.0.45, apache-ant >= 1.9.4 |
|
15 |
+BuildRequires: openjdk >= 1.8.0.45 |
|
16 | 16 |
%define _prefix /opt/ant-contrib |
17 | 17 |
|
18 | 18 |
%description |
... | ... |
@@ -38,5 +38,7 @@ cd %{buildroot}/opt && tar xvzf %{_prefix}/ant-contrib-1.0b3-bin.tar.gz --wildca |
38 | 38 |
%{_prefix}/lib/*.jar |
39 | 39 |
|
40 | 40 |
%changelog |
41 |
-* Fri Jun 9 2015 Sriram Nambakam <snambakam@vmware.com> 1.0b3.0-0 |
|
41 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.0b3.0-1 |
|
42 |
+- Updated dependencies after repackaging openjdk. |
|
43 |
+* Tue Jun 9 2015 Sriram Nambakam <snambakam@vmware.com> 1.0b3.0-0 |
|
42 | 44 |
- Initial commit |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Apache Ant |
2 | 2 |
Name: apache-ant |
3 | 3 |
Version: 1.9.4 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://ant.apache.org |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -14,9 +14,9 @@ Source1: http://hamcrest.googlecode.com/files/hamcrest-1.3.tar.gz |
14 | 14 |
%define sha1 hamcrest=f0ab4d66186b894a06d89d103c5225cf53697db3 |
15 | 15 |
Source2: http://dl.bintray.com/vmware/photon_sources/1.0/maven-ant-tasks-2.1.3.tar.gz |
16 | 16 |
%define sha1 maven-ant-tasks=f38c0cc7b38007b09638366dbaa4ee902d9c255b |
17 |
-Requires: openjdk >= 1.8.0.45, python2 |
|
17 |
+Requires: openjre >= 1.8.0.45, python2 |
|
18 |
+BuildRequires: openjre >= 1.8.0.45 |
|
18 | 19 |
BuildRequires: openjdk >= 1.8.0.45 |
19 |
- |
|
20 | 20 |
%define _prefix /opt/apache-ant-1.9.4 |
21 | 21 |
%define _bindir %{_prefix}/bin |
22 | 22 |
%define _libdir %{_prefix}/lib |
... | ... |
@@ -66,6 +66,8 @@ chmod 644 $MAVEN_ANT_TASKS_DIR/* |
66 | 66 |
%{_prefix}/maven-ant-tasks/* |
67 | 67 |
|
68 | 68 |
%changelog |
69 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.9.4-2 |
|
70 |
+- Updated dependencies after repackaging openjdk. |
|
69 | 71 |
* Wed Aug 12 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4 |
70 | 72 |
- Added maven ant tasks |
71 | 73 |
* Fri May 22 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4 |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Apache Maven |
2 | 2 |
Name: apache-maven |
3 | 3 |
Version: 3.3.3 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://maven.apache.org |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -10,8 +10,8 @@ Distribution: Photon |
10 | 10 |
BuildArch: noarch |
11 | 11 |
Source0: http://apache.mirrors.lucidnetworks.net//maven/source/%{name}-%{version}-src.tar.gz |
12 | 12 |
%define sha1 apache-maven=70301d0669bc86cd81b25a05b1daab3c6ca23595 |
13 |
-Requires: openjdk >= 1.8.0.45 |
|
14 |
-BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4, wget >= 1.15 |
|
13 |
+Requires: openjre >= 1.8.0.45 |
|
14 |
+BuildRequires: openjre >= 1.8.0.45, openjdk >= 1.8.0.45, apache-ant >= 1.9.4, wget >= 1.15 |
|
15 | 15 |
|
16 | 16 |
%define _prefix /opt/apache-maven-3.3.3 |
17 | 17 |
%define _bindir %{_prefix}/bin |
... | ... |
@@ -61,6 +61,8 @@ echo 'export MAVEN_OPTS=-Xms256m' >> %{buildroot}/etc/profile.d/%{name}.sh |
61 | 61 |
%{_prefix}/conf/toolchains.xml |
62 | 62 |
|
63 | 63 |
%changelog |
64 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.3.3-2 |
|
65 |
+- Updated dependencies after repackaging openjdk. |
|
64 | 66 |
* Thu Jul 9 2015 Sarah Choi<sarahc@vmware.com> 3.3.3-1 |
65 | 67 |
- Add a script to set environment variables for MAVEN |
66 | 68 |
* Fri May 22 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4 |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Apache Tomcat |
2 | 2 |
Name: apache-tomcat |
3 | 3 |
Version: 7.0.63 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://tomcat.apache.org |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -10,7 +10,7 @@ Distribution: Photon |
10 | 10 |
BuildArch: noarch |
11 | 11 |
Source0: http://mirrors.gigenet.com/apache/tomcat/tomcat-7/v7.0.63/src/%{name}-%{version}.tar.gz |
12 | 12 |
%define sha1 apache-tomcat=ddd520f6df2414f10b6b0832dcacd7889f2dbff0 |
13 |
-Requires: openjdk >= 1.8.0.45 |
|
13 |
+Requires: openjre >= 1.8.0.45 |
|
14 | 14 |
|
15 | 15 |
%define _prefix /opt/%{name}-%{version} |
16 | 16 |
%define _bindir %{_prefix}/bin |
... | ... |
@@ -51,5 +51,7 @@ rm -rf %{buildroot}/* |
51 | 51 |
%{_webappsdir}/* |
52 | 52 |
|
53 | 53 |
%changelog |
54 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 7.0.63-2 |
|
55 |
+- Updated dependency after repackaging openjdk. |
|
54 | 56 |
* Wed Jul 8 2015 Sriram Nambakam <snambakam@vmware.com> 7.0.63 |
55 | 57 |
- Initial build. First version |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Apache Commons Daemon |
2 | 2 |
Name: commons-daemon |
3 | 3 |
Version: 1.0.15 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://commons.apache.org/proper/commons-daemon |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -10,8 +10,8 @@ Distribution: Photon |
10 | 10 |
BuildArch: x86_64 |
11 | 11 |
Source0: http://apache.mesi.com.ar//commons/daemon/source/commons-daemon-1.0.15-src.tar.gz |
12 | 12 |
%define sha1 commons-daemon=ca6a448d1d214f714e214b35809a2117568970e3 |
13 |
-Requires: openjdk >= 1.8.0.45 |
|
14 |
-BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
13 |
+Requires: openjre >= 1.8.0.45 |
|
14 |
+BuildRequires: openjre >= 1.8.0.45, openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
15 | 15 |
|
16 | 16 |
%define _prefix /opt/%{name}-%{version} |
17 | 17 |
%define _bindir %{_prefix}/bin |
... | ... |
@@ -58,5 +58,7 @@ chmod -R 755 $DIST_DIR |
58 | 58 |
%{_prefix}/*.jar |
59 | 59 |
|
60 | 60 |
%changelog |
61 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.0.15-2 |
|
62 |
+- Updated dependencies after repackaging openjdk. |
|
61 | 63 |
* Wed Jul 15 2015 Sriram Nambakam <snambakam@vmware.com> 1.0.15-1 |
62 | 64 |
- Initial commit |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Jax WS Reference Implementation |
2 | 2 |
Name: jaxws-ri |
3 | 3 |
Version: 2.2.5 |
4 |
-Release: 1%{?dist} |
|
4 |
+Release: 2%{?dist} |
|
5 | 5 |
License: CDDL-1.0, GPLv2 |
6 | 6 |
URL: http://jax-ws.java.net/2.2.5 |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -10,7 +10,7 @@ Distribution: Photon |
10 | 10 |
BuildArch: noarch |
11 | 11 |
Source0: http://jax-ws.java.net/2.2.5/%{name}-%{version}.tar.gz |
12 | 12 |
%define sha1 jaxws-ri=b48b4592bd75991838d1ec003158f6b4ae05ebff |
13 |
-Requires: openjdk >= 1.8.0.45 |
|
13 |
+Requires: openjre >= 1.8.0.45 |
|
14 | 14 |
|
15 | 15 |
%define _prefix /opt/%{name}-%{version} |
16 | 16 |
%define _bindir %{_prefix}/bin |
... | ... |
@@ -46,5 +46,7 @@ rm -rf %{buildroot}/* |
46 | 46 |
%{_libdir}/*.jar |
47 | 47 |
|
48 | 48 |
%changelog |
49 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 2.2.5-2 |
|
50 |
+- Updated dependency after repackaging openjdk. |
|
49 | 51 |
* Thu Jul 9 2015 Sriram Nambakam <snambakam@vmware.com> 2.2.5 |
50 | 52 |
- Initial build. First version |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Java Native Access |
2 | 2 |
Name: jna |
3 | 3 |
Version: 4.1.0 |
4 |
-Release: 0%{?dist} |
|
4 |
+Release: 1%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://github.com/twall/jna |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -10,8 +10,8 @@ Distribution: Photon |
10 | 10 |
BuildArch: x86_64 |
11 | 11 |
Source0: http://dl.bintray.com/vmware/photon_release_1.0_TP1_x86_64/%{name}-%{version}.tar.gz |
12 | 12 |
%define sha1 jna=c520c1be533619d3cbc3ad448d49a8f24ee60bda |
13 |
-Requires: openjdk >= 1.8.0.45 |
|
14 |
-BuildRequires: openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
13 |
+Requires: openjre >= 1.8.0.45 |
|
14 |
+BuildRequires: openjre >= 1.8.0.45, openjdk >= 1.8.0.45, apache-ant >= 1.9.4 |
|
15 | 15 |
|
16 | 16 |
%define _prefix /opt/jna-4.1.0 |
17 | 17 |
|
... | ... |
@@ -63,5 +63,7 @@ $ANT_HOME/bin/ant -Ddist=$JNA_DIST_DIR dist -Drelease=true |
63 | 63 |
%{_prefix}/*sources.jar |
64 | 64 |
|
65 | 65 |
%changelog |
66 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 4.1.0-1 |
|
67 |
+- Updated dependencies after repackaging openjdk. |
|
66 | 68 |
* Fri May 29 2015 Sriram Nambakam <snambakam@vmware.com> 4.1.0-0 |
67 | 69 |
- Initial commit |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Mesos |
2 | 2 |
Name: mesos |
3 | 3 |
Version: 0.23.0 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
License: Apache |
6 | 6 |
URL: http://mesos.apache.org |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -9,7 +9,8 @@ Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source0: http://mirror.sdunix.com/apache/%{name}/%{version}/%{name}-%{version}.tar.gz |
11 | 11 |
%define sha1 mesos=05006a8a2752a089f40823d1c9ec795476ed0b93 |
12 |
-BuildRequires: openjdk >= 1.8.0.45 |
|
12 |
+BuildRequires: openjre >= 1.8.0.45 |
|
13 |
+BuildRequires: openjdk >= 1.8.0.45 |
|
13 | 14 |
BuildRequires: curl |
14 | 15 |
BuildRequires: apache-maven >= 3.3.3 |
15 | 16 |
BuildRequires: apr >= 1.5.2 |
... | ... |
@@ -25,7 +26,7 @@ Requires: apr >= 1.5.2 |
25 | 25 |
Requires: apr-util >= 1.5.4 |
26 | 26 |
Requires: cyrus-sasl >= 2.1.26 |
27 | 27 |
Requires: expat |
28 |
-Requires: openjdk >= 1.8.0.45 |
|
28 |
+Requires: openjre >= 1.8.0.45 |
|
29 | 29 |
Requires: subversion >= 1.8.13 |
30 | 30 |
|
31 | 31 |
%description |
... | ... |
@@ -80,6 +81,8 @@ make DESTDIR=%{buildroot} install |
80 | 80 |
%exclude %{_libdir}/debug/ |
81 | 81 |
|
82 | 82 |
%changelog |
83 |
+* Wed Sep 16 2015 Harish Udaiya Kumar <hudaiyakumar.com> 0.23.0-3 |
|
84 |
+- Updated the dependencies after repackaging the openjdk. |
|
83 | 85 |
* Tue Sep 08 2015 Vinay Kulkarni <kulkarniv@vmware.com> 0.23.0-2 |
84 | 86 |
- Move headers, pc, dev libs into devel pkg. |
85 | 87 |
* Tue Sep 01 2015 Vinay Kulkarni <kulkarniv@vmware.com> 0.23.0-1 |
... | ... |
@@ -2,7 +2,7 @@ |
2 | 2 |
Summary: OpenJDK |
3 | 3 |
Name: openjdk |
4 | 4 |
Version: 1.8.0.51 |
5 |
-Release: 1%{?dist} |
|
5 |
+Release: 2%{?dist} |
|
6 | 6 |
License: GNU GPL |
7 | 7 |
URL: https://openjdk.java.net |
8 | 8 |
Group: Development/Tools |
... | ... |
@@ -14,6 +14,35 @@ Source0: http://anduin.linuxfromscratch.org/files/BLFS/OpenJDK-%{version}/OpenJD |
14 | 14 |
%description |
15 | 15 |
The OpenJDK package installs java class library and javac java compiler. |
16 | 16 |
|
17 |
+%package -n openjre |
|
18 |
+Summary: Jave runtime environtment |
|
19 |
+AutoReqProv: no |
|
20 |
+%description -n openjre |
|
21 |
+It contains the libraries files for Java runtime environment |
|
22 |
+#%global __requires_exclude ^libgif.*$ |
|
23 |
+#%filter_from_requires ^libgif.*$ |
|
24 |
+ |
|
25 |
+%package sample |
|
26 |
+Summary: Sample java applications. |
|
27 |
+Group: Development/Languages/Java |
|
28 |
+%description sample |
|
29 |
+It contains the Sample java applications. |
|
30 |
+Requires: %{name} = %{version} |
|
31 |
+ |
|
32 |
+%package doc |
|
33 |
+Summary: Documentation and demo applications for openjdk |
|
34 |
+Group: Development/Languages/Java |
|
35 |
+%description doc |
|
36 |
+It contains the documentation and demo applications for openjdk |
|
37 |
+Requires: %{name} = %{version}-%{release} |
|
38 |
+ |
|
39 |
+%package src |
|
40 |
+Summary: OpenJDK Java classes for developers |
|
41 |
+Group: Development/Languages/Java |
|
42 |
+%description src |
|
43 |
+This package provides the runtime library class sources. |
|
44 |
+Requires: %{name} = %{version} |
|
45 |
+ |
|
17 | 46 |
%prep -p exit |
18 | 47 |
%setup -qn OpenJDK-%{version}-x86_64-bin |
19 | 48 |
%build |
... | ... |
@@ -27,16 +56,44 @@ install -vdm644 %{buildroot}/etc/profile.d |
27 | 27 |
cat >> %{buildroot}/etc/profile.d/java-exports.sh <<- "EOF" |
28 | 28 |
export CLASSPATH=.:/usr/share/java |
29 | 29 |
export JAVA_HOME=/opt/OpenJDK-%{version}-bin |
30 |
-export PATH="$PATH:/opt/OpenJDK-1.8.0.51-bin/bin:/opt/OpenJDK-1.8.0.51-bin/jre/bin" |
|
30 |
+export PATH="$PATH:/opt/OpenJDK-%{version}-bin/bin:/opt/OpenJDK-%{version}-bin/jre/bin" |
|
31 | 31 |
EOF |
32 | 32 |
|
33 | 33 |
%clean |
34 | 34 |
rm -rf %{buildroot}/* |
35 |
+ |
|
35 | 36 |
%files |
36 | 37 |
%defattr(-,root,root) |
37 |
-/opt/OpenJDK-%{version}-bin/* |
|
38 |
+/opt/OpenJDK-%{version}-bin/ASSEMBLY_EXCEPTION |
|
39 |
+/opt/OpenJDK-%{version}-bin/LICENSE |
|
40 |
+/opt/OpenJDK-%{version}-bin/release |
|
41 |
+/opt/OpenJDK-%{version}-bin/THIRD_PARTY_README |
|
42 |
+/opt/OpenJDK-%{version}-bin/lib |
|
43 |
+/opt/OpenJDK-%{version}-bin/include/ |
|
44 |
+ |
|
45 |
+%files -n openjre |
|
46 |
+%defattr(-,root,root) |
|
47 |
+/opt/OpenJDK-%{version}-bin/jre/ |
|
48 |
+/opt/OpenJDK-%{version}-bin/bin |
|
49 |
+/opt/OpenJDK-%{version}-bin/lib/amd64/jli/ |
|
38 | 50 |
/etc/profile.d/java-exports.sh |
51 |
+ |
|
52 |
+%files sample |
|
53 |
+%defattr(-,root,root) |
|
54 |
+/opt/OpenJDK-%{version}-bin/sample/ |
|
55 |
+ |
|
56 |
+%files doc |
|
57 |
+%defattr(-,root,root) |
|
58 |
+/opt/OpenJDK-%{version}-bin/man/ |
|
59 |
+/opt/OpenJDK-%{version}-bin/demo |
|
60 |
+ |
|
61 |
+%files src |
|
62 |
+%defattr(-,root,root) |
|
63 |
+/opt/OpenJDK-%{version}-bin/src.zip |
|
64 |
+ |
|
39 | 65 |
%changelog |
66 |
+* Fri Sep 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.8.0.51-2 |
|
67 |
+- Split the openjdk into multiple sub-packages to reduce size. |
|
40 | 68 |
* Mon Aug 17 2015 Sharath George <sarahc@vmware.com> 1.8.0.51-1 |
41 | 69 |
- Moved to the next version |
42 | 70 |
* Tue Jun 30 2015 Sarah Choi <sarahc@vmware.com> 1.8.0.45-2 |
43 | 71 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,37 @@ |
0 |
+Summary: Noninteractive ssh password provider |
|
1 |
+Name: sshpass |
|
2 |
+Version: 1.05 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: GPLv2+ |
|
5 |
+URL: http://sourceforge.net/projects/sshpass/ |
|
6 |
+Source0: http://downloads.sourceforge.net/project/sshpass/sshpass/1.05/sshpass-1.05.tar.gz |
|
7 |
+%define sha1 sshpass=6dafec86dd74315913417829542f4023545c8fd7 |
|
8 |
+Group: Applications/Networking |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+%description |
|
12 |
+sshpass is a utility designed for running ssh using the mode referred to as "keyboard-interactive" password authentication, but in non-interactive mode. |
|
13 |
+%prep |
|
14 |
+%setup -q |
|
15 |
+%build |
|
16 |
+./configure --prefix=%{_prefix} |
|
17 |
+make %{?_smp_mflags} |
|
18 |
+%install |
|
19 |
+rm -rf %{buildroot} |
|
20 |
+make prefix=%{_prefix} DESTDIR=%{buildroot} install |
|
21 |
+ |
|
22 |
+%check |
|
23 |
+make -k check |& tee %{_specdir}/%{name}-check-log || %{nocheck} |
|
24 |
+ |
|
25 |
+%clean |
|
26 |
+rm -rf %{buildroot}/* |
|
27 |
+ |
|
28 |
+%files |
|
29 |
+%defattr(-,root,root) |
|
30 |
+%doc AUTHORS ChangeLog NEWS |
|
31 |
+%{_bindir} |
|
32 |
+%{_mandir}/man1 |
|
33 |
+ |
|
34 |
+%changelog |
|
35 |
+* Fri Sep 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 1.05-1 |
|
36 |
+- Initial version |
... | ... |
@@ -1,7 +1,7 @@ |
1 | 1 |
Summary: Highly reliable distributed coordination |
2 | 2 |
Name: zookeeper |
3 | 3 |
Version: 3.4.6 |
4 |
-Release: 2%{?dist} |
|
4 |
+Release: 3%{?dist} |
|
5 | 5 |
URL: http://zookeeper.apache.org/ |
6 | 6 |
License: Apache License, Version 2.0 |
7 | 7 |
Group: Applications/System |
... | ... |
@@ -9,7 +9,8 @@ Vendor: VMware, Inc. |
9 | 9 |
Distribution: Photon |
10 | 10 |
Source: http://www.carfab.com/apachesoftware/zookeeper/stable/%{name}-%{version}.tar.gz |
11 | 11 |
%define sha1 zookeeper=2a9e53f5990dfe0965834a525fbcad226bf93474 |
12 |
-Requires: shadow, openjdk |
|
12 |
+Requires: shadow |
|
13 |
+Requires: openjre |
|
13 | 14 |
Provides: zookeeper |
14 | 15 |
%description |
15 | 16 |
ZooKeeper is a centralized service for maintaining configuration information, naming, providing distributed synchronization, and providing group services. All of these kinds of services are used in some form or another by distributed applications. Each time they are implemented there is a lot of work that goes into fixing the bugs and race conditions that are inevitable. Because of the difficulty of implementing these kinds of services, applications initially usually skimp on them ,which make them brittle in the presence of change and difficult to manage. Even when done correctly, different implementations of these services lead to management complexity when the applications are deployed. |
... | ... |
@@ -46,7 +47,7 @@ rm -rf %{buildroot}/%{name}-%{version} |
46 | 46 |
|
47 | 47 |
%pre |
48 | 48 |
getent group hadoop 2>/dev/null >/dev/null || /usr/sbin/groupadd -r hadoop |
49 |
-/usr/sbin/useradd --comment "ZooKeeper" --shell /bin/bash -M -r --groups hadoop --home %{_share_dir} zookeeper 2> /dev/null || : |
|
49 |
+/usr/sbin/useradd --comment "ZooKeeper" --shell /bin/bash -M -r --groups hadoop --home %{_prefix}/share/zookeeper zookeeper |
|
50 | 50 |
|
51 | 51 |
%post |
52 | 52 |
bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
... | ... |
@@ -55,7 +56,7 @@ bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
55 | 55 |
--log-dir=%{_var}/log/zookeeper \ |
56 | 56 |
--pid-dir=%{_var}/run \ |
57 | 57 |
--var-dir=%{_var}/zookeeper |
58 |
--p /sbin/ldconfig |
|
58 |
+/sbin/ldconfig |
|
59 | 59 |
|
60 | 60 |
%preun |
61 | 61 |
bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
... | ... |
@@ -67,6 +68,8 @@ bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
67 | 67 |
--uninstall |
68 | 68 |
|
69 | 69 |
%postun -p /sbin/ldconfig |
70 |
+/usr/sbin/userdel zookeeper |
|
71 |
+ |
|
70 | 72 |
%files |
71 | 73 |
%defattr(-,root,root) |
72 | 74 |
%attr(0755,root,hadoop) %{_var}/log/zookeeper |
... | ... |
@@ -77,8 +80,9 @@ bash %{_prefix}/sbin/update-zookeeper-env.sh \ |
77 | 77 |
%{_prefix} |
78 | 78 |
|
79 | 79 |
%changelog |
80 |
- |
|
80 |
+* Wed Sep 16 2015 Harish Udaiya Kumar<hudaiyakumar@vmware.com> 3.4.6-3 |
|
81 |
+- Udating the dependency after repackaging the openjdk, fixed post scripts |
|
81 | 82 |
* Wed Aug 05 2015 Kumar Kaushik <kaushikk@vmware.com> 3.4.6-2 |
82 | 83 |
Adding ldconfig in post section. |
83 |
-* Thu Jun 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.4.6-1 |
|
84 |
+* Thu Jun 11 2015 Harish Udaiya Kumar <hudaiyakumar@vmware.com> 3.4.6-1 |
|
84 | 85 |
Initial build. First version Initial build. First version |
... | ... |
@@ -27,7 +27,7 @@ |
27 | 27 |
"nss-altfiles", "apache-maven", "subversion", "mesos", "python3", "python3-libs", "python3-devel", "python3-tools", "fakeroot-ng", "ctags", |
28 | 28 |
"libtirpc", "libtirpc-devel", "lsof", "nfs-utils", "cve-check-tool", "flannel", "rpm-build", "dkms", "openssl-perl", "xinetd", "tftp", "tftp-server", |
29 | 29 |
"audit","audit-devel","libcap-ng","libcap-ng-devel","tcp_wrappers","tcp_wrappers-devel", "apr-util-devel", "apr-util-ldap", |
30 |
- "apr-util-pgsql", "apr-util-sqlite"] |
|
30 |
+ "apr-util-pgsql", "apr-util-sqlite","openjre", "sshpass", "openjdk-src", "openjdk-sample", "openjdk-doc"] |
|
31 | 31 |
} |
32 | 32 |
|
33 | 33 |
|
... | ... |
@@ -65,6 +65,7 @@ class SerializedSpecObjects(object): |
65 | 65 |
if (allDeps.has_key(depPkg) and allDeps[depPkg] < level + 1): |
66 | 66 |
allDeps[depPkg] = level + 1 |
67 | 67 |
parent[depPkg] = inPkg |
68 |
+ self.updateLevels(allDeps, depPkg, parent, allDeps[depPkg]) |
|
68 | 69 |
|
69 | 70 |
def readSpecsAndConvertToSerializableObjects(self, specFilesPath, inputType, inputValue, displayOption): |
70 | 71 |
children = {} |