]> git.pld-linux.org Git - packages/graphite-web.git/commitdiff
Starting upgrade to 0.9.14. Use modern python macros, force FHS by py_install params.
authorMateusz Korniak <matkor@pld-linux.org>
Fri, 27 Nov 2015 13:26:09 +0000 (14:26 +0100)
committerMateusz Korniak <matkor@pld-linux.org>
Fri, 27 Nov 2015 13:26:09 +0000 (14:26 +0100)
graphite-web.spec

index 9b3a53b2e46cb0744964d616225207dc3f4610ad..6b516b15e7d7cbbbd5162152a8ae1a64f0036411 100644 (file)
@@ -1,17 +1,18 @@
 Summary:       A Django webapp for enterprise scalable realtime graphing
 Name:          graphite-web
-Version:       0.9.10
-Release:       0.9
+Version:       0.9.14
+Release:       0.2
 License:       Apache v2.0
 Group:         Applications/WWW
-Source0:       https://github.com/downloads/graphite-project/graphite-web/%{name}-%{version}.tar.gz
+Source0:       https://codeload.github.com/graphite-project/%{name}/tar.gz/%{version}
 Source1:       apache.conf
 Source2:       %{name}.logrotate
 Patch0:                config.patch
 URL:           https://launchpad.net/graphite/
-BuildRequires: python-devel
 BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.658
+# for the py_build, py_install macros
+BuildRequires: rpmbuild(macros) >= 1.710
+BuildRequires: python-devel
 Requires:      apache-mod_wsgi
 Requires:      fonts-TTF-DejaVu
 Requires:      python-django
@@ -48,17 +49,19 @@ and enterprise scalability.
 # Patch for Filesystem Hierarchy Standard
 # Remove thridparty libs
 # https://github.com/hggh/graphite-web-upstream/commit/47361a2707f904a8b817ca96deeddabcdbaaa534.patch
-%patch0 -p1
+%patch0 -p1
 
 %build
-%{__python} setup.py build
+%py_build %{?with_tests:test}  
+  
 
 %install
 rm -rf $RPM_BUILD_ROOT
-%{__python} setup.py install \
-       --skip-build \
-       --optimize=2 \
-       --root=$RPM_BUILD_ROOT
+# http://graphite.readthedocs.org/en/latest/install-source.html#installing-in-the-default-location
+%py_install   \
+  --prefix /usr  \
+  --install-lib %{py_sitescriptdir}   \
+  --install-data %{_datadir}/graphite
 
 %py_postclean -x manage.py
 
@@ -122,11 +125,11 @@ rm -rf $RPM_BUILD_ROOT
 %{py_sitescriptdir}/graphite/composer
 %{py_sitescriptdir}/graphite/dashboard
 %{py_sitescriptdir}/graphite/events
-%{py_sitescriptdir}/graphite/graphlot
 %{py_sitescriptdir}/graphite/metrics
 %{py_sitescriptdir}/graphite/render
 %{py_sitescriptdir}/graphite/templates
 %{py_sitescriptdir}/graphite/version
+%{py_sitescriptdir}/graphite/url_shortener
 %{py_sitescriptdir}/graphite/whitelist
 %{py_sitescriptdir}/graphite_web-%{version}-py*.egg-info
 
This page took 0.041731 seconds and 4 git commands to generate.