base-specs/pysqlite.spec
author chrisk
Mon, 31 Aug 2009 16:23:04 +0000
changeset 16434 f21f22550fe9
parent 16431 d7743d81b302
child 16907 c6ddec838f33
permissions -rw-r--r--
2009-08-31 Christian Kelly <[email protected]> * base-specs/*.spec, *.spec: Change owner field to be parsable with spectool.
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
#
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
     4
# Copyright 2009 Sun Microsystems, Inc.
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
#
16434
f21f22550fe9 2009-08-31 Christian Kelly <[email protected]>
chrisk
parents: 16431
diff changeset
     8
%define owner dkenny
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
16280
462de9e707f7 2009-08-14 Darren Kenny <[email protected]>
dkenny
parents: 15076
diff changeset
    18
Vendor:			         Sun Microsystems, Inc.
15076
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    19
%define                  major_version 2.4
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    20
Version:                 %{major_version}.1
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    21
Source:                  http://initd.org/pub/software/pysqlite/releases/%{major_version}/%{version}/pysqlite-%{version}.tar.gz
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
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    57
* Thu Feb 12 2009 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    58
- Split from SUNWpysqlite.spec file.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    59
* Tue Nov 18 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    60
- Fix installation directory problem.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    61
* Tue Sep 16 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    62
- Update copyright
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    63
* Tue Mar 11 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    64
- Change SUNWsqlite3-devel reference to SUNWsqlite3.
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    65
* Tue Feb 12 2008 - [email protected]
14d1578ba9c0 2009-02-12 Brian Cameron <[email protected]>
yippi
parents:
diff changeset
    66
- Change SFEsqlite require to SUNWsqlite.
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
- initial version