فهرست منبع

hell, what is this: mkdirs in the middle of a configure command...

Ralf S. Engelschall 23 سال پیش
والد
کامیت
cd490bfeac
1فایلهای تغییر یافته به همراه11 افزوده شده و 13 حذف شده
  1. 11 13
      lesstif/lesstif.spec

+ 11 - 13
lesstif/lesstif.spec

@@ -33,7 +33,7 @@ Distribution: OpenPKG [EVAL]
 Group:        XWindow
 License:      LGPL
 Version:      0.93.41
-Release:      20030319
+Release:      20030405
 
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/lesstif/lesstif-%{version}.tar.gz
@@ -62,7 +62,17 @@ Provides:     MOTIF
     CXXFLAGS="%{l_cxxflags -O}" \
     CPPFLAGS="%{l_cppflags}" \
     LDFLAGS="%{l_ldflags}" \
+    ./configure \
+        --prefix=%{l_prefix} \
+        --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
+        --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
+        --enable-production \
+        --disable-debug \
+        --disable-shared
+    %{l_make} %{l_mflags -O}
 
+%install
+    rm -rf $RPM_BUILD_ROOT
     %{l_shtool} mkdir -f -p -m 755 \
         $RPM_BUILD_ROOT%{l_prefix}/bin \
         $RPM_BUILD_ROOT%{l_prefix}/include/Dt \
@@ -75,18 +85,6 @@ Provides:     MOTIF
         $RPM_BUILD_ROOT%{l_prefix}/man/man1 \
         $RPM_BUILD_ROOT%{l_prefix}/man/man3 \
         $RPM_BUILD_ROOT%{l_prefix}/man/man5
-
-    ./configure \
-        --prefix=%{l_prefix} \
-        --x-includes=`%{l_prefix}/etc/rc --query x11_incdir` \
-        --x-libraries=`%{l_prefix}/etc/rc --query x11_libdir` \
-        --enable-production \
-        --disable-debug \
-        --disable-shared
-    %{l_make} %{l_mflags -O}
-
-%install
-    rm -rf $RPM_BUILD_ROOT
     %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
     rm -rf $RPM_BUILD_ROOT%{l_prefix}/LessTif
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true