Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [EFFING PACKAGE MANAGEMENT] Provide cross-distribution of packages of U++ (https://github.com/jordansissel/fpm)
Re: [EFFING PACKAGE MANAGEMENT] Provide cross-distribution of packages of U++ [message #47183 is a reply to message #47174] Sun, 25 December 2016 19:42 Go to previous message
amrein is currently offline  amrein
Messages: 278
Registered: August 2008
Location: France
Experienced Member
A spec file for Fedora an other rpm based distribution is already provided and doesn't need much attention.
The bigger question about upp.spec file is how to handle ultimate++ version without using variables.

At present, to compile a new snapshot tarball, you need to run something like this:

source_file=upp-x11-src-10577M.tar.gz
release=${source_file%.tar.gz}
release=${release#*upp-x11-src-}
date=$(LC_TIME=En date '+%a %b %d %Y')
rpmbuild -tb --define "version $release" --define "date $date" ${source_file}


Most people using src.rpm are used to simply run this kind of command:
rpmbuild --rebuild upp-10577M-1.src.rpm


And so if someone wants to ease rpm build for everyone, he will need to make upp.spec less generic for each upp source snapshot.
How? Using templates I guess.

Those commands are enough to create a snapshot spec from the current upp.spec (without adding release history):
release=10577M
date=$(LC_TIME=En date '+%a %b %d %Y')
sed -e 's|%version|'$release'|g' -e 's|%date|'$date'|g' upp.spec > snapshot-upp.spec


Any upp tarball containing this snapshot-upp.spec file would be able to be compiled with a simple command "rpmbuild -tb upp-x11-src-$(release).tar.gz".
You can even build a src.rpm from it like this "rpmbuild -ts upp-x11-src-$(release).tar.gz" and compile the resulting src.rpm as previously said "rpmbuild --rebuild upp-$(release)-1.src.rpm"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [BUG REPORT] Renaming package has bugs. Introduce $PACKDIR as STD relative path
Next Topic: Splitting window + color(abbrv) bug
Goto Forum:
  


Current Time: Thu Jul 31 10:09:37 CEST 2025

Total time taken to generate the page: 0.05582 seconds