forked from radez/python-django-horizon-facebook
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathpython-django-horizon-facebook.spec
62 lines (52 loc) · 2.71 KB
/
python-django-horizon-facebook.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
57
58
59
60
61
62
Name: python-django-horizon-facebook
Version: 2015.1
Release: 1%{?dist}
Summary: A facebook auth plugin for horizon and api password distribution
Group: Development/Libraries
License: Apache 2.0
URL: https://github.com/trystack/horizon/commits/folsom-trystack
Source0: %{name}-%{version}.tar.gz
BuildRequires: python2-devel
BuildRequires: python-setuptools
Requires: python-django-horizon
%description
Provides auth module to allow the horizon framework to use facebook as an auth method
Also provides password distribution of keystone password for api access.
%prep
%setup -q -n %{name}-%{version}
%build
%{__python} setup.py build
%install
#Facebook auth Stuff
mkdir %{buildroot}%{python_sitelib}/horizon/facebook/templates/auth/ -p
install -t %{buildroot}%{python_sitelib}/horizon/facebook/ horizon/facebook/*py*
install -t %{buildroot}%{python_sitelib}/horizon/facebook/templates/ horizon/templates/*html
install -t %{buildroot}%{python_sitelib}/horizon/facebook/templates/auth/ horizon/templates/auth/*html
#API Password Stuff
mkdir -p %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/settings/apipassword/
mkdir -p %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/settings/apipassword/templates/apipassword/
mkdir -p %{buildroot}%{python_sitelib}/horizon/management/commands/
mkdir -p %{buildroot}%{_sysconfdir}/cron.hourly/
install -t %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/settings/apipassword/ openstack_dashboard/dashboards/settings/apipassword/*py*
install -t %{buildroot}%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/settings/apipassword/templates/apipassword openstack_dashboard/dashboards/settings/apipassword/templates/apipassword/*html
install -t %{buildroot}%{python_sitelib}/horizon/management/commands/ horizon/management/commands/*py*
install -t %{buildroot}%{_sysconfdir}/cron.hourly/ cron/trystack-set-api-passwords
%files
%defattr(644, root, root)
%doc LICENSE
#API Password Stuff
%attr(700, root, root) /etc/cron.hourly/trystack-set-api-passwords
%{python_sitelib}/horizon/management/commands/*.py*
%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/settings/apipassword/*.py*
%{_datadir}/openstack-dashboard/openstack_dashboard/dashboards/settings/apipassword/templates/*
#Facebook auth Stuff
%{python_sitelib}/horizon/facebook/*.py*
%{python_sitelib}/horizon/facebook/templates/*.html
%{python_sitelib}/horizon/facebook/templates/auth/*.html
%changelog
* Tue May 20 2014 Dan Radez <dradez@redhat.com> - 2014.1-1
- updates for icehouse
* Tue Jul 16 2013 Dan Radez <dradez@redhat.com> - 2013.1-1
- Added API password managment scripts
* Tue Mar 27 2012 Dan Radez <dradez@redhat.com> - 2012.2-1
- initial packaging