Changes
From SME Server
Jump to navigation
Jump to search
← Older edit
Newer edit →
RPM Tools
(view source)
Revision as of 00:34, 17 June 2015
20 bytes added
,
00:34, 17 June 2015
→srpm-import
Line 638:
Line 638:
cvs add $2
cvs add $2
cd $2
cd $2
+
#import correct date of first import
#import correct date of first import
echo $(date +%s) > import.log
echo $(date +%s) > import.log
+
#copy makefile from my home '''FIXME'''
#copy makefile from my home '''FIXME'''
cp -f ~/Makefile .
cp -f ~/Makefile .
sed -i -e "s/smeserver-durep/$1/g" Makefile
sed -i -e "s/smeserver-durep/$1/g" Makefile
+
#wget the srpm by remote url
#wget the srpm by remote url
wget $3
wget $3
+
#untar the srpm
#untar the srpm
rpm2cpio *.src.rpm | cpio -idmv --no-absolute-filenames
rpm2cpio *.src.rpm | cpio -idmv --no-absolute-filenames
+
#import the new source
#import the new source
make new-sources FILES=*.?z
make new-sources FILES=*.?z
+
#a bit of clean
#a bit of clean
rm -rf *.src.rpm *.?z
rm -rf *.src.rpm *.?z
+
#import all to cvs
#import all to cvs
cvs add *
cvs add *
+
#sed work
#sed work
version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
version=$(grep -sri 'define version' *.spec | sed 's/%define version //gI')
release=$(grep -sri 'define release' *.spec | sed 's/%define release //gI')
release=$(grep -sri 'define release' *.spec | sed 's/%define release //gI')
+
#bump the release
#bump the release
release=$((release + 1))
release=$((release + 1))
+
#write to the spec file
#write to the spec file
sed -i "/%define release/c %define release $release" *.spec
sed -i "/%define release/c %define release $release" *.spec
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