-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpython-sphinxcontrib-googleanalytics.spec
More file actions
36 lines (29 loc) · 1.01 KB
/
python-sphinxcontrib-googleanalytics.spec
File metadata and controls
36 lines (29 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
%define module sphinxcontrib-googleanalytics
%define oname sphinxcontrib_googleanalytics
Name: python-sphinxcontrib-googleanalytics
Summary: Sphinx extension for Google Analytics
Version: 0.5
Release: 1
License: BSD-3-Clause
Group: Development/Python
URL: https://github.com/sphinx-contrib/googleanalytics
Source0: https://github.com/sphinx-contrib/googleanalytics/archive/v%{version}/%{name}-%{version}.tar.gz
BuildSystem: python
BuildArch: noarch
BuildRequires: python%{pyver}dist(pip)
BuildRequires: python%{pyver}dist(setuptools)
BuildRequires: python%{pyver}dist(wheel)
%description
This Sphinx extension tracks HTML files generated by the Google
Analytics web service.
%prep -a
# Fix shebangs
sed -i 's:^#!/usr/bin/env python:#!%{__python}:' \
sphinxcontrib/googleanalytics.py
%install -a
# Set executable bit on installed python scripts
chmod +x %{buildroot}%{python_sitelib}/sphinxcontrib/googleanalytics.py
%files
%doc README.rst
%{python_sitelib}/sphinxcontrib
%{python_sitelib}/%{oname}-%{version}.dist-info