/[packages]/cauldron/python-repoze-sphinx-autointerface/current/SPECS/python-repoze-sphinx-autointerface.spec
ViewVC logotype

Diff of /cauldron/python-repoze-sphinx-autointerface/current/SPECS/python-repoze-sphinx-autointerface.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1104368 by mitya, Wed May 24 10:48:43 2017 UTC revision 1104369 by mitya, Wed May 24 10:57:39 2017 UTC
# Line 1  Line 1 
 %if 0%{?fedora} || 0%{?rhel} >= 8  
 %global with_py3 1  
 %endif  
   
1  %global pkgname repoze.sphinx.autointerface  %global pkgname repoze.sphinx.autointerface
2  %global srcname %(tr . - <<< %{pkgname})  %global srcname %(tr . - <<< %{pkgname})
3    
4  Name:           python-%{srcname}  Name:           python-%{srcname}
5  Version:        0.8  Version:        0.8
6  Release:        4%{?dist}  Release:        %mkrel 1
7    Group:          Development/Python
8  Summary:        Auto-generate Sphinx API docs from Zope interfaces  Summary:        Auto-generate Sphinx API docs from Zope interfaces
9    
10  License:        BSD  License:        BSD
# Line 16  Source0:        https://github.com/repoz Line 13  Source0:        https://github.com/repoz
13  BuildArch:      noarch  BuildArch:      noarch
14    
15  BuildRequires:  python2-devel  BuildRequires:  python2-devel
16  BuildRequires:  python2-setuptools  BuildRequires:  python-setuptools
17  BuildRequires:  python2-sphinx  BuildRequires:  python-sphinx
18  BuildRequires:  python-zope-interface  BuildRequires:  python-zope-interface
19    
 %if 0%{?with_py3}  
20  BuildRequires:  python3-devel  BuildRequires:  python3-devel
21  BuildRequires:  python3-setuptools  BuildRequires:  python3-setuptools
22  BuildRequires:  python3-sphinx  BuildRequires:  python3-sphinx
23  BuildRequires:  python3-zope-interface  BuildRequires:  python3-zope-interface
24  %endif  
25    Requires:       python-sphinx
26    Requires:       python-zope-interface
27    
28    %{?python_provide:%python_provide python-%{srcname}}
29    
30  %global common_desc                                                      \  %global common_desc                                                      \
31  This package defines an extension for the Sphinx documentation system.   \  This package defines an extension for the Sphinx documentation system.   \
# Line 35  zope.interface instances in code. Line 35  zope.interface instances in code.
35  %description  %description
36  %{common_desc}  %{common_desc}
37    
 %package -n python2-%{srcname}  
 Summary:        Auto-generate Sphinx API docs from Zope interfaces  
 Requires:       python2-sphinx  
 Requires:       python-zope-interface  
   
 %{?python_provide:%python_provide python2-%{srcname}}  
   
 %description -n python2-%{srcname}  
 %{common_desc}  
   
 %if 0%{?with_py3}  
38  %package -n python3-%{srcname}  %package -n python3-%{srcname}
39    Group:          Development/Python
40  Summary:        Auto-generate Sphinx API docs from Zope interfaces  Summary:        Auto-generate Sphinx API docs from Zope interfaces
41  Requires:       python3-sphinx  Requires:       python3-sphinx
42  Requires:       python3-zope-interface  Requires:       python3-zope-interface
# Line 55  Requires:       python3-zope-interface Line 45  Requires:       python3-zope-interface
45    
46  %description -n python3-%{srcname}  %description -n python3-%{srcname}
47  %{common_desc}  %{common_desc}
 %endif  
48    
49  %prep  %prep
50  %setup -q -c  %setup -q -c
51    
 %if 0%{?with_py3}  
52  cp -a %{pkgname}-%{version} python3-%{pkgname}-%{version}  cp -a %{pkgname}-%{version} python3-%{pkgname}-%{version}
 %endif  
53    
54  %build  %build
55    
56  # Python 2 build  # Python 2 build
57  pushd %{pkgname}-%{version}  pushd %{pkgname}-%{version}
58  %py2_build  %py2_build
# Line 72  python2 %{_bindir}/rst2html --no-datesta Line 60  python2 %{_bindir}/rst2html --no-datesta
60  python2 %{_bindir}/rst2html --no-datestamp README.rst README.html  python2 %{_bindir}/rst2html --no-datestamp README.rst README.html
61  popd  popd
62    
 %if 0%{?with_py3}  
63  # Python 3 build  # Python 3 build
64  pushd python3-%{pkgname}-%{version}  pushd python3-%{pkgname}-%{version}
65  %py3_build  %py3_build
66  popd  popd
 %endif  
67    
68  %install  %install
69    
70  # Python 2 install  # Python 2 install
71  pushd %{pkgname}-%{version}  pushd %{pkgname}-%{version}
72  %py2_install  %py2_install
73  popd  popd
74    
 %if 0%{?with_py3}  
75  # Python 3 install  # Python 3 install
76  pushd python3-%{pkgname}-%{version}  pushd python3-%{pkgname}-%{version}
77  %py3_install  %py3_install
78  popd  popd
 %endif  
79    
80  %files -n python2-%{srcname}  %files
81  %doc %{pkgname}-%{version}/CHANGES.html %{pkgname}-%{version}/CONTRIBUTORS.txt  %doc %{pkgname}-%{version}/CHANGES.html %{pkgname}-%{version}/CONTRIBUTORS.txt
82  %doc %{pkgname}-%{version}/README.html  %doc %{pkgname}-%{version}/README.html
83  %license %{pkgname}-%{version}/COPYRIGHT.txt %{pkgname}-%{version}/LICENSE.txt  %license %{pkgname}-%{version}/COPYRIGHT.txt %{pkgname}-%{version}/LICENSE.txt
84  %{python2_sitelib}/*  %{python2_sitelib}/*
85    
 %if 0%{?with_py3}  
86  %files -n python3-%{srcname}  %files -n python3-%{srcname}
87  %doc %{pkgname}-%{version}/CHANGES.html %{pkgname}-%{version}/CONTRIBUTORS.txt  %doc %{pkgname}-%{version}/CHANGES.html %{pkgname}-%{version}/CONTRIBUTORS.txt
88  %doc %{pkgname}-%{version}/README.html  %doc %{pkgname}-%{version}/README.html
89  %license %{pkgname}-%{version}/COPYRIGHT.txt %{pkgname}-%{version}/LICENSE.txt  %license %{pkgname}-%{version}/COPYRIGHT.txt %{pkgname}-%{version}/LICENSE.txt
90  %{python3_sitelib}/*  %{python3_sitelib}/*
 %endif  
91    

Legend:
Removed from v.1104368  
changed lines
  Added in v.1104369

  ViewVC Help
Powered by ViewVC 1.1.28