Browse code

Updates for mesos

sarah-vmw authored on 2015/07/16 09:58:57
Showing 8 changed files
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:	Apache Maven
2 2
 Name:		apache-maven
3 3
 Version:	3.3.3
4
-Release:	0
4
+Release:	1%{?dist}
5 5
 License:	Apache
6 6
 URL:		http://maven.apache.org
7 7
 Group:		Applications/System
... ...
@@ -23,8 +23,7 @@ The Maven package contains binaries for a build system
23 23
 %prep
24 24
 
25 25
 %setup -q
26
-echo "nameserver 127.0.1.1" > /etc/resolv.conf
27
-echo "search localdomain" >> /etc/resolv.conf
26
+
28 27
 %build
29 28
 MAVEN_DIST_DIR=/opt/apache-maven-3.3.3
30 29
 
... ...
@@ -40,12 +39,19 @@ ant -Dmaven.home=$MAVEN_DIST_DIR
40 40
 
41 41
 mkdir -p -m 700 %{buildroot}/opt
42 42
 
43
-cp -r /opt/apache-maven-3.3.3 %{buildroot}/opt
43
+cp -r /opt/apache-maven-3.3.3  %{buildroot}/opt
44
+
45
+install -d -m 755 %{buildroot}/etc/profile.d/
46
+
47
+echo 'export MAVEN_HOME=/opt/%{name}-%{version}' > %{buildroot}/etc/profile.d/%{name}.sh
48
+echo 'export PATH=$MAVEN_HOME/bin:$PATH' >> %{buildroot}/etc/profile.d/%{name}.sh
49
+echo 'export MAVEN_OPTS=-Xms256m' >> %{buildroot}/etc/profile.d/%{name}.sh
44 50
 
45 51
 %files
46 52
 %defattr(-,root,root)
