Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
.spec file notes
(view source)
Revision as of 21:54, 1 October 2014
326 bytes added
,
21:54, 1 October 2014
→%install
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
Stephdl
Administrators
5,576
edits
Navigation menu
Page actions
Page
Discussion
View source
History
Page actions
Page
Discussion
More
Tools
In other languages
Personal tools
English
Log in
Koozali SME Server
Main Page
Welcome
Releases
Testimonials
Documentation
SME Server FAQ
Volunteering
Commercial Support
Recent activities
Dashboard
Recent wiki changes
Recent bug changes
Unread Forum posts
Koozali resources
Contribs
How-To's
Forums
Bugzilla
Mailing Lists
Translations
Download
Koozali SME Server wiki
Wiki statistics
Wiki categories
Wiki Help
Koozali Wiki Help
Tools
Special pages
Printable version
Search