-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathkeystone-ldap.spec
56 lines (37 loc) · 1.18 KB
/
keystone-ldap.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%global with_doc 0
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%endif
Name: keystone-ldap
Version: 1.0
Release: 0
Summary: LDAP integration for keystone
License: Apache 2.0
Vendor: Grid Dynamics International, Inc.
URL: http://www.griddynamics.com/openstack
Group: Development/Languages/Python
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildArch: noarch
Requires: python-keystone
Requires: python-ldap
%description
%prep
%setup -q -n %{name}-%{version}
%build
%{__python} setup.py build
%install
%__rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --prefix=%{_prefix} --root=%{buildroot}
mkdir -p %{buildroot}/usr/sbin
install -m755 keystone-ldap-configure %{buildroot}/usr/sbin/
%clean
%__rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc README* COPYING
%{python_sitelib}/*
/usr/sbin/*
%changelog