15
0
forked from pool/python-apsw

Accepting request 203218 from home:scarabeus_iv

- Version bump to 3.8.0.2-r1 to use latest sqlite queries.
- Drop the macroed commands in favor of normal ones
- Drop clean section
- Write fully what documents go where.

OBS-URL: https://build.opensuse.org/request/show/203218
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-apsw?expand=0&rev=6
This commit is contained in:
Sascha Peilicke
2013-10-14 11:55:14 +00:00
committed by Git OBS Bridge
parent 0c4fd610c1
commit 45b08fd7bb
4 changed files with 24 additions and 28 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:818bb96680829c8dedb7db5453596e4f02dd7ad6e5b58e9e3b5f00e5c74a7ea4
size 607540

3
apsw-3.8.0.2-r1.zip Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f3da7dbc1c92b9962086de90d6c6ec5ce199ffcc9f4edca9f55ee62b27db61f0
size 662335

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Mon Oct 14 11:46:39 UTC 2013 - tchvatal@suse.com
- Version bump to 3.8.0.2-r1 to use latest sqlite queries.
- Drop the macroed commands in favor of normal ones
- Drop clean section
- Write fully what documents go where.
-------------------------------------------------------------------
Wed Oct 9 17:32:14 UTC 2013 - hrvoje.senjan@gmail.com

View File

@@ -18,10 +18,10 @@
Name: python-apsw
Version: 3.7.8+r1
Version: 3.8.0.2_r1
Release: 0
%define pkg_version 3.7.8-r1
%define sqlite_version 3.7.8
%define pkg_version 3.8.0.2-r1
%define sqlite_version 3.7.16
Summary: Another Python SQLite Wrapper
License: Zlib
Group: Development/Libraries/Python
@@ -46,7 +46,6 @@ engine. In contrast to other wrappers such as pysqlite it focuses on
being a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.
%if !0%{?nodoc}
%package doc
Summary: Another Python SQLite Wrapper - Documentation
Group: Development/Libraries/Python
@@ -56,41 +55,30 @@ APSW is a Python wrapper for the SQLite embedded relational database
engine. In contrast to other wrappers such as pysqlite it focuses on
being a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.
%endif
%prep
%setup -q -n "apsw-%{pkg_version}"
%build
CFLAGS="%{optflags} -fno-strict-aliasing" \
%__python ./setup.py build
python setup.py build
%install
%__python ./setup.py \
install \
--prefix="%{_prefix}" \
--root="%{buildroot}" \
--record-rpm=files.lst
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
rm -f doc/.buildinfo
%__rm -f doc/.buildinfo
install -d "%{buildroot}%{_docdir}/%{name}"
cp -a doc/* "%{buildroot}%{_docdir}/%{name}/"
%__install -d "%{buildroot}%{_docdir}/%{name}"
%if !0%{?nodoc}
%__cp -a doc/* "%{buildroot}%{_docdir}/%{name}/"
%endif
%clean
%{?buildroot:%__rm -rf "%{buildroot}"}
%files -f files.lst
%files
%defattr(-,root,root)
%if !0%{?nodoc}
%dir %{_docdir}/%{name}
%doc doc/_sources/copyright.txt
%{python_sitearch}/apsw.so
%{python_sitearch}/apsw-%{version}-py%{py_ver}.egg-info
%exclude %{_docdir}/%{name}
%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*
%endif
%changelog