Procházet zdrojové kódy

bless for PLUS and add a bunch of clarification comments

Ralf S. Engelschall před 17 roky
rodič
revize
d36b676870
1 změnil soubory, kde provedl 12 přidání a 2 odebrání
  1. 12 2
      drupal/drupal.spec

+ 12 - 2
drupal/drupal.spec

@@ -186,7 +186,7 @@ URL:          http://www.drupal.org/
 Vendor:       Dries Buytaert et al.
 Packager:     OpenPKG Foundation e.V.
 Distribution: OpenPKG Community
-Class:        EVAL
+Class:        PLUS
 Group:        CMS
 License:      GPL
 Version:      %{V_drupal}
@@ -1147,9 +1147,13 @@ AutoReqProv:  no
 %prep
     %setup -q -n drupal-%{version}
     %patch -p0
+
+    #   create additional sub-trees
     %{l_shtool} mkdir -f -p -m 755 \
         sites/all/modules \
         sites/all/themes
+
+    #   install additional modules
     ( cd sites/all/modules || exit $?
       %{l_tar} xfz %{SOURCE1}
       %{l_tar} xfz %{SOURCE2}
@@ -1287,6 +1291,8 @@ AutoReqProv:  no
       %{l_tar} xfz %{SOURCE133}
       %{l_tar} xfz %{SOURCE134}
     ) || exit $?
+
+    #   install additional themes
     ( cd sites/all/themes || exit $?
       %{l_tar} xfz %{SOURCE200}
       %{l_tar} xfz %{SOURCE201}
@@ -1300,6 +1306,8 @@ AutoReqProv:  no
       %{l_tar} xfz %{SOURCE209}
       %{l_tar} xfz %{SOURCE210}
     ) || exit $?
+
+    #   install additional third-party files
     ( cd sites/all/modules/fckeditor || exit $?
       %{l_tar} xfz %{SOURCE300}
     ) || exit $?
@@ -1332,9 +1340,11 @@ AutoReqProv:  no
         $RPM_BUILD_ROOT%{l_prefix}/var/drupal/log \
         $RPM_BUILD_ROOT%{l_prefix}/var/drupal/db
 
-    #   install all files (and strip down installation afterwards)
+    #   avoid copying unnecesseary text files
     rm -f CHANGELOG.txt COPYRIGHT.txt INSTALL.*.txt INSTALL.txt
     rm -f LICENSE.txt MAINTAINERS.txt UPGRADE.txt
+
+    #   install all files (and strip down installation afterwards)
     cp -rp * .htaccess \
         $RPM_BUILD_ROOT%{l_prefix}/share/drupal/