Group :: Desenvolvimento/Python
RPM: python-module-apsw
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
%define _name apsw
%define rel r1
%define sqlite_ver 3.6.13
Name: python-module-%_name
Version: 3.6.11
Release: alt1.%rel
Summary: Another Python SQLite Wrapper
License: zlib/libpng License
Group: Development/Python
Packager: Alexey Shabalin <shaba at altlinux.ru>
Url: http://code.google.com/p/apsw/
Source: http://apsw.googlecode.com/files/%_name-%version-%rel.zip
Source1: http://www.sqlite.org/sqlite-amalgamation-%sqlite_ver.tar.gz
# to build sqlite3
BuildPreReq: libreadline-devel libncurses-devel glibc-devel-static
BuildPreReq: unzip rpm-build-python
BuildRequires: python-devel python-module-setuptools
%description
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.
%prep
%setup -q -n %_name-%version-%rel -a 1
mv sqlite-%sqlite_ver sqlite3
%build
pushd sqlite3
%configure
%make_build
ln -s .libs/*.a .
popd
%python_build
%install
%python_install
%files
%python_sitelibdir/%_name-*.egg-info
%python_sitelibdir/%_name.so
%doc doc
%changelog
…
Todas as alterações você pod ver aqui
%define rel r1
%define sqlite_ver 3.6.13
Name: python-module-%_name
Version: 3.6.11
Release: alt1.%rel
Summary: Another Python SQLite Wrapper
License: zlib/libpng License
Group: Development/Python
Packager: Alexey Shabalin <shaba at altlinux.ru>
Url: http://code.google.com/p/apsw/
Source: http://apsw.googlecode.com/files/%_name-%version-%rel.zip
Source1: http://www.sqlite.org/sqlite-amalgamation-%sqlite_ver.tar.gz
# to build sqlite3
BuildPreReq: libreadline-devel libncurses-devel glibc-devel-static
BuildPreReq: unzip rpm-build-python
BuildRequires: python-devel python-module-setuptools
%description
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.
%prep
%setup -q -n %_name-%version-%rel -a 1
mv sqlite-%sqlite_ver sqlite3
%build
pushd sqlite3
%configure
%make_build
ln -s .libs/*.a .
popd
%python_build
%install
%python_install
%files
%python_sitelibdir/%_name-*.egg-info
%python_sitelibdir/%_name.so
%doc doc
%changelog
…
Todas as alterações você pod ver aqui