base-specs/pysqlite.spec
author gman
Thu, 30 Sep 2010 21:37:28 +0000
branchgnome-2-30
changeset 20130 c7dfc176dcbd
parent 18066 1847ff0f1078
child 20107 c9bb1ac4aebe
permissions -rw-r--r--
2010-10-01 Glynn Foster <[email protected]> * specs/SUNWos-welcome.spec: Bump to 1.0.6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     1
#
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     2
# spec file for package pysqlite
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     3
#
18066
1847ff0f1078 2010-06-02 Brian Cameron <[email protected]>
yippi
parents: 17865
diff changeset
     4
# Copyright 2010 Sun Microsystems, Inc.
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     5
# This file and all modifications and additions to the pristine
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     6
# package are under the same license as the package itself.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     7
#
16907
c6ddec838f33 change owner to jerrytan
jerrytan
parents: 16434
diff changeset
     8
%define owner jerrytan 
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     9
#
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    10
16431
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16280
diff changeset
    11
%define OSR 8319:2.4
d7743d81b302 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16280
diff changeset
    12
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    13
%{?!pythonver:%define pythonver 2.4}
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    14
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    15
Name:                    pysqlite
16280
462de9e707f7 2009-08-14 Darren Kenny <[email protected]>
dkenny
parents: 15076
diff changeset
    16
License:                 zlib/libpng
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    17
Summary:                 Python DB-API 2.0 interface for the SQLite
17865
b7ff02e93f66 2010-04-19 Christian Kelly <[email protected]>
chrisk
parents: 17063
diff changeset
    18
Vendor:			 initd.org
18066
1847ff0f1078 2010-06-02 Brian Cameron <[email protected]>
yippi
parents: 17865
diff changeset
    19
%define                  major_version 2.6
1847ff0f1078 2010-06-02 Brian Cameron <[email protected]>
yippi
parents: 17865
diff changeset
    20
Version:                 %{major_version}.0
16908
cdb7d7ccca05 bump to 2.5.5
jerrytan
parents: 16907
diff changeset
    21
Source:                  http://pysqlite.googlecode.com/files/pysqlite-%{version}.tar.gz
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    22
SUNW_BaseDir:            %{_basedir}
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    23
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    24
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    25
%include default-depend.inc
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    26
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    27
%prep
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    28
%setup -q -n pysqlite-%version
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    29
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    30
%build
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    31
python%{pythonver} setup.py build \
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    32
    --build-base=$RPM_BUILD_ROOT%{_prefix}
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    33
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    34
%install
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    35
rm -rf $RPM_BUILD_ROOT
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    36
python%{pythonver} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    37
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    38
# move to vendor-packages
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    39
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    40
mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    41
   $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    42
rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    43
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    44
rm -rf $RPM_BUILD_ROOT%{_prefix}/pysqlite2-doc
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    45
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    46
%clean
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    47
rm -rf $RPM_BUILD_ROOT
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    48
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    49
%files
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    50
%defattr (-, root, bin)
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    51
%dir %attr(0755, root, bin) %{_prefix}/lib/python%{pythonver}
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    52
%dir %attr(0755, root, bin) %{_prefix}/lib/python%{pythonver}/vendor-packages
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    53
%dir %attr(0755, root, bin) %{_prefix}/lib/python%{pythonver}/vendor-packages/pysqlite2
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    54
%{_prefix}/lib/python2.4/vendor-packages/pysqlite2/*
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    55
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    56
%changelog
18066
1847ff0f1078 2010-06-02 Brian Cameron <[email protected]>
yippi
parents: 17865
diff changeset
    57
* Wed Jun 02 2010 - [email protected]
1847ff0f1078 2010-06-02 Brian Cameron <[email protected]>
yippi
parents: 17865
diff changeset
    58
- Bump to 2.6.0.
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    59
* Thu Feb 12 2009 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    60
- Split from SUNWpysqlite.spec file.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    61
* Tue Nov 18 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    62
- Fix installation directory problem.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    63
* Tue Sep 16 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    64
- Update copyright
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    65
* Tue Mar 11 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    66
- Change SUNWsqlite3-devel reference to SUNWsqlite3.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    67
* Tue Feb 12 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    68
- Change SFEsqlite require to SUNWsqlite.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    69
* Tue Feb 12 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    70
- initial version