summaryrefslogtreecommitdiffstats
path: root/SPECS/varnishhoststat.spec
blob: b13262a85ecbe40145bd7f648a9185e239f6fd0b (plain)
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
36
37
38
39
40
41
42
43
44
45
46
47
48
%global pkgname      varnishHostStat
%global main_version 0.8
%global git_com      afb89de3d3172f4c23b18afb1368b127f9eb093a
%global git_ver      %(c=%{git_com}; echo ${c:0:10})

%if 0%{?fedora} > 12
%global with_python3 1
%else
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print (get_python_lib())")}
%endif

Name:           %{pkgname}
Version:        %{main_version}
Release:        1.20150207git%{git_ver}%{?dist}
Summary:        Display to the statistics for each domain or url-pattern

License:        Public
URL:            https://github.com/xcir/varnishHostStat
Source0:        https://github.com/xcir/varnishHostStat/archive/%{git_ver}.zip

Requires:       python

%description
Display to the Statistics for each domain or url-pattern

%prep
%setup -q -n %{pkgname}-%{git_com}


%install
mkdir -p %{buildroot}/%{python_sitearch}/
mkdir -p %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_docdir}/%{pkgname}
install varnishhoststatcore.py %{buildroot}/%{python_sitearch}/
install varnishapi.py %{buildroot}/%{python_sitearch}/
install varnishhoststat.py -m 0755 %{buildroot}/%{_bindir}/
install README.rst LICENSE COPYING %{buildroot}/%{_docdir}/%{pkgname}/


%files
%doc %{_docdir}/%{pkgname}
%{python_sitearch}/*
%{_bindir}/*


%changelog
* Sat Feb 07 2015 mh <mh@immerda.ch> 0.8-1.1.20150207gitafb89de3d3
- new package built