Add pandoc conversion for the README
authorFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 Oct 2016 20:45:36 +0000 (22:45 +0200)
committerFrantišek Dvořák <valtri@civ.zcu.cz>
Tue, 4 Oct 2016 20:46:47 +0000 (22:46 +0200)
python-pOCCI.spec

index 51d4a51..f90b445 100644 (file)
@@ -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 <valtri@civ.zcu.cz> - 0.0.2-0.20150916git8b98b05
+* Tue Oct 04 2016 František Dvořák <valtri@civ.zcu.cz> - 1.0.2-0.20161005gitd7ab21f
 - Initial package