Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
RPM Tools
(view source)
Revision as of 21:35, 24 July 2015
367 bytes added
,
21:35, 24 July 2015
→git_mockbuild
Line 156:
Line 156:
cp $TMPDIR/$PACKAGE-$VERSION.tar.gz ~/rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz
cp $TMPDIR/$PACKAGE-$VERSION.tar.gz ~/rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz
cp $PACKAGE.spec ~/rpmbuild/SPECS/
cp $PACKAGE.spec ~/rpmbuild/SPECS/
+
+
##copy a list of files to SOURCES when patches or archives are not in the root folder
+
ls > /tmp/$PACKAGE-$VERSION
+
cp -f $(</tmp/$PACKAGE-$VERSION) ~/rpmbuild/SOURCES/
# And build
# And build
Line 224:
Line 228:
rm -f ~/rpmbuild/SPECS/$PACKAGE.spec ~/rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz ~/rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm
rm -f ~/rpmbuild/SPECS/$PACKAGE.spec ~/rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz ~/rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm
rm -rf $TMPDIR ~/$PACKAGE-$VERSION
rm -rf $TMPDIR ~/$PACKAGE-$VERSION
+
+
# clean ~/rpmbuild/SOURCES when patches or archives are not in the root folder
+
cd ~/rpmbuild/SOURCES/
+
rm -rf $(</tmp/$PACKAGE-$VERSION)
+
#remove the file list
+
rm -rf /tmp/$PACKAGE-$VERSION
# we give the path where are files
# we give the path where are files
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