- use _localstatedir macro, /var/lib/ax25 dir is owned by libax25
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 3 Mar 2003 15:04:28 +0000 (15:04 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    ax25-tools.spec -> 1.12

ax25-tools.spec

index f4be626..7553153 100644 (file)
@@ -21,6 +21,8 @@ Requires:     libax25 >= 0.0.9
 Requires:      zlib >= 1.1.3
 %define        _noautoreq      libfltk.so.1 
 
+%define                _localstatedir  /var/lib
+
 %description
 Tools for start up ax25 protocol.
 
@@ -32,13 +34,12 @@ Narz
 
 %build
 %configure2_13 \
-               --localstatedir=/var/lib \
-               --without-x
+       --without-x
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/var/lib/ax25
+install -d $RPM_BUILD_ROOT%{_localstatedir}/ax25
 
 %{__make} install installconf \
        DESTDIR=$RPM_BUILD_ROOT
@@ -59,4 +60,4 @@ rm -rf $RPM_BUILD_ROOT
 %docdir %{_docdir}/ax25-tools
 %dir %{_docdir}/ax25-tools
 %{_mandir}/man[14589]/*
-/var/lib/*
+%{_localstatedir}/ax25/*
This page took 0.046237 seconds and 4 git commands to generate.