47 53
 %{_bindir}/*
48 54
 %{_libdir}/*
55
+%{_sysconfdir}/profile.d/%{name}.sh
49 56
 %{_prefix}/LICENSE
50 57
 %{_prefix}/NOTICE
51 58
 %{_prefix}/README.txt
... ...
@@ -55,5 +61,7 @@ cp -r /opt/apache-maven-3.3.3 %{buildroot}/opt
55 55
 %{_prefix}/conf/toolchains.xml
56 56
 
57 57
 %changelog
58
+*	Thu Jul 9 2015 	Sarah Choi<sarahc@vmware.com> 3.3.3-1
59
+-	Add a script to set environment variables for MAVEN 
58 60
 *	Fri May 22 2015 Sriram Nambakam <snambakam@vmware.com> 1.9.4
59 61
 -	Initial build.	First version
... ...
@@ -9,6 +9,8 @@ Vendor:     VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:    http://archive.apache.org/dist/apr/%{name}-%{version}.tar.gz
11 11
 %define sha1 apr-util=72cc3ac693b52fb831063d5c0de18723bc8e0095
12
+%define     apuver    1
13
+
12 14
 BuildRequires:   apr
13 15
 BuildRequires:   openldap
14 16
 BuildRequires:   openssl
... ...
@@ -25,7 +27,7 @@ The Apache Portable Runtime Utility Library.
25 25
 %setup -q
26 26
 %build
27 27
 %configure --with-apr=%{_prefix} \
28
-        --includedir=%{_includedir}/apr-%{version} \
28
+        --includedir=%{_includedir}/apr-%{apuver} \
29 29
         --with-ldap --without-gdbm \
30 30
         --with-sqlite3 --with-pgsql \
31 31
         --without-sqlite2 \
... ...
@@ -54,9 +56,11 @@ rm -rf $RPM_BUILD_ROOT
54 54
 %{_includedir}/*
55 55
 
56 56
 %changelog
57
+*   Wed Jul 15 2015 Sarah Choi <sarahc@vmware.com> 1.5.4-4
58
+-   Use apuver(=1) instead of version for mesos 
57 59
 *   Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> 1.5.2-3
58 60
 -   Exclude /usr/lib/debug
59 61
 *   Wed Jul 01 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-2
60 62
 -   Fix tags and paths.
61
-*   Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-1
63
+*   Wed May 20 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.4-1
62 64
 -   Initial build. First version
... ...
@@ -1,7 +1,7 @@
1 1
 Summary:    The Apache Portable Runtime
2 2
 Name:       apr
3 3
 Version:    1.5.2
4
-Release:    3%{?dist}
4
+Release:    4%{?dist}
5 5
 License:    Apache License 2.0
6 6
 URL:        https://apr.apache.org/
7 7
 Group:      System Environment/Libraries
... ...
@@ -9,6 +9,7 @@ Vendor:     VMware, Inc.
9 9
 Distribution: Photon
10 10
 Source0:    http://archive.apache.org/dist/apr/%{name}-%{version}.tar.gz
11 11
 %define sha1 apr=2ef2ac9a8de7f97f15ef32cddf1ed7325163d84c
12
+%define	    aprver  1
12 13
 %description
13 14
 The Apache Portable Runtime.
14 15
 
... ...
@@ -16,8 +17,8 @@ The Apache Portable Runtime.
16 16
 %setup -q
17 17
 %build
18 18
 ./configure --prefix=/usr \
19
-        --includedir=%{_includedir}/apr-%{version} \
20
-        --with-installbuilddir=%{_libdir}/apr/build-%{version} \
19
+        --includedir=%{_includedir}/apr-%{aprver} \
20
+        --with-installbuilddir=%{_libdir}/apr/build-%{aprver} \
21 21
         --with-devrandom=/dev/urandom \
22 22
         CC=gcc CXX=g++
23 23
 
... ...
@@ -36,6 +37,8 @@ make DESTDIR=%{buildroot} install
36 36
 %{_includedir}/*
37 37
 
38 38
 %changelog
39
+*   Wed Jul 15 2015 Sarah Choi <sarahc@vmware.com> 1.5.2-4
40
+-   Use aprver(=1) instead of version for mesos
39 41
 *   Mon Jul 13 2015 Alexey Makhalov <amakhalov@vmware.com> 1.5.2-3
40 42
 -   Exclude /usr/lib/debug
41 43
 *   Wed Jul 01 2015 Touseef Liaqat <tliaqat@vmware.com> 1.5.2-2
42 44
new file mode 100644
... ...
@@ -0,0 +1,55 @@
0
+Summary:	Mesos
1
+Name:		mesos
2
+Version:	0.22.1
3
+Release:	1%{?dist}
4
+License:	Apache
5
+URL:		http://mesos.apache.org
6
+Group:		Applications/System
7
+Vendor:		VMware, Inc.
8
+Distribution: 	Photon
9
+Source0:	http://apache.mirrors.lucidnetworks.net/mesos/%{name}-%{version}.tar.gz
10
+Requires:	openjdk >= 1.8.0.45
11
+Requires:	expat
12
+BuildRequires:	openjdk >= 1.8.0.45
13
+BuildRequires:	curl
14
+BuildRequires:	apache-maven >= 3.3.3
15
+BuildRequires:	apr >= 1.5.2
16
+BuildRequires:	apr-util >= 1.5.4
17
+BuildRequires:	subversion >= 1.8.13
18
+BuildRequires:	cyrus-sasl >= 2.1.26
19
+BuildRequires:	python2 >= 2.6
20
+BuildRequires:	python2-libs
21
+BuildRequires:	python2-devel
22
+
23
+%description
24
+The Mesos package installs MesosContainerizer.
25
+
26
+%prep
27
+
28
+%setup -q
29
+%build
30
+./configure	--prefix=%{_prefix}  	
31
+
32
+make %{?_smp_mflags}
33
+
34
+%check
35
+make check
36
+
37
+%install
38
+make DESTDIR=%{buildroot} install
39
+
40
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
41
+
42
+%files
43
+%defattr(-,root,root)
44
+%{_bindir}/*
45
+%{_libdir}/*
46
+%{_includedir}/*/*
47
+%{_sbindir}/*
48
+%{_prefix}/etc/mesos/*
49
+%{_libexecdir}/mesos/*
50
+%{_datadir}/mesos/*
51
+
52
+%changelog
53
+*	Fri Jun 26 2015 Sarah Choi <sarahc@vmware.com> 0.22.1-1
54
+-	Initial build.	First version
... ...
@@ -2,7 +2,7 @@
2 2
 Summary:	OpenJDK 
3 3
 Name:		openjdk
4 4
 Version:	1.8.0.45
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
... ...
@@ -27,7 +27,7 @@ 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.45-bin/bin"
30
+export PATH="$PATH:/opt/OpenJDK-1.8.0.45-bin/bin:/opt/OpenJDK-1.8.0.45-bin/jre/bin"
31 31
 EOF
32 32
 
33 33
 %clean
... ...
@@ -37,5 +37,7 @@ rm -rf %{buildroot}/*
37 37
 /opt/OpenJDK-%{version}-bin/*
38 38
 /etc/profile.d/java-exports.sh
39 39
 %changelog
40
+*	Tue Jun 30 2015 Sarah Choi <sarahc@vmware.com> 1.8.0.45-2
41
+-	Add JRE path 
40 42
 *	Mon May 18 2015 Sharath George <sharathg@vmware.com> 1.8.0.45-1
41 43
 -	Initial build.	First version
42 44
new file mode 100644
... ...
@@ -0,0 +1,55 @@
0
+Summary:    	The Apache Subversion control system
1
+Name:       	subversion
2
+Version:    	1.8.13
3
+Release:    	1%{?dist}
4
+License:    	Apache License 2.0
5
+URL:        	http://subversion.apache.org/
6
+Group:      	Utilities/System
7
+Vendor:     	VMware, Inc.
8
+Distribution: 	Photon
9
+Source0:        http://archive.apache.org/dist/subversion/%{name}-%{version}.tar.gz
10
+Requires:   	apr
11
+Requires:   	apr-util
12
+BuildRequires: 	apr
13
+BuildRequires: 	apr-util
14
+BuildRequires: 	sqlite-autoconf
15
+BuildRequires: 	libtool
16
+BuildRequires: 	expat
17
+
18
+%description
19
+The Apache version control system.
20
+
21
+%prep
22
+%setup -q
23
+%build
24
+./configure --prefix=%{_prefix}                        	\
25
+	    --disable-static				\
26
+	    --with-apache-libexecdir 
27
+
28
+make %{?_smp_mflags}
29
+
30
+%install
31
+make -j1 DESTDIR=%{buildroot} install 
32
+
33
+%files
34
+%defattr(-,root,root)
35
+%{_bindir}/*
36
+%{_libdir}/*
37
+%{_includedir}/*
38
+%{_mandir}/*/*
39
+%lang(de) %{_datadir}/locale/de/LC_MESSAGES/subversion.mo
40
+%lang(es) %{_datadir}/locale/es/LC_MESSAGES/subversion.mo
41
+%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/subversion.mo
42
+%lang(it) %{_datadir}/locale/it/LC_MESSAGES/subversion.mo
43
+%lang(ja) %{_datadir}/locale/ja/LC_MESSAGES/subversion.mo
44
+%lang(ko) %{_datadir}/locale/ko/LC_MESSAGES/subversion.mo
45
+%lang(nb) %{_datadir}/locale/nb/LC_MESSAGES/subversion.mo
46
+%lang(pl) %{_datadir}/locale/pl/LC_MESSAGES/subversion.mo
47
+%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/subversion.mo
48
+%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/subversion.mo
49
+%lang(zh_CN) %{_datadir}/locale/zh_CN/LC_MESSAGES/subversion.mo
50
+%lang(zh_TW) %{_datadir}/locale/zh_TW/LC_MESSAGES/subversion.mo
51
+
52
+%changelog
53
+*   Fri Jun 26 2015 Sarah Choi <sarahc@vmware.com> 1.8.13-1
54
+-   Initial build. First version
... ...
@@ -24,7 +24,7 @@
24 24
                 "rpm-devel","pycurl","urlgrabber","yum-metadata-parser","yum", "rocket", "strace", "cracklib-python",
