From bf6cfc5af4c8d01df485636e773272d97131f10a Mon Sep 17 00:00:00 2001 From: webbuilder_pel7ppc64bebuilder0 Date: Thu, 19 Apr 2018 15:08:23 +0200 Subject: [PATCH] added pelican package Signed-off-by: webbuilder_pel7ppc64bebuilder0 --- SPECS/pelican-plugins.spec | 48 +++++++++++++++++++++++++++++++++ SPECS/pelican.spec | 55 ++++++++++++++++++++++++++++++++++++++ 2 files changed, 103 insertions(+) create mode 100755 SPECS/pelican-plugins.spec create mode 100755 SPECS/pelican.spec diff --git a/SPECS/pelican-plugins.spec b/SPECS/pelican-plugins.spec new file mode 100755 index 0000000..26a9a06 --- /dev/null +++ b/SPECS/pelican-plugins.spec @@ -0,0 +1,48 @@ +Name: pelican-plugins +Version: 20160406 +Release: 1%{dist} +Url: http://pelican.notmyidea.org/ +Summary: Plugins for pelican, a tool to generate a static blog, with restructured text (or markdown) input files. +License: GPLv3 +Group: Development/Languages/Python +#Source: https://github.com/getpelican/pelican-plugins +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +BuildRequires: git +Requires: pelican +Requires: python-icalendar +Requires: python-requests + + +%description +Plugins for Pelican, a tool to generate a static blog, with restructured text (or markdown) input files. + + +%prep +%setup -q -T -c %{name}-%{version} +git clone --recursive https://github.com/getpelican/pelican-plugins.git + + +%build +# nothing to build + + +%install +%{__mkdir} -p $RPM_BUILD_ROOT/%{python_sitelib}/ +%{__cp} -rv * $RPM_BUILD_ROOT/%{python_sitelib}/ + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{python_sitelib}/%{name}/ +%exclude %{python_sitelib}/%{name}/.git/* +%exclude %{python_sitelib}/%{name}/.gitignore +%exclude %{python_sitelib}/%{name}/.gitmodules +%exclude %{python_sitelib}/%{name}/.travis.yml + + +%changelog diff --git a/SPECS/pelican.spec b/SPECS/pelican.spec new file mode 100755 index 0000000..40463d2 --- /dev/null +++ b/SPECS/pelican.spec @@ -0,0 +1,55 @@ +Name: pelican +Version: 3.6.3 +Release: 1%{dist} +Url: http://pelican.notmyidea.org/ +Summary: A tool to generate a static blog, with restructured text (or markdown) input files. +License: GPLv3 +Group: Development/Languages/Python +Source: http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +BuildRequires: python +BuildRequires: python-setuptools +Requires: python +Requires: python-jinja2 +Requires: python-markdown +#Requires: python-argparse +Requires: python-feedgenerator >= 1.5 +Requires: python-blinker +Requires: python-pygments +Requires: python-unidecode +Requires: python-feedparser +Requires: python-six +Requires: python-docutils +Requires: pytz +Requires: rst2pdf + + +%description +A tool to generate a static blog, with restructured text (or markdown) input files. + + +%prep +%setup -q -n %{name}-%{version} + + +%build +%{__python2} setup.py build + + +%install +%{__python2} setup.py install --prefix=%{_prefix} --root=%{buildroot} + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%{_bindir}/pelican* +%{python_sitelib}/%{name}/* +%{python_sitelib}/%{name}-%{version}-py?.?.egg-info/* + + +%changelog