93f20d
%global pypi_name nikola
93f20d
93f20d
Name:           python-%{pypi_name}
f18edf
Version:        8.1.1
75c91e
Release:        2%{?dist}
93f20d
Summary:        A modular, fast, simple, static website and blog generator
93f20d
93f20d
License:        MIT and CC0 and BSD
93f20d
URL:            https://getnikola.com/
93f20d
Source0:        https://github.com/getnikola/nikola/archive/v%{version}/nikola-%{version}.tar.gz
93f20d
BuildArch:      noarch
93f20d
93f20d
BuildRequires:  python3-devel
93f20d
# Sphinx required for documentation
93f20d
BuildRequires:  python3dist(sphinx)
93f20d
93f20d
# Required for testing ( requires + extras + testing)
93f20d
#  * from requirements.txt
93f20d
BuildRequires:  python3dist(doit)
93f20d
BuildRequires:  python3dist(pygments)
93f20d
BuildRequires:  python3dist(pillow)
93f20d
BuildRequires:  python3dist(python-dateutil)
93f20d
BuildRequires:  python3dist(docutils)
93f20d
BuildRequires:  python3dist(mako)
93f20d
BuildRequires:  python3dist(markdown)
93f20d
BuildRequires:  python3dist(unidecode)
93f20d
BuildRequires:  python3dist(lxml)
93f20d
BuildRequires:  python3dist(yapsy)
93f20d
BuildRequires:  python3dist(pyrss2gen)
93f20d
BuildRequires:  python3dist(blinker)
93f20d
BuildRequires:  python3dist(setuptools)
93f20d
BuildRequires:  python3dist(natsort)
93f20d
BuildRequires:  python3dist(requests)
93f20d
BuildRequires:  python3dist(piexif)
93f20d
BuildRequires:  python3dist(babel)
93f20d
# * from requirements-extras.txt
93f20d
BuildRequires:  python3dist(jinja2)
93f20d
BuildRequires:  python3dist(husl)
93f20d
BuildRequires:  python3dist(pyphen)
93f20d
BuildRequires:  python3dist(micawber)
93f20d
BuildRequires:  python3dist(pygal)
93f20d
BuildRequires:  python3dist(typogrify)
93f20d
BuildRequires:  python3dist(phpserialize)
93f20d
BuildRequires:  python3dist(notebook)
93f20d
BuildRequires:  python3dist(ipykernel)
93f20d
BuildRequires:  python3dist(ghp-import2)
93f20d
BuildRequires:  python3dist(aiohttp)
93f20d
BuildRequires:  python3dist(watchdog)
93f20d
BuildRequires:  python3dist(ruamel.yaml)
93f20d
BuildRequires:  python3dist(toml)
93f20d
# * from requirements-tests.txt
93f20d
BuildRequires:  python3dist(coverage)
93f20d
BuildRequires:  python3dist(pytest)
93f20d
BuildRequires:  python3dist(pytest-cov)
93f20d
BuildRequires:  python3dist(freezegun)
93f20d
BuildRequires:  python3dist(flake8)
e4a4e5
e4a4e5
%description
93f20d
Nikola is a static site and blog generator using Python. It generates sites
e4a4e5
with tags, feeds, archives, comments, and more from plain text files. Source
93f20d
 can be unformatted, or formatted with reStructuredText or Markdown.
e4a4e5
It also automatically builds image galleries.
e4a4e5
93f20d
93f20d
%package -n     python3-%{pypi_name}
93f20d
Summary:        %{summary}
93f20d
%{?python_provide:%python_provide python3-%{pypi_name}}
93f20d
93f20d
Requires:       glyphicons-halflings-fonts
93f20d
# Extra requirements to enable plugins
93f20d
Requires:  python3dist(jinja2)
93f20d
Requires:  python3dist(husl)
93f20d
Requires:  python3dist(pyphen)
93f20d
Requires:  python3dist(micawber)
93f20d
Requires:  python3dist(pygal)
93f20d
Requires:  python3dist(typogrify)
93f20d
Requires:  python3dist(phpserialize)
93f20d
Requires:  python3dist(notebook)
93f20d
Requires:  python3dist(ipykernel)
93f20d
Requires:  python3dist(ghp-import2)
93f20d
Requires:  python3dist(aiohttp)
93f20d
Requires:  python3dist(watchdog)
93f20d
Requires:  python3dist(ruamel.yaml)
93f20d
Requires:  python3dist(toml)
93f20d
2b970d
# nikola carries these python modules bundled
2b970d
## a modified version to use dateutil instead of pytz
93f20d
Provides:  bundled(python3-pytzlocal)
93f20d
## this is a small module made by Chris Warrick (a Nikola main contributor)
93f20d
Provides:  bundled(python3-datecond) = 0.1.6
2b970d
## this is a small module made by Chris Warrick (a Nikola main contributor)
2b970d
Provides:  bundled(python3-pygments_better_html)
93f20d
93f20d
%description -n python3-%{pypi_name}
e4a4e5
Nikola is a static site and blog generator using Python. It generates sites
e4a4e5
with tags, feeds, archives, comments, and more from plain text files. Source
e4a4e5
 can be unformatted, or formatted with reStructuredText or Markdown.
