]> git.pld-linux.org Git - packages/python-Sphinx-PyPI-upload.git/blame - python-Sphinx-PyPI-upload.spec
BR: rpmbuild(macros) >= 1.710
[packages/python-Sphinx-PyPI-upload.git] / python-Sphinx-PyPI-upload.spec
CommitLineData
1ee8f5a5
MK
1#
2# Conditional build:
3# %bcond_without tests # do not perform "make test"
4
5%define module Sphinx-PyPI-upload
6Summary: setuptools command for uploading Sphinx documentation to PyPI
7Summary(pl.UTF-8): komenda setuptools do publikowana dokumentacji Sphinx na PyPI
8Name: python-%{module}
9Version: 0.2.1
fb9062a7 10Release: 2
1ee8f5a5
MK
11License: BSD-3
12Group: Development/Languages/Python
13Source0: http://pypi.python.org/packages/source/S/%{module}/%{module}-%{version}.tar.gz
14# Source0-md5: b9f1df5c8443197e4d49abbba1cfddc4
15URL: https://bitbucket.org/jezdez/sphinx-pypi-upload/
16BuildRequires: python-devel
17BuildRequires: python-distribute
18BuildRequires: rpm-pythonprov
19# remove BR: python-devel for 'noarch' packages.
20# if py_postclean is used
c0e44d04 21BuildRequires: rpmbuild(macros) >= 1.710
1ee8f5a5
MK
22#Requires: python-libs
23Requires: python-modules
24BuildArch: noarch
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28setuptools command for uploading Sphinx documentation to PyPI
29
30%description -l pl.UTF-8
31komenda setuptools do publikowana dokumentacji Sphinx na PyPI
32
33%prep
34%setup -q -n %{module}-%{version}
35
36%build
b9d0c11b 37%py_build
1ee8f5a5
MK
38
39# %{?with_tests:%{__python} setup.py test}
40
41%install
42rm -rf $RPM_BUILD_ROOT
b9d0c11b 43%py_install
1ee8f5a5
MK
44
45install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
46%py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
47%py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
48%py_postclean
49
50%clean
51rm -rf $RPM_BUILD_ROOT
52
53%files
54%defattr(644,root,root,755)
55%doc README
56%{py_sitescriptdir}/*.py[co]
57%if "%{py_ver}" > "2.4"
58%{py_sitescriptdir}/Sphinx_PyPI_upload-*.egg-info
59%endif
This page took 0.080535 seconds and 4 git commands to generate.