Le blog de pingou - Tag - subsurfaceLe blog de pingou, ses actualités sur Fedora, ses RPMs, ses tests, son Linux... :-)
Pingou's weblog, his fedora's news, his RPMs, his tests, his Linux... :-)2022-02-17T10:46:15+01:00pingouurn:md5:66db5ce1ed1a80cb2f424695b4bb7780DotclearIntroducing dgrocurn:md5:2cc1c8c38676b7d7556581987e3c9db42014-03-20T14:24:00+00:002014-03-20T14:24:00+00:00Pierre-YvesGénéralcoprdgrocFedora-planetguakePythonsubsurface <p><a href="https://github.com/pypingou/dgroc">dgroc for ''Daily Git Rebuild On Copr''</a>.</p>
<p><a href="https://copr.fedoraproject.org/coprs/">copr</a> is a build system made publicly available to Fedora contributors and allowing to provide package repository for packages that are not or cannot be part of the standard Fedora repositories.
There are multiple reasons a package is allowed in copr but not in the standard repositories, for examples:</p>
<ul>
<li>bundled libraries in the sources that have not been cleaned</li>
<li>unstable version</li>
<li>version introducing too many changes to be introduced to a stable Fedora release</li>
<li>packages that are in the process of being integrated into Fedora but have not yet been approved</li>
</ul>
<p><br /></p>
<p>The use-case for dgroc is the second point on this list: <code>unstable version</code>.</p>
<p>I know some of us out here are crazy testers and for two projects I was interested in having daily builds, this allows easy install/update (just run yum/dnf) and easy testing.</p>
<p>What dgroc does is providing an easy way to automatically build packages on copr from a git repository.</p>
<p>It works fairly simply:</p>
<ul>
<li>Create a <code>~/.config/dgroc</code> file and include in it some basic, generic information that will be needed either to update the spec file, make the source rpm available or build on copr:</li>
</ul>
<pre>
[main]
username = me
email = my_email@example.com
copr_url = https://copr.fedoraproject.org/
upload_command = cp %s /var/www/html/subsurface/
upload_url = http://my_server/subsurface/%s
#no_ssl_check = True # no longer need now that copr has a valid ssl cert
</pre>
<p><br /></p>
<ul>
<li>Then for each project you have to define at least three information, for example for subsurface:</li>
</ul>
<pre>
[subsurface]
git_url = git://subsurface.hohndel.org/subsurface.git
git_folder = /tmp/subsurface/
spec_file = ~/dgroc/subsurface.spec
</pre>
<p>Eventually, you can specify a <code>patch_files</code> argument that will be a comma-separated list of patches that are need to build the project.</p>
<p>All what dgroc does from there is:</p>
<ul>
<li>clone the git repo if it is not already in the filesystem</li>
<li>run a git pull to get the latest changes</li>
<li>generate a new tarball (in the rpm %_sourcedir)</li>
<li>update the spec file (release, source0 and changelog)</li>
<li>generate the source rpm</li>
<li>move that source rpm somewhere to make it available to copr (see the <code>upload_command</code> in the config file</li>
<li>start the build on copr</li>
</ul>
<p><br />
<br /></p>
<p>I have been running dgroc for both <a href="https://copr.fedoraproject.org/coprs/pingou/subsurface">subsurface</a> and <a href="https://copr.fedoraproject.org/coprs/pingou/guake/">guake</a> and it seems to work fine :)</p>
<p>The project isn't packaged yet but I thought I would announce it in case there are people interested in testing it and reporting bugs and RFE.</p>
<p>Hope you like it! :)</p>Subsurface 3.0urn:md5:013d61dddc5acfdca3ef5eed679fb1682013-02-21T18:31:00+00:002013-02-22T09:41:45+00:00Pierre-YvesGénéralFedoraFedora-planetsubsurface <p><a href="http://subsurface.hohndel.org/" title="SubsurfaceBanner20121.png"><img src="https://blog.pingoured.fr/public/.SubsurfaceBanner20121_m.jpg" alt="SubsurfaceBanner20121.png" style="display:block; margin:0 auto;" title="Subsurface, Feb 2013" /></a></p>
<p>Divers head-up!</p>
<p>I have just update Subsurface to its latest version on Fedora 17 and Fedora 18, it brings a whole bunch of new and shiny features:</p>
<ul>
<li>GPS / Map integration to place your dives on the map</li>
<li>More dive computers supported</li>
<li>Decompression ceiling calculation using the Bühlmann algorithm</li>
<li>Dive planner</li>
<li>Support for multiple dive-computer (as in multiple dive computer for a single user)</li>
</ul>
<p><a href="http://subsurface.hohndel.org/2013/02/subsurface-3-0-has-been-released/">And much more...</a></p>
<p><br /></p>
<p>Feel free to test them:</p>
<ul>
<li><a href="https://admin.fedoraproject.org/updates/subsurface-3.0-1.fc18,libdivecomputer-0.3.0-2.fc18">Fedora 18 builds</a></li>
<li><a href="https://admin.fedoraproject.org/updates/subsurface-3.0-1.fc17,libdivecomputer-0.3.0-2.fc17">Fedora 17 builds</a></li>
</ul>libdivecomputer & subsurfaceurn:md5:9fa750b019ae32fc6a28326c0f2365032012-07-16T19:22:00+01:002012-07-16T19:22:00+01:00Pierre-YvesRPMsDivingFedoraFedora-planetlibdivecomputerRPMsubsurface<p><img src="https://blog.pingoured.fr/public/rpm.png" alt="rpm.png" /></p>
<p>A small gift to our friend divers running Fedora</p> <p><strong><em>English version</em></strong></p>
<p>Couple of months ago I had a week of courses to pass the <a href="http://en.wikipedia.org/wiki/Open_Water_Diver">Open Water Diver</a> degree. During these dives we learned to ues diving computer and for my birthday (to come) I will receive my own.</p>
<p>After some time looking at price vs features I went for the <a href="http://www.suunto.com/nl/products/diving-instruments/suunto-vyper">Suunto Vyper</a>.</p>
<p>Since it has a computer interface, today I started to look at the possibility to couple this small computer to my Fedora box.</p>
<p>I found several options:</p>
<ul>
<li><a href="http://www.jdivelog.org/">JDiveLog</a> a nice Java program with quite some options and seem to be quite complete.</li>
<li><a href="http://octopuslog.murfman.de/">Octopus log</a> a java program which seems nice, but the last update is from 2009, so I am afraid this is not an option.</li>
<li><a href="http://sourceforge.net/projects/aquapalm/">Aquapalm</a> well this one is probably outdated and its target as well since it was developed for palm. Since I anyway do not have a palm, I can not even try it, so this is not an option either.</li>
</ul>
<p><br />
Then I ran into one of Linus Torvald's project: <a href="https://github.com/torvalds/subsurface/">subsurface</a>, a C++ program using the library <a href="http://divesoftware.org/libdc/">libdivecomputer</a> and offering a GTK interface</p>
<p>In order to test it, I packaged it and if you like to check it out here they are:</p>
<ul>
<li><a href="http://pingou.fedorapeople.org/RPMs/libdivecomputer-0.1.0-1.fc16.src.rpm">libdivecomputer-0.1.0-1.fc16.src.rpm</a></li>
<li><a href="http://pingou.fedorapeople.org/RPMs/subsurface-1.2-1.fc16.src.rpm">subsurface-1.2-1.fc16.src.rpm</a></li>
</ul>
<p><br />
I tested them on Fedora 16 and they also build fine on Fedora 17 (didn't test the GTK interface there though).</p>
<p>To test it, you will want to recompile them, to do so, <code>yum-builddep</code> and <code>rpmbuild --rebuild</code> are your friends ;-)</p>
<p>As for having them in the official repos, I think they are still a little young, so I will wait a little before submitting them but I surely hope they will get there eventually.</p>
<p><br /></p>
<p>The traditional screenshot (with data from Linus):</p>
<p><a href="http://pingoured.fr/public/subsurface.png"><img src="http://pingoured.fr/public/subsurface_500.png" alt="" /></a></p>
<p><br />
EDIT: I am told it works fine also on F17</p>