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

@@ -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