Commit 05024e07 authored by Pavel Vainerman's avatar Pavel Vainerman

Исправл ошибку в названии python-modules --> python-module

parent 633da6ae
...@@ -37,10 +37,6 @@ BuildRequires: libsqlite3-devel ...@@ -37,10 +37,6 @@ BuildRequires: libsqlite3-devel
BuildRequires: python-devel BuildRequires: python-devel
# swig # swig
BuildRequires(pre): rpm-build-python BuildRequires(pre): rpm-build-python
%global _target_python_libdir %_target_libdir_noarch
%define python_sitelibdir_noarch %python_sitelibdir
%define python_sitelibdir_arch %_libdir/python%__python_version/site-packages
%endif %endif
%if_enabled doc %if_enabled doc
...@@ -119,12 +115,12 @@ Libraries needed to develop for uniset SQLite ...@@ -119,12 +115,12 @@ Libraries needed to develop for uniset SQLite
%endif %endif
%if_enabled python %if_enabled python
%package -n python-modules-%oname %package -n python-module-%oname
Group: Development/Python Group: Development/Python
Summary: python interface for libuniset Summary: python interface for libuniset
Requires: %name = %version-%release Requires: %name = %version-%release
%description -n python-modules-%oname %description -n python-module-%oname
Python interface for %name Python interface for %name
%endif %endif
...@@ -186,11 +182,9 @@ Libraries needed to develop for uniset extensions ...@@ -186,11 +182,9 @@ Libraries needed to develop for uniset extensions
rm -f %buildroot%_libdir/*.la rm -f %buildroot%_libdir/*.la
%if_enabled python %if_enabled python
mkdir -p %buildroot%python_sitelibdir_noarch/%oname mkdir -p %buildroot%python_sitelibdir/%oname
mv -f %buildroot%python_sitelibdir_noarch/*.* %buildroot%python_sitelibdir_noarch/%oname/ mv -f %buildroot%python_sitelibdir/*.* %buildroot%python_sitelibdir/%oname/
#mv -f %buildroot%python_sitelibdir/%oname/%oname.py %buildroot%python_sitelibdir/
# этот файл должен быть в корне site-packages
mv -f %buildroot%python_sitelibdir_noarch/%oname/%oname.py %buildroot%python_sitelibdir_noarch/
%endif %endif
%files utils %files utils
...@@ -251,7 +245,7 @@ mv -f %buildroot%python_sitelibdir_noarch/%oname/%oname.py %buildroot%python_sit ...@@ -251,7 +245,7 @@ mv -f %buildroot%python_sitelibdir_noarch/%oname/%oname.py %buildroot%python_sit
%endif %endif
%if_enabled python %if_enabled python
%files -n python-modules-%oname %files -n python-module-%oname
%dir %python_sitelibdir/%oname %dir %python_sitelibdir/%oname
%python_sitelibdir/* %python_sitelibdir/*
%python_sitelibdir/%oname/* %python_sitelibdir/%oname/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment