Changes

From SME Server
Jump to navigationJump to search
64 bytes added ,  22:58, 1 October 2014
Line 182: Line 182:  
     $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
 
     $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-filelist
   −
  # we can push file to a destination in order to use them after in a mysql.init script for example
+
  # we can push file to a destination in order to use them after in a mysql.init script
  # my $dbstruct = `rpm -qd smeserver-phpmyadmin | grep phpmyadmin.sql`;
+
# the file needs to be outside of the root/ of your rpm
 +
# for example :
 +
  # my $dbstruct = `rpm -qd smeserver-packageName | grep packageName.sql`;
 
  # /usr/bin/mysql $db < $dbstruct
 
  # /usr/bin/mysql $db < $dbstruct
    
  echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
 
  echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
  echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist
+
  echo "%doc packageName.sql" >> %{name}-%{version}-filelist
 
      
  # Now we have to list all the files that are part of our installed RPM
 
  # Now we have to list all the files that are part of our installed RPM

Navigation menu