Change-Id: I25c0714b63642e0d960682f147642a66befdce3c
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/2107
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Anish Swaminathan <anishs@vmware.com>
... | ... |
@@ -1,30 +1,36 @@ |
1 | 1 |
%define _use_internal_dependency_generator 0 |
2 |
-Summary: Contains the GNU compiler collection |
|
3 |
-Name: gcc |
|
4 |
-Version: 5.3.0 |
|
5 |
-Release: 5%{?dist} |
|
6 |
-License: GPLv2+ |
|
7 |
-URL: http://gcc.gnu.org |
|
8 |
-Group: Development/Tools |
|
9 |
-Vendor: VMware, Inc. |
|
10 |
-Distribution: Photon |
|
11 |
-Source0: http://ftp.gnu.org/gnu/gcc/%{name}-%{version}/%{name}-%{version}.tar.bz2 |
|
2 |
+Summary: Contains the GNU compiler collection |
|
3 |
+Name: gcc |
|
4 |
+Version: 5.3.0 |
|
5 |
+Release: 6%{?dist} |
|
6 |
+License: GPLv2+ |
|
7 |
+URL: http://gcc.gnu.org |
|
8 |
+Group: Development/Tools |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Source0: http://ftp.gnu.org/gnu/gcc/%{name}-%{version}/%{name}-%{version}.tar.bz2 |
|
12 | 12 |
%define sha1 gcc=0612270b103941da08376df4d0ef4e5662a2e9eb |
13 |
-Patch0: PLUGIN_TYPE_CAST.patch |
|
14 |
-Requires: libstdc++-devel = %{version}-%{release} |
|
15 |
-Requires: libgcc-devel = %{version}-%{release} |
|
16 |
-Requires: libgomp-devel = %{version}-%{release} |
|
17 |
-Requires: libgcc-atomic = %{version}-%{release} |
|
18 |
-Requires: gmp |
|
13 |
+Patch0: PLUGIN_TYPE_CAST.patch |
|
14 |
+Requires: libstdc++-devel = %{version}-%{release} |
|
15 |
+Requires: libgcc-devel = %{version}-%{release} |
|
16 |
+Requires: libgomp-devel = %{version}-%{release} |
|
17 |
+Requires: libgcc-atomic = %{version}-%{release} |
|
18 |
+Requires: gmp |
|
19 | 19 |
%description |
20 | 20 |
The GCC package contains the GNU compiler collection, |
21 | 21 |
which includes the C and C++ compilers. |
22 | 22 |
|
23 |
-%package -n libgcc |
|
24 |
-Summary: GNU C Library |
|
25 |
-Group: System Environment/Libraries |
|
23 |
+%package -n gfortran |
|
24 |
+Summary: GNU Fortran compiler. |
|
25 |
+Group: Development/Tools |
|
26 |
+%description -n gfortran |
|
27 |
+The gfortran package contains GNU Fortran compiler. |
|
28 |
+ |
|
29 |
+%package -n libgcc |
|
30 |
+Summary: GNU C Library |
|
31 |
+Group: System Environment/Libraries |
|
26 | 32 |
%description -n libgcc |
27 |
-The libgcc package contains GCC shared libraries for gcc . |
|
33 |
+The libgcc package contains GCC shared libraries for gcc. |
|
28 | 34 |
|
29 | 35 |
%package -n libgcc-atomic |
30 | 36 |
Summary: GNU C Library for atomic counter updates |
... | ... |
@@ -33,36 +39,36 @@ Requires: libgcc = %{version}-%{release} |
33 | 33 |
%description -n libgcc-atomic |
34 | 34 |
The libgcc package contains GCC shared libraries for atomic counter updates. |
35 | 35 |
|
36 |
-%package -n libgcc-devel |
|
37 |
-Summary: GNU C Library |
|
38 |
-Group: Development/Libraries |
|
36 |
+%package -n libgcc-devel |
|
37 |
+Summary: GNU C Library |
|
38 |
+Group: Development/Libraries |
|
39 | 39 |
Requires: libgcc = %{version}-%{release} |
40 | 40 |
%description -n libgcc-devel |
41 | 41 |
The libgcc package contains GCC shared libraries for gcc . |
42 | 42 |
This package contains development headers and static library for libgcc. |
43 | 43 |
|
44 |
-%package -n libstdc++ |
|
45 |
-Summary: GNU C Library |
|
46 |
-Group: System Environment/Libraries |
|
47 |
-Requires: libgcc = %{version}-%{release} |
|
44 |
+%package -n libstdc++ |
|
45 |
+Summary: GNU C Library |
|
46 |
+Group: System Environment/Libraries |
|
47 |
+Requires: libgcc = %{version}-%{release} |
|
48 | 48 |
%description -n libstdc++ |
49 | 49 |
This package contains the GCC Standard C++ Library v3, an ongoing project to implement the ISO/IEC 14882:1998 Standard C++ library. |
50 | 50 |
|
51 |
-%package -n libstdc++-devel |
|
52 |
-Summary: GNU C Library |
|
53 |
-Group: Development/Libraries |
|
51 |
+%package -n libstdc++-devel |
|
52 |
+Summary: GNU C Library |
|
53 |
+Group: Development/Libraries |
|
54 | 54 |
Requires: libstdc++ = %{version}-%{release} |
55 | 55 |
%description -n libstdc++-devel |
56 | 56 |
This is the GNU implementation of the standard C++ libraries. |
57 | 57 |
This package includes the headers files and libraries needed for C++ development. |
58 | 58 |
|
59 |
-%package -n libgomp |
|
60 |
-Summary: GNU C Library |
|
61 |
-Group: System Environment/Libraries |
|
59 |
+%package -n libgomp |
|
60 |
+Summary: GNU C Library |
|
61 |
+Group: System Environment/Libraries |
|
62 | 62 |
%description -n libgomp |
63 | 63 |
An implementation of OpenMP for the C, C++, and Fortran 95 compilers in the GNU Compiler Collection. |
64 | 64 |
|
65 |
-%package -n libgomp-devel |
|
65 |
+%package -n libgomp-devel |
|
66 | 66 |
Summary: Development headers and static library for libgomp |
67 | 67 |
Group: Development/Libraries |
68 | 68 |
Requires: libgomp = %{version}-%{release} |
... | ... |
@@ -81,18 +87,18 @@ install -vdm 755 ../gcc-build |
81 | 81 |
cd ../gcc-build |
82 | 82 |
SED=sed \ |
83 | 83 |
../%{name}-%{version}/configure \ |
84 |
- --prefix=%{_prefix} \ |
|
85 |
- --enable-shared \ |
|
86 |
- --enable-threads=posix \ |
|
87 |
- --enable-__cxa_atexit \ |
|
88 |
- --enable-clocale=gnu \ |
|
89 |
- --enable-languages=c,c++ \ |
|
90 |
- --disable-multilib \ |
|
91 |
- --disable-bootstrap \ |
|
92 |
- --enable-linker-build-id \ |
|
93 |
- --enable-plugin \ |
|
94 |
- --with-system-zlib |
|
95 |
-# --disable-silent-rules |
|
84 |
+ --prefix=%{_prefix} \ |
|
85 |
+ --enable-shared \ |
|
86 |
+ --enable-threads=posix \ |
|
87 |
+ --enable-__cxa_atexit \ |
|
88 |
+ --enable-clocale=gnu \ |
|
89 |
+ --enable-languages=c,c++,fortran\ |
|
90 |
+ --disable-multilib \ |
|
91 |
+ --disable-bootstrap \ |
|
92 |
+ --enable-linker-build-id \ |
|
93 |
+ --enable-plugin \ |
|
94 |
+ --with-system-zlib |
|
95 |
+# --disable-silent-rules |
|
96 | 96 |
make |
97 | 97 |
%install |
98 | 98 |
pushd ../gcc-build |
... | ... |
@@ -102,9 +108,9 @@ ln -sv %{_bindir}/cpp %{buildroot}/%{_lib} |
102 | 102 |
ln -sv gcc %{buildroot}%{_bindir}/cc |
103 | 103 |
install -vdm 755 %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib} |
104 | 104 |
%ifarch x86_64 |
105 |
- mv -v %{buildroot}%{_lib64dir}/*gdb.py %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib} |
|
105 |
+ mv -v %{buildroot}%{_lib64dir}/*gdb.py %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib} |
|
106 | 106 |
%else |
107 |
- mv -v %{buildroot}%{_libdir}/*gdb.py %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib} |
|
107 |
+ mv -v %{buildroot}%{_libdir}/*gdb.py %{buildroot}%{_datarootdir}/gdb/auto-load%{_lib} |
|
108 | 108 |
%endif |
109 | 109 |
rm -rf %{buildroot}%{_infodir} |
110 | 110 |
popd |
... | ... |
@@ -115,23 +121,28 @@ cd ../gcc-build |
115 | 115 |
ulimit -s 32768 |
116 | 116 |
make %{?_smp_mflags} check |
117 | 117 |
|
118 |
-%post -p /sbin/ldconfig |
|
119 |
-%postun -p /sbin/ldconfig |
|
118 |
+%post -p /sbin/ldconfig |
|
119 |
+%postun -p /sbin/ldconfig |
|
120 | 120 |
|
121 | 121 |
%files -f %{name}.lang |
122 | 122 |
%defattr(-,root,root) |
123 | 123 |
%{_lib}/cpp |
124 |
-# Executables |
|
124 |
+# Executables |
|
125 |
+%exclude %{_bindir}/*gfortran |
|
126 |
+%exclude %{_libexecdir}/gcc/x86_64-unknown-linux-gnu/5.3.0/f951 |
|
125 | 127 |
%{_bindir}/* |
126 |
-# Libraries |
|
128 |
+# Libraries |
|
127 | 129 |
%ifarch x86_64 |
128 | 130 |
%{_lib64dir}/* |
129 | 131 |
%endif |
130 | 132 |
%{_libdir}/gcc/* |
131 |
-# Library executables |
|
133 |
+# Library executables |
|
132 | 134 |
%{_libexecdir}/gcc/* |
133 |
-# Man pages |
|
134 |
-%{_mandir}/man1/*.gz |
|
135 |
+# Man pages |
|
136 |
+%{_mandir}/man1/gcov.1.gz |
|
137 |
+%{_mandir}/man1/gcc.1.gz |
|
138 |
+%{_mandir}/man1/g++.1.gz |
|
139 |
+%{_mandir}/man1/cpp.1.gz |
|
135 | 140 |
%{_mandir}/man7/*.gz |
136 | 141 |
%{_datadir}/gdb/* |
137 | 142 |
|
... | ... |
@@ -145,6 +156,12 @@ make %{?_smp_mflags} check |
145 | 145 |
%exclude %{_libdir}/libgomp* |
146 | 146 |
%endif |
147 | 147 |
|
148 |
+%files -n gfortran |
|
149 |
+%defattr(-,root,root) |
|
150 |
+%{_bindir}/*gfortran |
|
151 |
+%{_mandir}/man1/gfortran.1.gz |
|
152 |
+%{_libexecdir}/gcc/x86_64-unknown-linux-gnu/5.3.0/f951 |
|
153 |
+ |
|
148 | 154 |
%files -n libgcc |
149 | 155 |
%defattr(-,root,root) |
150 | 156 |
%ifarch x86_64 |
... | ... |
@@ -215,6 +232,8 @@ make %{?_smp_mflags} check |
215 | 215 |
%endif |
216 | 216 |
|
217 | 217 |
%changelog |
218 |
+* Fri Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 5.3.0-6 |
|
219 |
+- Enabled fortran. |
|
218 | 220 |
* Wed Feb 22 2017 Alexey Makhalov <amakhalov@vmware.com> 5.3.0-5 |
219 | 221 |
- Added new plugin entry point: PLUGIN_TYPE_CAST (.patch) |
220 | 222 |
* Thu Sep 8 2016 Alexey Makhalov <amakhalov@vmware.com> 5.3.0-4 |
221 | 223 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,71 @@ |
0 |
+Summary: linear algebra package |
|
1 |
+Name: lapack |
|
2 |
+Version: 3.7.0 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+URL: http://www.netlib.org/lapack/ |
|
5 |
+License: BSD |
|
6 |
+Group: Development/Libraries |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source0: http://www.netlib.org/lapack/lapack-%{version}.tgz |
|
10 |
+%define sha1 lapack=27dbd06bedc76619150f8e28de6412f7df0c649a |
|
11 |
+ |
|
12 |
+BuildRequires: cmake |
|
13 |
+BuildRequires: gfortran |
|
14 |
+ |
|
15 |
+%description |
|
16 |
+LAPACK is written in Fortran 90 and provides routines for solving systems of simultaneous linear equations, least-squares solutions of linear systems of equations, eigenvalue problems, and singular value problems. The associated matrix factorizations (LU, Cholesky, QR, SVD, Schur, generalized Schur) are also provided, as are related computations such as reordering of the Schur factorizations and estimating condition numbers. Dense and banded matrices are handled, but not general sparse matrices. In all areas, similar functionality is provided for real and complex matrices, in both single and double precision. |
|
17 |
+ |
|
18 |
+%package devel |
|
19 |
+Summary: Development files for lapack |
|
20 |
+Group: Development/Libraries |
|
21 |
+Requires: lapack = %{version}-%{release} |
|
22 |
+ |
|
23 |
+%description devel |
|
24 |
+The lapack-devel package contains libraries and header files for |
|
25 |
+developing applications that use lapack. |
|
26 |
+ |
|
27 |
+%prep |
|
28 |
+%setup |
|
29 |
+ |
|
30 |
+%build |
|
31 |
+mkdir -p build |
|
32 |
+cd build |
|
33 |
+cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \ |
|
34 |
+ -DCMAKE_INSTALL_LIBDIR=%{_libdir} \ |
|
35 |
+ -DCMAKE_BUILD_TYPE=Release \ |
|
36 |
+ -DBUILD_SHARED_LIBS=ON \ |
|
37 |
+ -DLAPACKE=ON \ |
|
38 |
+ .. |
|
39 |
+ |
|
40 |
+make %{?_smp_mflags} |
|
41 |
+ |
|
42 |
+%install |
|
43 |
+[ %{buildroot} != "/"] && rm -rf %{buildroot}/* |
|
44 |
+cd build |
|
45 |
+make DESTDIR=%{buildroot} install |
|
46 |
+mkdir %{buildroot}/%{_includedir}/lapacke |
|
47 |
+mv %{buildroot}/%{_includedir}/*.h %{buildroot}/%{_includedir}/lapacke/. |
|
48 |
+ |
|
49 |
+%post -p /sbin/ldconfig |
|
50 |
+%postun -p /sbin/ldconfig |
|
51 |
+ |
|
52 |
+%files |
|
53 |
+%defattr(-,root,root) |
|
54 |
+%{_libdir}/libblas.so.* |
|
55 |
+%{_libdir}/liblapack.so.* |
|
56 |
+%{_libdir}/libtmglib.so |
|
57 |
+ |
|
58 |
+%files devel |
|
59 |
+%defattr(-,root,root) |
|
60 |
+%{_libdir}/libblas.so |
|
61 |
+%{_libdir}/liblapack.so |
|
62 |
+%{_libdir}/liblapacke.so |
|
63 |
+%{_includedir}/* |
|
64 |
+%{_libdir}/pkgconfig |
|
65 |
+ |
|
66 |
+%exclude %{_libdir}/cmake/* |
|
67 |
+ |
|
68 |
+%changelog |
|
69 |
+* Fri Mar 03 2017 Xiaolin Li <xiaolinl@vmware.com> 3.7.0-1 |
|
70 |
+- Initial packaging for Photon |
0 | 71 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,53 @@ |
0 |
+Summary: C library for manipulating tar files |
|
1 |
+Name: libtar |
|
2 |
+Version: 1.2.20 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+URL: https://github.com/tklauser/libtar/archive/v1.2.20.tar.gz |
|
5 |
+License: MIT |
|
6 |
+Group: System Environment/Libraries |
|
7 |
+Vendor: VMware, Inc. |
|
8 |
+Distribution: Photon |
|
9 |
+Source0: libtar-%{version}.tar.gz |
|
10 |
+%define sha1 libtar=b3ec4058fa83448d6040ce9f9acf85eeec4530b1 |
|
11 |
+ |
|
12 |
+%description |
|
13 |
+libtar is a library for manipulating tar files from within C programs. |
|
14 |
+ |
|
15 |
+%package devel |
|
16 |
+Summary: Development files for libtar |
|
17 |
+Group: Development/Libraries |
|
18 |
+Requires: libtar = %{version}-%{release} |
|
19 |
+ |
|
20 |
+%description devel |
|
21 |
+The litar-devel package contains libraries and header files for |
|
22 |
+developing applications that use libtar. |
|
23 |
+ |
|
24 |
+%prep |
|
25 |
+%setup |
|
26 |
+autoreconf -iv |
|
27 |
+ |
|
28 |
+%build |
|
29 |
+%configure --disable-static |
|
30 |
+make %{?_smp_mflags} |
|
31 |
+ |
|
32 |
+%install |
|
33 |
+make DESTDIR=%{buildroot} install |
|
34 |
+ |
|
35 |
+%post -p /sbin/ldconfig |
|
36 |
+%postun -p /sbin/ldconfig |
|
37 |
+ |
|
38 |
+%files |
|
39 |
+%defattr(-,root,root) |
|
40 |
+%{_bindir}/libtar |
|
41 |
+%{_libdir}/libtar.so.* |
|
42 |
+ |
|
43 |
+%files devel |
|
44 |
+%defattr(-,root,root) |
|
45 |
+%{_includedir}/* |
|
46 |
+%{_mandir}/man3/* |
|
47 |
+%{_libdir}/libtar.so |
|
48 |
+%{_libdir}/libtar.la |
|
49 |
+ |
|
50 |
+%changelog |
|
51 |
+* Fri Mar 03 2017 Xiaolin Li <xiaolinl@vmware.com> 1.2.20-1 |
|
52 |
+- Initial packaging for Photon |
0 | 53 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,60 @@ |
0 |
+Summary: Google's data interchange format |
|
1 |
+Name: protobuf |
|
2 |
+Version: 2.6.1 |
|
3 |
+Release: 1%{?dist} |
|
4 |
+License: BSD-3-Clause |
|
5 |
+Group: Development/Libraries |
|
6 |
+Vendor: VMware, Inc. |
|
7 |
+Distribution: Photon |
|
8 |
+URL: https://github.com/google/protobuf/ |
|
9 |
+Source0: protobuf-%{version}.tar.gz |
|
10 |
+%define sha1 protobuf=a8f11eced7352edfefa814996ebf086ab3cfbaa0 |
|
11 |
+ |
|
12 |
+%description |
|
13 |
+Protocol Buffers (a.k.a., protobuf) are Google's language-neutral, platform-neutral, extensible mechanism for serializing structured data. You can find protobuf's documentation on the Google Developers site. |
|
14 |
+ |
|
15 |
+%package devel |
|
16 |
+Summary: Development files for protobuf |
|
17 |
+Group: Development/Libraries |
|
18 |
+Requires: protobuf = %{version}-%{release} |
|
19 |
+ |
|
20 |
+%description devel |
|
21 |
+The protobuf-devel package contains libraries and header files for |
|
22 |
+developing applications that use protobuf. |
|
23 |
+ |
|
24 |
+%prep |
|
25 |
+%setup |
|
26 |
+autoreconf -iv |
|
27 |
+ |
|
28 |
+%build |
|
29 |
+%configure --disable-static |
|
30 |
+make %{?_smp_mflags} |
|
31 |
+ |
|
32 |
+%install |
|
33 |
+make DESTDIR=%{buildroot} install |
|
34 |
+ |
|
35 |
+%post -p /sbin/ldconfig |
|
36 |
+%postun -p /sbin/ldconfig |
|
37 |
+ |
|
38 |
+%files |
|
39 |
+%defattr(-,root,root) |
|
40 |
+%{_bindir}/protoc |
|
41 |
+%{_libdir}/libprotobuf-lite.so.* |
|
42 |
+%{_libdir}/libprotobuf.so.* |
|
43 |
+%{_libdir}/libprotoc.so.* |
|
44 |
+ |
|
45 |
+ |
|
46 |
+%files devel |
|
47 |
+%defattr(-,root,root) |
|
48 |
+%{_includedir}/* |
|
49 |
+%{_libdir}/pkgconfig/* |
|
50 |
+%{_libdir}/libprotobuf-lite.la |
|
51 |
+%{_libdir}/libprotobuf-lite.so |
|
52 |
+%{_libdir}/libprotobuf.la |
|
53 |
+%{_libdir}/libprotobuf.so |
|
54 |
+%{_libdir}/libprotoc.la |
|
55 |
+%{_libdir}/libprotoc.so |
|
56 |
+ |
|
57 |
+%changelog |
|
58 |
+* Fri Mar 03 2017 Xiaolin Li <xiaolinl@vmware.com> 2.6.1-1 |
|
59 |
+- Initial packaging for Photon |
0 | 60 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,46 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+ |
|
2 |
+Summary: ANother Tool for Language Recognition |
|
3 |
+Name: python-antlrpythonruntime |
|
4 |
+Version: 3.1.2 |
|
5 |
+Release: 1%{?dist} |
|
6 |
+License: BSD |
|
7 |
+Group: Development/Languages/Python |
|
8 |
+Vendor: VMware, Inc. |
|
9 |
+Distribution: Photon |
|
10 |
+Url: http://www.antlr3.org/download/Python/antlr_python_runtime-%{version}.tar.gz |
|
11 |
+Source0: antlr_python_runtime-%{version}.tar.gz |
|
12 |
+%define sha1 antlr_python_runtime=c57d4a03f80d157e9c0c1c8cd3038171900a364c |
|
13 |
+ |
|
14 |
+BuildRequires: python2 |
|
15 |
+BuildRequires: python2-libs |
|
16 |
+BuildRequires: python-setuptools |
|
17 |
+BuildRequires: python2-devel |
|
18 |
+BuildRequires: lapack-devel |
|
19 |
+ |
|
20 |
+Requires: python2 |
|
21 |
+Requires: python2-libs |
|
22 |
+ |
|
23 |
+%description |
|
24 |
+ANother Tool for Language Recognition, is a language tool that provides a framework for constructing recognizers, interpreters, compilers, and translators from grammatical descriptions containing actions in a variety of target languages. |
|
25 |
+ |
|
26 |
+%prep |
|
27 |
+%setup -q -n antlr_python_runtime-%{version} |
|
28 |
+ |
|
29 |
+%build |
|
30 |
+python2 setup.py build |
|
31 |
+ |
|
32 |
+%install |
|
33 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
34 |
+ |
|
35 |
+%check |
|
36 |
+easy_install py |
|
37 |
+python2 setup.py test |
|
38 |
+ |
|
39 |
+%files |
|
40 |
+%defattr(-,root,root,-) |
|
41 |
+%{python2_sitelib}/* |
|
42 |
+ |
|
43 |
+%changelog |
|
44 |
+* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 3.1.2-1 |
|
45 |
+- Initial packaging for Photon |
0 | 46 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,72 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+%{!?python3_version: %define python_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
|
3 |
+ |
|
4 |
+Summary: Coroutine-based network library |
|
5 |
+Name: python-gevent |
|
6 |
+Version: 1.2.1 |
|
7 |
+Release: 1%{?dist} |
|
8 |
+License: MIT |
|
9 |
+Group: Development/Languages/Python |
|
10 |
+Vendor: VMware, Inc. |
|
11 |
+Distribution: Photon |
|
12 |
+Url: https://pypi.python.org/pypi/gevent |
|
13 |
+Source0: gevent-%{version}.tar.gz |
|
14 |
+%define sha1 gevent=30bb949c572a637341db4fe52e575d44cef937b3 |
|
15 |
+ |
|
16 |
+BuildRequires: python2 |
|
17 |
+BuildRequires: python2-libs |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+BuildRequires: python2-devel |
|
20 |
+ |
|
21 |
+Requires: python2 |
|
22 |
+Requires: python2-libs |
|
23 |
+ |
|
24 |
+%description |
|
25 |
+gevent is a coroutine-based Python networking library. |
|
26 |
+Features include: |
|
27 |
+ Fast event loop based on libev. |
|
28 |
+ Lightweight execution units based on greenlet. |
|
29 |
+ Familiar API that re-uses concepts from the Python standard library. |
|
30 |
+ Cooperative sockets with SSL support. |
|
31 |
+ DNS queries performed through c-ares or a threadpool. |
|
32 |
+ Ability to use standard library and 3rd party modules written for standard blocking sockets |
|
33 |
+ |
|
34 |
+%package -n python3-gevent |
|
35 |
+Summary: python-gevent |
|
36 |
+BuildRequires: python3 |
|
37 |
+BuildRequires: python3-devel |
|
38 |
+BuildRequires: python3-libs |
|
39 |
+Requires: python3 |
|
40 |
+Requires: python3-libs |
|
41 |
+ |
|
42 |
+%description -n python3-gevent |
|
43 |
+Python 3 version. |
|
44 |
+ |
|
45 |
+%prep |
|
46 |
+%setup -q -n gevent-%{version} |
|
47 |
+ |
|
48 |
+%build |
|
49 |
+python2 setup.py build |
|
50 |
+python3 setup.py build |
|
51 |
+ |
|
52 |
+%install |
|
53 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
54 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
55 |
+ |
|
56 |
+%check |
|
57 |
+easy_install py |
|
58 |
+python2 setup.py test |
|
59 |
+python3 setup.py test |
|
60 |
+ |
|
61 |
+%files |
|
62 |
+%defattr(-,root,root,-) |
|
63 |
+%{python2_sitelib}/* |
|
64 |
+ |
|
65 |
+%files -n python3-gevent |
|
66 |
+%defattr(-,root,root,-) |
|
67 |
+%{python3_sitelib}/* |
|
68 |
+ |
|
69 |
+%changelog |
|
70 |
+* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.2.1-1 |
|
71 |
+- Initial packaging for Photon |
0 | 72 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,67 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+ |
|
3 |
+Summary: Lightweight in-process concurrent programming |
|
4 |
+Name: python-greenlet |
|
5 |
+Version: 0.4.12 |
|
6 |
+Release: 1%{?dist} |
|
7 |
+License: MIT |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Url: https://pypi.python.org/pypi/greenlet |
|
12 |
+Source0: greenlet-%{version}.tar.gz |
|
13 |
+%define sha1 greenlet=ac7f0341cd2395e0bdef70749c4e1dc89038ba99 |
|
14 |
+ |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python-setuptools |
|
18 |
+BuildRequires: python2-devel |
|
19 |
+ |
|
20 |
+Requires: python2 |
|
21 |
+Requires: python2-libs |
|
22 |
+ |
|
23 |
+%description |
|
24 |
+The greenlet package is a spin-off of Stackless, a version of CPython that supports micro-threads called “tasklets”. Tasklets run pseudo-concurrently (typically in a single or a few OS-level threads) and are synchronized with data exchanges on “channels”. |
|
25 |
+ |
|
26 |
+A “greenlet”, on the other hand, is a still more primitive notion of micro-thread with no implicit scheduling; coroutines, in other words. This is useful when you want to control exactly when your code runs. You can build custom scheduled micro-threads on top of greenlet; however, it seems that greenlets are useful on their own as a way to make advanced control flow structures. For example, we can recreate generators; the difference with Python’s own generators is that our generators can call nested functions and the nested functions can yield values too. Additionally, you don’t need a “yield” keyword. See the example in tests/test_generator.py. |
|
27 |
+ |
|
28 |
+%package -n python3-greenlet |
|
29 |
+Summary: python-greenlet |
|
30 |
+BuildRequires: python3 |
|
31 |
+BuildRequires: python3-devel |
|
32 |
+BuildRequires: python3-libs |
|
33 |
+Requires: python3 |
|
34 |
+Requires: python3-libs |
|
35 |
+ |
|
36 |
+%description -n python3-greenlet |
|
37 |
+Python 3 version. |
|
38 |
+ |
|
39 |
+%prep |
|
40 |
+%setup -q -n greenlet-%{version} |
|
41 |
+ |
|
42 |
+%build |
|
43 |
+python2 setup.py build |
|
44 |
+python3 setup.py build |
|
45 |
+ |
|
46 |
+%install |
|
47 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
48 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
49 |
+ |
|
50 |
+%check |
|
51 |
+python2 setup.py test |
|
52 |
+python3 setup.py test |
|
53 |
+ |
|
54 |
+%files |
|
55 |
+%defattr(-,root,root,-) |
|
56 |
+%{python2_sitelib}/* |
|
57 |
+/usr/include/python2.7/greenlet/greenlet.h |
|
58 |
+ |
|
59 |
+%files -n python3-greenlet |
|
60 |
+%defattr(-,root,root,-) |
|
61 |
+%{python3_sitelib}/* |
|
62 |
+/usr/include/python3.5m/greenlet/greenlet.h |
|
63 |
+ |
|
64 |
+%changelog |
|
65 |
+* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 0.4.12-1 |
|
66 |
+- Initial packaging for Photon |
... | ... |
@@ -1,9 +1,10 @@ |
1 | 1 |
%{!?python_sitelib: %define python_sitelib %(python -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
2 | 2 |
%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
3 |
+%{!?python3_version: %define python_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
|
3 | 4 |
|
4 | 5 |
Name: python-mako |
5 | 6 |
Version: 1.0.6 |
6 |
-Release: 1%{?dist} |
|
7 |
+Release: 2%{?dist} |
|
7 | 8 |
Summary: Python templating language |
8 | 9 |
License: MIT |
9 | 10 |
Group: Development/Languages/Python |
... | ... |
@@ -23,24 +24,45 @@ BuildArch: noarch |
23 | 23 |
%description |
24 | 24 |
A super-fast templating language that borrows the best ideas from the existing templating languages. Mako is a template library written in Python. It provides a familiar, non-XML syntax which compiles into Python modules for maximum performance. Mako’s syntax and API borrows from the best ideas of many others, including Django templates, Cheetah, Myghty, and Genshi. |
25 | 25 |
|
26 |
+%package -n python3-mako |
|
27 |
+Summary: python-mako |
|
28 |
+BuildRequires: python3 |
|
29 |
+BuildRequires: python3-devel |
|
30 |
+BuildRequires: python3-libs |
|
31 |
+Requires: python3 |
|
32 |
+Requires: python3-libs |
|
33 |
+ |
|
34 |
+%description -n python3-mako |
|
35 |
+Python 3 version. |
|
26 | 36 |
%prep |
27 | 37 |
%setup -n Mako-%{version} |
28 | 38 |
|
29 | 39 |
%build |
30 | 40 |
python setup.py build |
41 |
+python3 setup.py build |
|
31 | 42 |
|
32 | 43 |
%install |
44 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
45 |
+mv %{buildroot}/%{_bindir}/mako-render %{buildroot}/%{_bindir}/mako-render-%{python3_version} |
|
33 | 46 |
python setup.py install --prefix=%{_prefix} --root=%{buildroot} |
34 | 47 |
|
35 | 48 |
%check |
36 | 49 |
easy_install py |
37 | 50 |
%{__python} test_mako.py |
51 |
+python3 test_mako.py |
|
38 | 52 |
|
39 | 53 |
%files |
40 | 54 |
%defattr(-,root,root,-) |
41 |
-/usr/bin/mako-render |
|
55 |
+%{_bindir}/mako-render |
|
42 | 56 |
%{python_sitelib}/* |
43 | 57 |
|
58 |
+%files -n python3-mako |
|
59 |
+%defattr(-,root,root,-) |
|
60 |
+%{python3_sitelib}/* |
|
61 |
+%{_bindir}/mako-render-%{python3_version} |
|
62 |
+ |
|
44 | 63 |
%changelog |
64 |
+* Fri Mar 03 2017 Xiaolin Li <xiaolinl@vmware.com> 1.0.6-2 |
|
65 |
+- Added python3 package. |
|
45 | 66 |
* Fri Feb 03 2017 Vinay Kulkarni <kulkarniv@vmware.com> 1.0.6-1 |
46 | 67 |
- Initial version of python-mako package for Photon. |
47 | 68 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,64 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+%{!?python3_version: %define python_version %(python3 -c "import sys; sys.stdout.write(sys.version[:3])")} |
|
3 |
+ |
|
4 |
+Summary: A XML/HTML/XHTML Markup safe string for Python. |
|
5 |
+Name: python-markupsafe |
|
6 |
+Version: 0.23 |
|
7 |
+Release: 1%{?dist} |
|
8 |
+License: BSD |
|
9 |
+Group: Development/Languages/Python |
|
10 |
+Vendor: VMware, Inc. |
|
11 |
+Distribution: Photon |
|
12 |
+Url: https://pypi.python.org/pypi/MarkupSafe |
|
13 |
+Source0: MarkupSafe-%{version}.tar.gz |
|
14 |
+%define sha1 MarkupSafe=cd5c22acf6dd69046d6cb6a3920d84ea66bdf62a |
|
15 |
+ |
|
16 |
+BuildRequires: python2 |
|
17 |
+BuildRequires: python2-libs |
|
18 |
+BuildRequires: python-setuptools |
|
19 |
+ |
|
20 |
+Requires: python2 |
|
21 |
+Requires: python2-libs |
|
22 |
+ |
|
23 |
+%description |
|
24 |
+MarkupSafe implements a XML/HTML/XHTML Markup safe string for Python. |
|
25 |
+ |
|
26 |
+%package -n python3-markupsafe |
|
27 |
+Summary: python-markupsafe |
|
28 |
+BuildRequires: python3 |
|
29 |
+BuildRequires: python3-devel |
|
30 |
+BuildRequires: python3-libs |
|
31 |
+Requires: python3 |
|
32 |
+Requires: python3-libs |
|
33 |
+ |
|
34 |
+%description -n python3-markupsafe |
|
35 |
+Python 3 version. |
|
36 |
+ |
|
37 |
+%prep |
|
38 |
+%setup -q -n MarkupSafe-%{version} |
|
39 |
+ |
|
40 |
+%build |
|
41 |
+python2 setup.py build |
|
42 |
+python3 setup.py build |
|
43 |
+ |
|
44 |
+%install |
|
45 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
46 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
47 |
+ |
|
48 |
+%check |
|
49 |
+easy_install py |
|
50 |
+python2 setup.py test |
|
51 |
+python3 setup.py test |
|
52 |
+ |
|
53 |
+%files |
|
54 |
+%defattr(-,root,root,-) |
|
55 |
+%{python2_sitelib}/* |
|
56 |
+ |
|
57 |
+%files -n python3-markupsafe |
|
58 |
+%defattr(-,root,root,-) |
|
59 |
+%{python3_sitelib}/* |
|
60 |
+ |
|
61 |
+%changelog |
|
62 |
+* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 0.23-1 |
|
63 |
+- Initial packaging for Photon |
0 | 64 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,67 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+ |
|
3 |
+Summary: Array processing for numbers, strings, records, and objects |
|
4 |
+Name: python-numpy |
|
5 |
+Version: 1.8.2 |
|
6 |
+Release: 1%{?dist} |
|
7 |
+License: BSD |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Url: https://pypi.python.org/pypi/numpy |
|
12 |
+Source0: numpy-%{version}.tar.gz |
|
13 |
+%define sha1 numpy=9f7b889465263be527f615e4adae11446c2e7806 |
|
14 |
+ |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python-setuptools |
|
18 |
+BuildRequires: python2-devel |
|
19 |
+BuildRequires: lapack-devel |
|
20 |
+ |
|
21 |
+Requires: python2 |
|
22 |
+Requires: python2-libs |
|
23 |
+ |
|
24 |
+%description |
|
25 |
+NumPy is a general-purpose array-processing package designed to efficiently manipulate large multi-dimensional arrays of arbitrary records without sacrificing too much speed for small multi-dimensional arrays. NumPy is built on the Numeric code base and adds features introduced by numarray as well as an extended C-API and the ability to create arrays of arbitrary type which also makes NumPy suitable for interfacing with general-purpose data-base applications. |
|
26 |
+ |
|
27 |
+%package -n python3-numpy |
|
28 |
+Summary: python-numpy |
|
29 |
+BuildRequires: python3 |
|
30 |
+BuildRequires: python3-devel |
|
31 |
+BuildRequires: python3-libs |
|
32 |
+Requires: python3 |
|
33 |
+Requires: python3-libs |
|
34 |
+ |
|
35 |
+%description -n python3-numpy |
|
36 |
+Python 3 version. |
|
37 |
+ |
|
38 |
+%prep |
|
39 |
+%setup -q -n numpy-%{version} |
|
40 |
+ |
|
41 |
+%build |
|
42 |
+python2 setup.py build |
|
43 |
+python3 setup.py build |
|
44 |
+ |
|
45 |
+%install |
|
46 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
47 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
48 |
+ |
|
49 |
+%check |
|
50 |
+easy_install py |
|
51 |
+python2 setup.py test |
|
52 |
+python3 setup.py test |
|
53 |
+ |
|
54 |
+%files |
|
55 |
+%defattr(-,root,root,-) |
|
56 |
+%{python2_sitelib}/* |
|
57 |
+%{_bindir}/f2py2 |
|
58 |
+ |
|
59 |
+%files -n python3-numpy |
|
60 |
+%defattr(-,root,root,-) |
|
61 |
+%{python3_sitelib}/* |
|
62 |
+%{_bindir}/f2py3 |
|
63 |
+ |
|
64 |
+%changelog |
|
65 |
+* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.8.2-1 |
|
66 |
+- Initial packaging for Photon |
0 | 67 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,63 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+ |
|
3 |
+Summary: Simple, fast, extensible JSON encoder/decoder for Python. |
|
4 |
+Name: python-simplejson |
|
5 |
+Version: 3.10.0 |
|
6 |
+Release: 1%{?dist} |
|
7 |
+License: MIT |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Url: https://pypi.python.org/pypi/simplejson |
|
12 |
+Source0: simplejson-%{version}.tar.gz |
|
13 |
+%define sha1 simplejson=dffc85c6851430578acf138c2a1193bc89a3eb0f |
|
14 |
+ |
|
15 |
+BuildRequires: python2 |
|
16 |
+BuildRequires: python2-libs |
|
17 |
+BuildRequires: python-setuptools |
|
18 |
+ |
|
19 |
+Requires: python2 |
|
20 |
+Requires: python2-libs |
|
21 |
+ |
|
22 |
+%description |
|
23 |
+simplejson is a simple, fast, complete, correct and extensible JSON <http://json.org> encoder and decoder for Python 2.5+ and Python 3.3+. It is pure Python code with no dependencies, but includes an optional C extension for a serious speed boost. |
|
24 |
+ |
|
25 |
+%package -n python3-simplejson |
|
26 |
+Summary: python-simplejson |
|
27 |
+BuildRequires: python3 |
|
28 |
+BuildRequires: python3-devel |
|
29 |
+BuildRequires: python3-libs |
|
30 |
+Requires: python3 |
|
31 |
+Requires: python3-libs |
|
32 |
+ |
|
33 |
+%description -n python3-simplejson |
|
34 |
+Python 3 version. |
|
35 |
+ |
|
36 |
+%prep |
|
37 |
+%setup -q -n simplejson-%{version} |
|
38 |
+ |
|
39 |
+%build |
|
40 |
+python setup.py build |
|
41 |
+python3 setup.py build |
|
42 |
+ |
|
43 |
+%install |
|
44 |
+python setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
45 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
46 |
+ |
|
47 |
+%check |
|
48 |
+easy_install py |
|
49 |
+python setup.py test |
|
50 |
+python3 setup.py test |
|
51 |
+ |
|
52 |
+%files |
|
53 |
+%defattr(-,root,root,-) |
|
54 |
+%{python2_sitelib}/* |
|
55 |
+ |
|
56 |
+%files -n python3-simplejson |
|
57 |
+%defattr(-,root,root,-) |
|
58 |
+%{python3_sitelib}/* |
|
59 |
+ |
|
60 |
+%changelog |
|
61 |
+* Wed Mar 01 2017 Xiaolin Li <xiaolinl@vmware.com> 3.10.0-1 |
|
62 |
+- Initial packaging for Photon |
0 | 63 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,68 @@ |
0 |
+%{!?python2_sitelib: %define python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
1 |
+%{!?python3_sitelib: %define python3_sitelib %(python3 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")} |
|
2 |
+ |
|
3 |
+Summary: WebOb provides objects for HTTP requests and responses.. |
|
4 |
+Name: python-webob |
|
5 |
+Version: 1.7.1 |
|
6 |
+Release: 1%{?dist} |
|
7 |
+License: MIT |
|
8 |
+Group: Development/Languages/Python |
|
9 |
+Vendor: VMware, Inc. |
|
10 |
+Distribution: Photon |
|
11 |
+Url: https://pypi.python.org/pypi/WebOb |
|
12 |
+Source0: WebOb-%{version}.tar.gz |
|
13 |
+%define sha1 WebOb=4aa2b23c530a1217de1d51fdddde9ef17a829d7d |
|
14 |
+ |
|
15 |
+BuildArch: noarch |
|
16 |
+ |
|
17 |
+BuildRequires: python2 |
|
18 |
+BuildRequires: python2-libs |
|
19 |
+BuildRequires: python-setuptools |
|
20 |
+ |
|
21 |
+Requires: python2 |
|
22 |
+Requires: python2-libs |
|
23 |
+ |
|
24 |
+%description |
|
25 |
+WebOb provides objects for HTTP requests and responses. Specifically it does this by wrapping the WSGI request environment and response status/headers/app_iter(body). |
|
26 |
+ |
|
27 |
+The request and response objects provide many conveniences for parsing HTTP request and forming HTTP responses. Both objects are read/write: as a result, WebOb is also a nice way to create HTTP requests and parse HTTP responses. |
|
28 |
+ |
|
29 |
+%package -n python3-webob |
|
30 |
+Summary: python-webob |
|
31 |
+BuildRequires: python3 |
|
32 |
+BuildRequires: python3-devel |
|
33 |
+BuildRequires: python3-libs |
|
34 |
+Requires: python3 |
|
35 |
+Requires: python3-libs |
|
36 |
+ |
|
37 |
+%description -n python3-webob |
|
38 |
+Python 3 version. |
|
39 |
+ |
|
40 |
+%prep |
|
41 |
+%setup -q -n WebOb-%{version} |
|
42 |
+%{__rm} -f tests/performance_test.py |
|
43 |
+ |
|
44 |
+%build |
|
45 |
+python2 setup.py build |
|
46 |
+python3 setup.py build |
|
47 |
+ |
|
48 |
+%install |
|
49 |
+python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
50 |
+python2 setup.py install --prefix=%{_prefix} --root=%{buildroot} |
|
51 |
+ |
|
52 |
+%check |
|
53 |
+easy_install py |
|
54 |
+python2 setup.py test |
|
55 |
+python3 setup.py test |
|
56 |
+ |
|
57 |
+%files |
|
58 |
+%defattr(-,root,root,-) |
|
59 |
+%{python2_sitelib}/* |
|
60 |
+ |
|
61 |
+%files -n python3-webob |
|
62 |
+%defattr(-,root,root,-) |
|
63 |
+%{python3_sitelib}/* |
|
64 |
+ |
|
65 |
+%changelog |
|
66 |
+* Thu Mar 02 2017 Xiaolin Li <xiaolinl@vmware.com> 1.7.1-1 |
|
67 |
+- Initial packaging for Photon |