summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacek Konieczny2015-11-30 16:34:04 (GMT)
committerJacek Konieczny2015-11-30 16:34:04 (GMT)
commitae6c60785e95e1648c78a9a1395d7834f220838f (patch)
treef866adfb0fa0b40b6bf1f6a301613e99d470e12f
parentcaaf861bb2bdc55af005678e90a82ce2dcf5511b (diff)
downloadhawkey-ae6c60785e95e1648c78a9a1395d7834f220838f.zip
hawkey-ae6c60785e95e1648c78a9a1395d7834f220838f.tar.gz
Fix python installation directoryauto/th/hawkey-0.5.3-6
Release: 6
-rw-r--r--hawkey.spec7
1 files changed, 5 insertions, 2 deletions
diff --git a/hawkey.spec b/hawkey.spec
index 3f00e85..2207f02 100644
--- a/hawkey.spec
+++ b/hawkey.spec
@@ -7,7 +7,7 @@ Summary: High-level API for the libsolv library
Summary(pl.UTF-8): Wysokopoziomowe API dla biblioteki libsolv
Name: hawkey
Version: 0.5.3
-Release: 5
+Release: 6
License: LGPL v2.1+
Group: Libraries
Source0: https://github.com/rpm-software-management/hawkey/archive/%{gitrev}/%{name}-%{gitrev}.tar.gz
@@ -99,11 +99,13 @@ Wiązania Pythona 3.x do biblioteki hawkey.
%prep
%setup -q -n %{name}-%{gitrev}
+: > cmake/modules/FindPythonInstDir.cmake
%build
install -d build %{?with_python3:build-py3}
cd build
-%cmake ..
+%cmake .. \
+ -DPYTHON_INSTALL_DIR=%{py_sitedir}
%{__make}
%{__make} doc
@@ -111,6 +113,7 @@ cd build
%if %{with python3}
cd ../build-py3
%cmake .. \
+ -DPYTHON_INSTALL_DIR=%{py3_sitedir} \
-DPYTHON_DESIRED=3
%{__make}