From ec596987a42c829462620699140933b77b6ebafb Mon Sep 17 00:00:00 2001 From: Dave Johansen Date: Apr 07 2016 02:58:02 +0000 Subject: Initial RPM release --- diff --git a/.gitignore b/.gitignore index e69de29..0304e69 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/breathe-a423389dfe2935962b3b27586602cfc3521fb54a.tar.gz diff --git a/python-breathe.spec b/python-breathe.spec new file mode 100644 index 0000000..ec5fb80 --- /dev/null +++ b/python-breathe.spec @@ -0,0 +1,89 @@ +%global owner michaeljones +%global commit0 a423389dfe2935962b3b27586602cfc3521fb54a +%global srcname breathe +%global _description \ +Breathe is an extension to reStructuredText and Sphinx to be able to read and \ +render the Doxygen xml output. + +Name: python-%{srcname} +Version: 4.2.0 +Release: 1%{?dist} +Summary: Adds support for Doxygen xml output to reStructuredText and Sphinx + +License: BSD +URL: https://github.com/%{owner}/%{srcname} +Source0: https://github.com/%{owner}/%{srcname}/archive/%{commit0}.tar.gz#/%{srcname}-%{commit0}.tar.gz + +BuildArch: noarch + +BuildRequires: doxygen +BuildRequires: python2-devel python3-devel +BuildRequires: python-setuptools +BuildRequires: python-six +BuildRequires: python-sphinx +# NOTE: git is only needed because part of the build process checks if it's in +# a git repo +BuildRequires: git + +Requires: python-six + +# Set the name of the documentation directory +%global _docdir_fmt %{name} + +%description %_description + +%package -n python2-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python2-%{srcname}} + +# This package replaces the old version packaged as just breathe +Provides: %{srcname} = %{version}-%{release} +Obsoletes: %{srcname} < %{version}-%{release} + +%description -n python2-%{srcname} %_description + +%package -n python3-%{srcname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} + +%description -n python3-%{srcname} %_description + +%package doc +Summary: Documentation files for %{srcname} +# tinyxml uses zlib license +License: BSD and zlib + +%description doc +This package contains documentation for developer documentation for %{srcname}. + +%prep +%autosetup -n %{srcname}-%{commit0} + +%build +%py2_build +%py3_build +# Build the documentation +make %{?_smp_mflags} html +# Remove temporary build files +rm documentation/build/html/.buildinfo + +%install +%py2_install +%py3_install + +%files -n python2-%{srcname} +%{python2_sitelib}/* +%license LICENSE + +%files -n python3-%{srcname} +%{_bindir}/breathe-apidoc +%{python3_sitelib}/* +%license LICENSE + +%files doc +%doc documentation/build/html +%license LICENSE + +%changelog +* Wed Apr 06 2016 Dave Johansen - 4.2.0-1 +- Initial RPM release diff --git a/sources b/sources index e69de29..149e939 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +64d7a7459a8e098b04b554a612fe30ae breathe-a423389dfe2935962b3b27586602cfc3521fb54a.tar.gz