93f20d
This package contains the Python implementation of nikola.
e4a4e5
e4a4e5
93f20d
%package -n python-%{pypi_name}-doc
93f20d
Summary:        python-nikola documentation
93f20d
Obsoletes:      python2-nikola < 8
93f20d
Obsoletes:      python3-nikola < 8
93f20d
%description -n python-%{pypi_name}-doc
93f20d
Documentation for python-nikola
e4a4e5
e4a4e5
93f20d
%package -n %{pypi_name}
93f20d
Summary:        %{summary}
93f20d
Requires:       python3-%{pypi_name} = %{version}-%{release}
e4a4e5
93f20d
%description -n %{pypi_name}
93f20d
Documentation for python-nikola
93f20d
Nikola is a static site and blog generator using Python. It generates sites
93f20d
with tags, feeds, archives, comments, and more from plain text files. Source
93f20d
 can be unformatted, or formatted with reStructuredText or Markdown.
93f20d
It also automatically builds image galleries.
e4a4e5
e4a4e5
93f20d
%prep
2b970d
%autosetup -n nikola-%{version}
93f20d
# Remove bundled egg-info
93f20d
rm -rf Nikola.egg-info
e4a4e5
e4a4e5
93f20d
%build
93f20d
%py3_build
93f20d
# generate html docs
93f20d
PYTHONPATH=${PWD} sphinx-build-3 docs/sphinx html
93f20d
# remove the sphinx-build leftovers
93f20d
rm -rf html/.{doctrees,buildinfo}
e4a4e5
e4a4e5
93f20d
%install
93f20d
%py3_install
e4a4e5
e4a4e5
93f20d
%check
93f20d
pytest
93f20d
93f20d
93f20d
%files -n python3-%{pypi_name}
93f20d
%license LICENSE.txt
93f20d
%doc README.rst
93f20d
%{python3_sitelib}/nikola
cc5cd1
%{python3_sitelib}/Nikola-%{version}-py%{python3_version}.egg-info
e4a4e5
e4a4e5
93f20d
%files -n python-%{pypi_name}-doc
93f20d
%license LICENSE.txt
93f20d
%doc html
e4a4e5
e4a4e5
93f20d
%files -n %{pypi_name}
93f20d
%license LICENSE.txt
93f20d
%{_bindir}/nikola
93f20d
%dir %{_datadir}/doc/%{pypi_name}
93f20d
%{_datadir}/doc/%{pypi_name}/*.rst
93f20d
%{_mandir}/man1/nikola.1.gz
e4a4e5
e4a4e5
93f20d
%changelog
75c91e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 8.1.1-2
75c91e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
75c91e
f18edf
* Wed Jul  8 2020 José Matos <jamatos@fedoraproject.org> - 8.1.1-1
f18edf
- update to 8.1.1
f18edf
2b970d
* Fri Jul  3 2020 José Matos <jamatos@fedoraproject.org> - 8.1.0-1
2b970d
- update to 8.1.0
2b970d
71952f
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 8.0.4-10
71952f
- Rebuilt for Python 3.9
71952f
93f20d
* Sat Mar 21 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-9
93f20d
- Claim ownership of nikola documentation directory
e4a4e5
93f20d
* Sat Mar 21 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-8
93f20d
- change Source0 to a more canonical form regarding github archives
e4a4e5
93f20d
* Fri Mar 20 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-7
93f20d
- pass all the Requires: and Provides: fields to the python3
93f20d
  subpackage (where they belong)
e4a4e5
93f20d
* Fri Mar 20 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-6
93f20d
- document the two python modules bundled with nikola
e4a4e5
93f20d
* Mon Mar 16 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-5
93f20d
- add Obsoletes to nikola for versions < 8 to ensure a clean upgrade path
93f20d
- simplify the testing now that Fedora 31 has the new python-markdown
e4a4e5
93f20d
* Fri Mar  6 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-4
93f20d
- Require git-core instead of git to support "%%autosetup -S git"
e4a4e5
93f20d
* Thu Mar  5 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-3
93f20d
- use directly pytest for tests instead of using setup.py
93f20d
- add upstream patch to fix a test
e4a4e5
93f20d
* Tue Feb 25 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-2
93f20d
- Reenable tests to see if they now work
93f20d
- Add extra requirements to enable plugins
e4a4e5
93f20d
* Tue Feb 25 2020 José Matos <jamatos@fedoraproject.org> - 8.0.4-1
93f20d
- update to 8.0.4
e4a4e5
93f20d
* Sun Jun  9 2019 José Matos <jamatos@fedoraproject.org> - 8.0.2-1
93f20d
- package resubmitted to Fedora.
e4a4e5
93f20d
* Sat Sep  8 2018 José Matos <jamatos@fedoraproject.org> - 7.8.15-2
93f20d
- make Requires dependencies greater or equal rather than just equal.
e4a4e5
93f20d
* Sat Sep  1 2018 José Matos <jamatos@fedoraproject.org> - 7.8.15-1
93f20d
- initial package.
93f20d
- disable for now the dependency on ws4py because it does not build with python3.7