Changes

From SME Server
Jump to navigationJump to search
326 bytes added ,  22:54, 1 October 2014
Line 163: Line 163:  
  # %files section below for how it's actually used
 
  # %files section below for how it's actually used
 
  # A you can see below we set permissions and ownership on files and directories
 
  # A you can see below we set permissions and ownership on files and directories
 +
 
  rm -rf $RPM_BUILD_ROOT
 
  rm -rf $RPM_BUILD_ROOT
 
  rm -f %{name}-%{version}-filelist
 
  rm -f %{name}-%{version}-filelist
Line 180: Line 181:  
     --file /var/service/dhcp-dns/run 'attr(0750,root,root)' \
 
     --file /var/service/dhcp-dns/run 'attr(0750,root,root)' \
 
     $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
 +
# my $dbstruct = `rpm -qd smeserver-phpmyadmin | grep phpmyadmin.sql`;
 +
# /usr/bin/mysql $db < $dbstruct
 +
 +
echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist
 +
echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist
 +
 
  # This section will help clear out the build root before
 
  # This section will help clear out the build root before
 
  # building the RPM
 
  # building the RPM

Navigation menu