LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File lansite.spec of Package lansite (Project home:TI_Eugene:python)

%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%define svnrev 909

Name:		lansite
Version:	0.9.3
Release:	0
License:	GPL
Group:		Development/Languages
Summary:	LanSite django project.
URL:		http://code.google.com/p/tidjango/
Source:		%{name}-%{version}-%{svnrev}.tar.gz
BuildRequires:	python-devel
Requires:	httpd, python-memcached, python-trml2pdf, python-rtfng, python-icalendar, python-paramico, Django, django-treebeard, django-polymorphic, django-extensions
%if 0%{?centos_version}
Requires:	python-imaging, python-hashlib
%endif
BuildArch:	noarch
Prefix:		/usr
BuildRoot:	%{_tmppath}/%{name}-%{version}-build


%description
LanSite is Django-based buisiness core.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
%{__install} -d %{buildroot}%{_datadir}/%{name}
%{__cp} -R * %{buildroot}%{_datadir}/%{name}
%{__rm} -rf %{buildroot}%{_datadir}/%{name}/_contrib
%{__install} -D -m 644 _contrib/%{name}.conf %{buildroot}/etc/httpd/conf.d/%{name}.conf
%{__install} -D -m 644 _contrib/%{name}.wsgi %{buildroot}%{_datadir}/%{name}/%{name}.wsgi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc _contrib/COPYING _contrib/INSTALL _contrib/README _contrib/TODO _contrib/local_settings.py
/etc/httpd/conf.d/%{name}.conf
%{_datadir}/%{name}

%changelog