1 |
%define realname django-haystack |
2 |
%define name python-%{realname} |
3 |
%define version 1.2.4 |
4 |
%define release %mkrel 1 |
5 |
%define github_shorttag e9c7653 |
6 |
%define github_tag ge9c7653 |
7 |
%define github_author toastdriven |
8 |
|
9 |
Name: %{name} |
10 |
Version: %{version} |
11 |
Release: %{release} |
12 |
Summary: Django module for modular search |
13 |
Group: Development/Python |
14 |
License: BSD |
15 |
URL: http://haystacksearch.org/ |
16 |
Source: https://download.github.com/%github_author-%realname-v%{version}-0-%github_tag.tar.gz |
17 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
18 |
BuildArch: noarch |
19 |
BuildRequires: python-devel |
20 |
Requires: python-django |
21 |
|
22 |
%description |
23 |
TODO |
24 |
|
25 |
%prep |
26 |
%setup -q -n %github_author-%realname-%github_shorttag |
27 |
|
28 |
%build |
29 |
%{__python} setup.py build |
30 |
|
31 |
%install |
32 |
rm -rf $RPM_BUILD_ROOT |
33 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT |
34 |
|
35 |
%clean |
36 |
rm -rf $RPM_BUILD_ROOT |
37 |
|
38 |
%files |
39 |
%defattr(-,root,root,-) |
40 |
%{py_puresitedir}/* |