25 25
                 "haveged", "haveged-devel", "vim-extra",
26 26
                 "postgresql", "openjdk", "apr", "apr-util", "httpd", "openvswitch", "eventlog", "syslog-ng", "zookeeper", "fuse", "fleet",
27
-                "nss-altfiles"]
27
+                "nss-altfiles", "apache-maven", "subversion", "mesos"]
28 28
 }
29 29
 
30 30
 
... ...
@@ -159,6 +159,7 @@ make-4.0.tar.bz2 - c819622dc84e2290c351646b8a0ec4df0df12bb6
159 159
 man-db-2.6.6.tar.xz - ba27924ef024527ad562017d956ffd3375bccc8d
160 160
 man-pages-3.59.tar.xz - 76eae3fb069a6df2195081408e7ea2784722385b
161 161
 mercurial-3.1.2.tar.gz - ae7e16454cee505da895c2497f09711f35287459
162
+mesos-0.22.1.tar.gz - 599c09d83ee69804cd12936c8c3df57f45f30b4d
162 163
 mkinitcpio-18.tar.gz - 0e124990118d170f6852efe46d889b5adae6dfd6
163 164
 Module-Install-1.14.tar.gz - 255bff1bdf9e7b0f67eff15d0b4d52662c0f67d7
164 165
 Module-ScanDeps-1.18.tar.gz - f12767be803f28e685be29e6bc9430361179de09
... ...
@@ -212,6 +213,7 @@ shadow_4.1.5.1.orig.tar.gz - 6e4de75de58405d21b0377b926ae770afccd95bc
212 212
 six-1.9.0.tar.gz - d168e6d01f0900875c6ecebc97da72d0fda31129
213 213
 sqlite-autoconf-3080301.tar.gz - a9b0a3d66fb5c2ae51ad2d8a512ca827adc7d59c
214 214
 strace-4.10.tar.xz - 5c3ec4c5a9eeb440d7ec70514923c2e7e7f9ab6c
215
+subversion-1.8.13.tar.gz - 437cf662b7ed27d2254aa7ca334fdd74b49262ef
215 216
 sudo-1.8.11p1.tar.gz - 3c442d59c0e112d4a43ffba434580e93fe1a766f
216 217
 swig-3.0.5.tar.gz - 271813b317e4836853d2249fc8ce2df34c2a062a
217 218
 syslog-ng_3.6.2.tar.gz - 36eeaf920383ee8cb1c17d945205b7562f9fbbb2