From 1b84841953be18521a9214b2efa90ed01a5d13d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Tue, 4 Oct 2016 22:45:36 +0200 Subject: [PATCH] Add pandoc conversion for the README --- python-pOCCI.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/python-pOCCI.spec b/python-pOCCI.spec index 51d4a51..f90b445 100644 --- a/python-pOCCI.spec +++ b/python-pOCCI.spec @@ -1,5 +1,5 @@ %global srcname pOCCI -%global commit 8b98b058bc19823987212eea662e4e8e9ead9dd6 +%global commit d7ab21ffa78d0a20ae0cfeb532c07534b4a69a62 %global shortcommit %(c=%{commit}; echo ${c:0:7}) # compatibility macros @@ -30,8 +30,8 @@ %endif Name: python-%{srcname} -Version: 0.0.2 -Release: 0.20150916git%{shortcommit}%{?dist} +Version: 1.0.2 +Release: 0.20161005git%{shortcommit}%{?dist} Summary: OCCI compliance testing License: MIT @@ -46,6 +46,7 @@ BuildRequires: python2-devel python-pycurl %if 0%{?with_python3} BuildRequires: python3-devel python3-pycurl %endif +BuildRequires: pandoc BuildRequires: python-sphinx %description @@ -97,6 +98,7 @@ cp -a %{srcname}-%{commit} python3 %build pushd python2 %py2_build +pandoc -t rst < README.md > README.rst make html rm -f build/html/.buildinfo popd @@ -178,7 +180,7 @@ popd %if 0%{?with_python3} %files -n python3-%{srcname} %license python3/LICENSE -%doc python3/README.rst +%doc python3/README.md %doc python3/%{srcname}/pOCCI.cfg %{python3_sitelib}/%{srcname}/ %{python3_sitelib}/%{srcname}-%{version}*.egg-info/ @@ -193,5 +195,5 @@ popd %changelog -* Wed Sep 16 2015 František Dvořák - 0.0.2-0.20150916git8b98b05 +* Tue Oct 04 2016 František Dvořák - 1.0.2-0.20161005gitd7ab21f - Initial package -- 1.8.2.3