File python-Nikola.spec of Package python-nikola
#
# spec file for package python-Nikola
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define pkgname Nikola
Name: python-Nikola
Version: 7.8.1
Release: 0
Summary: A Static Site and Blog Generator
License: MIT
Group: Development/Languages/Python
Url: https://getnikola.com/
Source: https://pypi.python.org/packages/74/eb/dd9859bb83874f423df4262e2c7d856331bbfad6047251cd3d6410940a97/Nikola-7.8.1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
%if %{?suse_version: %{suse_version} > 1110} %{!?suse_version:1}
BuildArch: noarch
%endif
Requires: python-Logbook
Requires: python-Mako
Requires: python-Pillow
Requires: python-PyRSS2Gen
Requires: python-Pygments
Requires: python-Unidecode
Requires: python-Yapsy
Requires: python-blinker
Requires: python-dateutil
Requires: python-docutils
Requires: python-doit >= 0.19
Requires: python-lxml
Requires: python-natsort
Requires: python-pyinotify
Requires: python-pytz
Requires: python-xml
%description
Nikola, a Static Site and Blog Generator
In goes content, out comes a website, ready to deploy.
%prep
%setup -q -n %{pkgname}-%{version}
%build
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} --install-data=%{_datadir}/nikola
(mkdir -p %{buildroot}%{_bindir};cd %{buildroot}%{_bindir};mv nikola nikola-%{py_ver})
%fdupes %{buildroot}%{python_sitelib}
# Don't wan't installed by package datas
rm -r %{buildroot}%{_datadir}/nikola
%files
%defattr(-,root,root,-)
%doc docs/manual.txt docs/theming.txt docs/extending.txt
%{python_sitelib}/*
%_bindir/nikola-%{py_ver}
%changelog