13999
|
1 |
#
|
|
2 |
# spec file for package SUNWpysqlite
|
|
3 |
#
|
|
4 |
# Copyright 2008 Sun Microsystems, Inc.
|
|
5 |
# This file and all modifications and additions to the pristine
|
|
6 |
# package are under the same license as the package itself.
|
|
7 |
#
|
|
8 |
# Owner: dkenny
|
|
9 |
#
|
|
10 |
|
|
11 |
%include Solaris.inc
|
|
12 |
|
|
13 |
%define pythonver 2.4
|
|
14 |
|
|
15 |
Name: SUNWpysqlite
|
|
16 |
Summary: Python DB-API 2.0 interface for the SQLite
|
|
17 |
%define
|
|
18 |
%define major_version 2.4
|
|
19 |
Version: %{major_version}.1
|
|
20 |
Source: http://initd.org/pub/software/pysqlite/releases/%{major_version}/%{version}/pysqlite-%{version}.tar.gz
|
|
21 |
SUNW_BaseDir: %{_basedir}
|
|
22 |
SUNW_Copyright: %{name}.copyright
|
|
23 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
24 |
Requires: SUNWPython
|
|
25 |
Requires: SUNWsqlite3
|
|
26 |
BuildRequires: SUNWPython-devel
|
|
27 |
BuildRequires: SUNWsqlite3
|
14173
|
28 |
BuildRequires: SUNWpython-setuptools
|
13999
|
29 |
|
|
30 |
%include default-depend.inc
|
|
31 |
|
|
32 |
%prep
|
|
33 |
%setup -q -n pysqlite-%version
|
|
34 |
|
|
35 |
%build
|
|
36 |
python setup.py build \
|
|
37 |
--build-base=$RPM_BUILD_ROOT%{_prefix}
|
|
38 |
|
|
39 |
%install
|
|
40 |
rm -rf $RPM_BUILD_ROOT
|
|
41 |
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
|
|
42 |
|
|
43 |
# move to vendor-packages
|
|
44 |
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
|
|
45 |
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
|
|
46 |
$RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
|
|
47 |
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
|
|
48 |
|
|
49 |
rm -rf $RPM_BUILD_ROOT%{_prefix}/pysqlite2-doc
|
|
50 |
|
|
51 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
52 |
|
|
53 |
%clean
|
|
54 |
rm -rf $RPM_BUILD_ROOT
|
|
55 |
|
|
56 |
%files
|
|
57 |
%defattr (-, root, bin)
|
|
58 |
%dir %attr(0755, root, bin) %{_prefix}/lib/python2.4
|
|
59 |
%dir %attr(0755, root, bin) %{_prefix}/lib/python2.4/vendor-packages
|
|
60 |
%dir %attr(0755, root, bin) %{_prefix}/lib/python2.4/vendor-packages/pysqlite2
|
|
61 |
%{_prefix}/lib/python2.4/vendor-packages/pysqlite2/*
|
|
62 |
%doc LICENSE PKG-INFO
|
|
63 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
64 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
65 |
|
|
66 |
%changelog
|
|
67 |
* Tue Nov 18 2008 - [email protected]
|
|
68 |
- Fix installation directory problem.
|
|
69 |
* Tue Sep 16 2008 - [email protected]
|
|
70 |
- Update copyright
|
|
71 |
* Tue Mar 11 2008 - [email protected]
|
|
72 |
- Change SUNWsqlite3-devel reference to SUNWsqlite3.
|
|
73 |
* Tue Feb 12 2008 - [email protected]
|
|
74 |
- Change SFEsqlite require to SUNWsqlite.
|
|
75 |
* Tue Feb 12 2008 - [email protected]
|
|
76 |
- initial version
|