日本OpenSolaris Users Group有志による、レポジトリサーバ作成のためのspecファイル群です。
Revision | 8f860426e099bbd2172d610b7e3408fc5dfa5d9c (tree) |
---|---|
Time | 2012-05-10 07:17:51 |
Author | Osamu Tabata <cantimerny.g@gmai...> |
Commiter | Osamu Tabata |
spec_SFEpython27-32 merge
@@ -11,3 +11,4 @@ | ||
11 | 11 | d0891dd6df916504f2a769870794e9b62e53d80b spec_SFEpython27-setuptools_m120430-base |
12 | 12 | 24f3366868fb8286f2083d82972e45fd19f89311 spec_SFEpython27_m120501-base |
13 | 13 | c68ee2cc6916c4383c42faefba239e525d97bf0b spec_SFEpython27_m120508-base |
14 | +11ae0a64fad933f36cebfda8c0c203e5ddf5cf29 spec_SFEpython27-32-base |
@@ -0,0 +1,117 @@ | ||
1 | +# | |
2 | +# spec file for package SFEpython27-32 | |
3 | +# | |
4 | + | |
5 | +%define _name Python | |
6 | +%define version 2.7.2 | |
7 | +%define unmangled_version 2.7.2 | |
8 | +%define release 1 | |
9 | +%define pyver 2.7 | |
10 | + | |
11 | +%include Solaris.inc | |
12 | +%include packagenamemacros.inc | |
13 | + | |
14 | +Name: SFEpython27-32 | |
15 | +IPS_Package_Name: runtime/python-27-32 | |
16 | +Summary: The Python interpreter 32bit, libraries and utilities | |
17 | +Group: Development/Python | |
18 | +Version: %{version} | |
19 | +Release: %{release} | |
20 | +License: PSF license | |
21 | +Source: http://www.python.org/ftp/python/%{unmangled_version}/%{_name}-%{unmangled_version}.tar.bz2 | |
22 | +Url: http://www.python.org/download/releases/2.7.2 | |
23 | +Group: Development/Libraries | |
24 | +%include default-depend.inc | |
25 | + | |
26 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot | |
27 | +SUNW_Basedir: %{_basedir} | |
28 | +SUNW_Copyright: Python27.copyright | |
29 | + | |
30 | +# OpenSolaris IPS Manifest Fields | |
31 | +Meta(info.maintainer): A Hettinger <ahettinger@prominic.net> | |
32 | +Meta(info.upstream): Guido van Rossum and the Python community <python-dev@python.org> | |
33 | +Meta(info.repository_url): http://svn.python.org/projects/python/branches/release32-maint | |
34 | +Meta(info.classification): org.opensolaris.category.2008:Development/Python | |
35 | + | |
36 | + | |
37 | +%description | |
38 | +Python is an interpreted, interactive, object-oriented programming | |
39 | +language. It is often compared to Tcl, Perl, Scheme or Java. | |
40 | + | |
41 | +Python combines remarkable power with very clear syntax. It has | |
42 | +modules, classes, exceptions, very high level dynamic data types, and | |
43 | +dynamic typing. There are interfaces to many system calls and | |
44 | +libraries, as well as to various windowing systems (X11, Motif, Tk, | |
45 | +Mac, MFC). New built-in modules are easily written in C or C++. Python | |
46 | +is also usable as an extension language for applications that need a | |
47 | +programmable interface. | |
48 | + | |
49 | +The Python implementation is portable: it runs on many brands of UNIX, | |
50 | +on Windows, DOS, OS/2, Mac, Amiga... If your favorite system isn't | |
51 | +listed here, it may still be supported, if there's a C compiler for | |
52 | +it. Ask around on comp.lang.python -- or just try compiling Python | |
53 | +yourself. | |
54 | + | |
55 | +%prep | |
56 | +%setup -c -n %{_name}-%{unmangled_version} | |
57 | + | |
58 | +%build | |
59 | +cd %{_name}-%{unmangled_version} | |
60 | + | |
61 | +CPUS=$(psrinfo | awk '$2=="on-line"{cpus++}END{if(cpus==0){print 1}else{print cpus }}') | |
62 | + | |
63 | +env CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} \ | |
64 | + --mandir=%{_mandir} \ | |
65 | + --with-fpectl \ | |
66 | + --enable-ipv6 \ | |
67 | + --with-threads \ | |
68 | + --enable-unicode=ucs4 \ | |
69 | + --with-dbmliborder=gdbm \ | |
70 | + --enable-loadable-sqlite-extensions \ | |
71 | + --with-system-expat \ | |
72 | + --with-system-ffi \ | |
73 | + --without-gcc \ | |
74 | + --enable-shared | |
75 | +make -j$CPUS | |
76 | + | |
77 | +%install | |
78 | +cd %{_name}-%{unmangled_version} | |
79 | +make install DESTDIR=$RPM_BUILD_ROOT | |
80 | +echo "import site; site.addsitedir('/usr/lib/python2.7/vendor-packages')" > $RPM_BUILD_ROOT%{_libdir}/python2.7/site-packages/vendor-packages.pth | |
81 | +mv $RPM_BUILD_ROOT%{_bindir}/python $RPM_BUILD_ROOT%{_bindir}/python2.7 | |
82 | +mv $RPM_BUILD_ROOT%{_bindir}/idle $RPM_BUILD_ROOT%{_bindir}/idle2.7 | |
83 | +mv $RPM_BUILD_ROOT%{_bindir}/pydoc $RPM_BUILD_ROOT%{_bindir}/pydoc2.7 | |
84 | +rm -rf $RPM_BUILD_ROOT%{_includedir} | |
85 | +rm $RPM_BUILD_ROOT%{_bindir}/2to3 | |
86 | +rm $RPM_BUILD_ROOT%{_bindir}/smtpd.py | |
87 | +rm $RPM_BUILD_ROOT%{_bindir}/python-config | |
88 | +rm $RPM_BUILD_ROOT%{_libdir}/pkgconfig/python.pc | |
89 | +rm -rf $RPM_BUILD_ROOT%{_datadir} | |
90 | +find $RPM_BUILD_ROOT%{_libdir}/python%{pyver} -name '*.pyo' -exec rm -f {} \; | |
91 | + | |
92 | +%clean | |
93 | +rm -rf $RPM_BUILD_ROOT | |
94 | + | |
95 | +%files | |
96 | +%defattr(-,root,bin) | |
97 | +%dir %attr (0755, root, bin) %{_bindir} | |
98 | +%{_bindir}/python2.7 | |
99 | +%{_bindir}/idle2.7 | |
100 | +%{_bindir}/pydoc2.7 | |
101 | +%{_bindir}/python2.7-config | |
102 | +%dir %attr (0755, root, bin) %{_libdir} | |
103 | +%{_libdir}/libpython2.7.so | |
104 | +%{_libdir}/libpython2.7.so.1.0 | |
105 | +%{_libdir}/python2.7/* | |
106 | +%{_libdir}/pkgconfig/python-2.7.pc | |
107 | +%dir %attr (0755, root, other) %{_libdir}/pkgconfig | |
108 | + | |
109 | +%changelog | |
110 | +* Sun May 9 2012 - Osamu Tabata<cantimerny.g@gmail.com> | |
111 | +- Support only 32bit | |
112 | +* Mon Apr 30 2012 - Osamu Tabata<cantimerny.g@gmail.com> | |
113 | +- Fixed a file conflict of python2.6 | |
114 | +* Sun Apr 3 2012 - Osamu Tabata<cantimerny.g@gmail.com> | |
115 | +- vender-packages directory support | |
116 | +* Sun Apr 1 2012 - Osamu Tabata<cantimerny.g@gmail.com> | |
117 | +- Support for OpenIndiana |