[thermostat/f20] Don't use %{_var} macro

jerboaa jerboaa at fedoraproject.org
Mon Aug 26 08:52:30 UTC 2013


commit 7b1d320b00a12a0889a9337292340e76a9d65173
Author: Omair Majid <omajid at redhat.com>
Date:   Fri Aug 23 16:22:32 2013 -0400

    Don't use %{_var} macro
    
    %{_var} is incompatible with scl. Use the compatible-with-scl
    %{_localstatedir} instead.

 thermostat.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/thermostat.spec b/thermostat.spec
index ba46f01..2700838 100644
--- a/thermostat.spec
+++ b/thermostat.spec
@@ -1,7 +1,7 @@
 # Global directory definitions
-%global system_datadir %{_var}/lib/%{name}/storage
-%global system_cachedir %{_var}/cache/%{name}/osgi-cache
-%global system_logdir %{_var}/log/%{name}
+%global system_datadir %{_localstatedir}/lib/%{name}/storage
+%global system_cachedir %{_localstatedir}/cache/%{name}/osgi-cache
+%global system_logdir %{_localstatedir}/log/%{name}
 %global system_statedir %{_localstatedir}/run/%{name}
 # Uncomment to build from snapshot out of hg.  See also Release and Source0
 #%global hgrev 97e66ed2e4ae
@@ -10,7 +10,7 @@ Name:       thermostat
 Version:    0.9.2
 # If building from snapshot out of hg, uncomment and adjust below value as appropriate
 #Release:    0.1.20130521hg%{hgrev}%{?dist}
-Release:    5%{?dist}
+Release:    6%{?dist}
 Summary:    A monitoring and serviceability tool for OpenJDK
 License:    GPLv2+ with exceptions
 URL:        http://icedtea.classpath.org/thermostat/
@@ -629,6 +629,9 @@ fi
 %{_datadir}/tomcat/webapps/%{name}
 
 %changelog
+* Fri Aug 23 2013 Omair Majid <omajid at redhat.com> 0.9.2-6
+- Don't use %{_var}.
+
 * Fri Aug 02 2013 Severin Gehwolf <sgehwolf at redhat.com> 0.9.2-5
 - Bump release, rebuild for arm.
 


More information about the scm-commits mailing list