Line 164: |
Line 164: |
| | | |
| rm -rf $RPM_BUILD_ROOT | | rm -rf $RPM_BUILD_ROOT |
| + | rm -f %{name}-%{version}-filelist |
| (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) | | (cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
− | /sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ | + | /sbin/e-smith/genfilelist \ |
| '''--dir /var/lib/packageName/tmp 'attr(0770,root,www)' \''' | | '''--dir /var/lib/packageName/tmp 'attr(0770,root,www)' \''' |
| --dir /var/service/tinydns 'attr(0755,root,root)' \ | | --dir /var/service/tinydns 'attr(0755,root,root)' \ |
Line 178: |
Line 179: |
| --file /var/service/dhcp-dns/dhcp-dns 'attr(0750,root,root)' \ | | --file /var/service/dhcp-dns/dhcp-dns 'attr(0750,root,root)' \ |
| --file /var/service/dhcp-dns/run 'attr(0750,root,root)' \ | | --file /var/service/dhcp-dns/run 'attr(0750,root,root)' \ |
− | > %{name}-%{version}-%{release}-filelist | + | # A you can see above we set permissions and ownership on files and directories |
| + | $RPM_BUILD_ROOT > %{name}-%{version}-%{release}-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 |
− | | + | echo "%doc CHANGELOG.git" >> %{name}-%{version}-filelist |
− | '''# A you can see above we set permissions and ownership on files and directories''' | + | echo "%doc phpmyadmin.sql" >> %{name}-%{version}-filelist |
| + | # we can push file to a destination in order to use them after in a mysql.init script for example |
| | | |
| ==== %clean ==== | | ==== %clean ==== |