Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
.spec file notes
(view source)
Revision as of 21:58, 1 October 2014
64 bytes added
,
21:58, 1 October 2014
→%install
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
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