~drizzle-developers/drizzle-interface/rpm

« back to all changes in this revision

Viewing changes to rpm/drizzle-python/SPECS/python-drizzle.spec

  • Committer: wdierkes
  • Date: 2010-05-07 16:59:28 UTC
  • Revision ID: wdierkes@derks-linux-20100507165928-yjaty33kmpfg4ij4
- Removed LICENSE file (SOURCE1), submitted tracker upstream to have it
  added: https://bugs.launchpad.net/drizzle-interface/+bug/577045
- Conditionally set python_sitearch only if building on fedora <= 12
  or rhel <= 5 (newer distros set the macros)
- Fixed License to properly reflect the BSD license of the source
- Remove --single-version-externally-managed from configure

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
%{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")}
2
 
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
 
2
 
 
3
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
 
4
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
 
5
%endif
 
6
 
3
7
 
4
8
# source name will be changing from python-libdrizzle to python-drizzle in the near future
5
9
Name:           python-drizzle
6
10
Version:        0.08.2
7
 
Release:        1%{?dist}
 
11
Release:        3%{?dist}
8
12
Summary:        Python wrappers for libdrizzle 
9
 
 
10
13
Group:          Development/Languages
11
 
License:        LGPLv2+
 
14
License:        BSD 
12
15
URL:            https://launchpad.net/drizzle-interface
13
16
Source0:        http://launchpad.net/drizzle-interface/trunk/ongoing-development/+download/python-libdrizzle-%{version}.tar.gz 
14
 
Source1:        LICENSE
15
17
BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
16
18
 
17
 
Patch0:         python-drizzle-0.08.2-module_name.patch
18
 
 
19
 
BuildRequires:  libdrizzle-devel, python-devel 
20
 
Requires:       libdrizzle
 
19
# LaunchPad Bug #561003
 
20
# Bug https://bugs.launchpad.net/drizzle-interface/+bug/561003
 
21
Patch0: python-drizzle-0.08.2-module_name.patch
 
22
    
 
23
BuildRequires:  libdrizzle-devel, python2-devel 
21
24
 
22
25
%description
23
 
Python wrappers for libdrizzle
 
26
Drizzle is a transactional SQL92 compliant relational database, geared
 
27
towards a plugin based architecture. This package provides Python wrappers 
 
28
via the libdrizzle client protocol library.
24
29
 
25
30
%prep
26
31
%setup -q -n python-libdrizzle-%{version}
27
32
 
28
 
cp -a %{SOURCE1} .
29
 
 
30
33
%patch0 -p1 -b .module_name
31
34
 
32
35
 
39
42
 
40
43
%{__python} setup.py install -O1 \
41
44
    --skip-build \
42
 
    --root %{buildroot} \
43
 
    --single-version-externally-managed
 
45
    --root %{buildroot}
44
46
 
45
47
 
46
48
%clean
48
50
 
49
51
%files 
50
52
%defattr(-,root,root,-)
51
 
%doc README LICENSE 
 
53
%doc README 
52
54
%{python_sitearch}/drizzle/
53
55
%{python_sitearch}/python_drizzle-%{version}-py%{pyver}.egg-info/
54
56
 
55
57
 
56
58
%changelog
 
59
* Fri May 07 2010 BJ Dierkes <wdierkes@rackspace.com> - 0.08.2-3
 
60
- Removed LICENSE file (SOURCE1), submitted tracker upstream to have it
 
61
  added: https://bugs.launchpad.net/drizzle-interface/+bug/577045
 
62
- Conditionally set python_sitearch only if building on fedora <= 12 
 
63
  or rhel <= 5 (newer distros set the macros)
 
64
- Fixed License to properly reflect the BSD license of the source
 
65
- Remove --single-version-externally-managed from configure
 
66
 
 
67
* Sun Apr 11 2010 BJ Dierkes <wdierkes@rackspace.com> - 0.08.2-2
 
68
- Remove Requires: libdrizzle (auto detected)
 
69
 
57
70
* Fri Apr 02 2010 BJ Dierkes <wdierkes@rackspace.com> - 0.08.2-1
58
71
- Initial build