-
Notifications
You must be signed in to change notification settings - Fork 0
/
loki.spec
61 lines (44 loc) · 1.66 KB
/
loki.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
# sitelib for noarch packages
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
# Use the info in setup.py
%{!?app_name: %define app_name %(%{__python} setup.py --name)}
%{!?app_version: %define app_version %(%{__python} setup.py --version)}
%{!?app_summary: %define app_summary %(%{__python} setup.py --description)}
%{!?app_description: %define app_description %(%{__python} setup.py --long-description)}
%{!?app_license: %define app_license %(%{__python} setup.py --license)}
%{!?app_url: %define app_url %(%{__python} setup.py --url)}
Name: Django-app-loki
Version: %{app_version}
Release: 1%{?dist}
Summary: %{app_summary}
Group: Applications/Internet
License: %{app_license}
URL: %{app_url}
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
Requires: Django-reusable-base, PyYAML, python-docutils, buildbot
%description
%{app_description}
%prep
%setup -q -n %{name}-%{version}
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_usr}/share/django/apps/loki
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING LICENSE
# For noarch packages: sitelib
%{python_sitelib}/*
%dir %{_datadir}/django/apps/loki/
%{_datadir}/django/apps/loki/*
#%ghost %{python_sitelib}/*egg-info
%changelog
* Tue Nov 24 2009 Dan Radez <[email protected]> - 0.6.0-1
- Initial spec for loki rewrite