<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Everything technical &#187; Packaging</title>
	<atom:link href="http://www.lbotti.net/blog/category/packaging/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lbotti.net/blog</link>
	<description>Linux, Java, Python...just techie blogging</description>
	<lastBuildDate>Mon, 30 Aug 2010 12:45:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Java 6 update 17 on Fedora 12</title>
		<link>http://www.lbotti.net/blog/2010/01/08/java-6-update-17-on-fedora-12/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.lbotti.net/blog/2010/01/08/java-6-update-17-on-fedora-12/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 00:26:50 +0000</pubDate>
		<dc:creator>lucabotti</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Packaging]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://www.lbotti.net/blog/?p=205</guid>
		<description><![CDATA[A nice reader asked about the spec file for update 17 of the Sun Java virtual machine. I already had updated the spec file, which you can find here and then follow my previous post. Right now, I am using Chromium (open source version of Google Chrome) and I will fix the Java plugin for [...]]]></description>
			<content:encoded><![CDATA[<p>A nice reader asked about the spec file for update 17 of the Sun Java virtual machine. I already had updated the spec file, which you can find <a href="http://www.lbotti.net/specfiles/java-1.6.0-sun.spec">here</a> and then follow my <a href="http://www.lbotti.net/blog/2009/08/07/java-1-6u15-installation-in-fedora-11/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_blank">previous post</a>.<br />
Right now, I am using Chromium (open source version of Google Chrome) and I will fix the Java plugin for that.<br />
I Promise! </p>
  
<div class="wp_license">
<p><a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/"><img src="http://i.creativecommons.org/l/by-sa/3.0/88x31.png" alt="Creative Commons Attribution-ShareAlike 3.0 Unported" class="alignleft" style="margin-top:4px;" />
</a>This work  is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-sa/3.0/">Creative Commons Attribution-ShareAlike 3.0 Unported</a>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.lbotti.net/blog/2010/01/08/java-6-update-17-on-fedora-12/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Building RPMs, part two &#8211; Pinax</title>
		<link>http://www.lbotti.net/blog/2009/08/23/building-rpms-part-two-pinax/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.lbotti.net/blog/2009/08/23/building-rpms-part-two-pinax/#comments</comments>
		<pubDate>Sun, 23 Aug 2009 15:55:33 +0000</pubDate>
		<dc:creator>lucabotti</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Licensing]]></category>
		<category><![CDATA[Netbook]]></category>
		<category><![CDATA[Packaging]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://people.byte-code.com/lbotti/?p=56</guid>
		<description><![CDATA[Ok, so now we have the environment complete. First thing I want to package is Pinax. This is a nice little collection of Django applications which add some required stuff for most of web based applications. On the link above you will find all the info for the project, so let&#8217;s start. We will build [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, so now we have the environment complete. First thing I want to package is <a title="Pinax" title='Original Link: http://pinaxproject.com/'  href="http://www.lbotti.net/blog/?lHD_YdIN" target="_blank">Pinax</a>. This is a nice little collection of Django applications which add some required stuff for most of web based applications.</p>
<p>On the link above you will find all the info for the project, so let&#8217;s start. We will build the release version of Pinax (for development versions I have a side project, which I will show you at right time). Please note &#8211; all the release used are current for the day this entry has been written.</p>
<p>Download pinax version 0.5.1 from <a title='Original Link: http://downloads.pinaxproject.com/pinax-0.5.1.tar.gz'  href="http://www.lbotti.net/blog/?ODh6AOjx">here</a> and put it in rpmbuild/SOURCES. After that:</p>
<blockquote><p>cd ~/rpmbuild/SPECS</p>
<p>rpmdev-newspec -t python pinax</p></blockquote>
<p>Rpmdev-newspec creates the skeleton for a new spec file named pinax. The -t python option tells to create a skeleton  with some python definitions in it (python definitions are laid out according to this <a title='Original Link: http://fedoraproject.org/wiki/Packaging:Python'  href="http://www.lbotti.net/blog/?vFV1KQHw" target="_blank">wiki entry</a> on the Fedora Project Wiki); you can see which skeletons are available looking in &#8216;\etc\rpmdevtools&#8217;.</p>
<p>Why Python? Well, my guess is that being DJango a <span style="text-decoration: underline;">Python</span> framework, you know&#8230;.</p>
<p>Let&#8217;s look at the spec file and put some info into that. You can use any editor for the file (I use <a title='Original Link: http://www.geany.org/'  href="http://www.lbotti.net/blog/?oWVTdap3" target="_blank">geany</a>, fast and lightweight).</p>
<blockquote><p># sitelib for noarch packages, sitearch for others (remove the unneeded one)<br />
%{!?python_sitelib: %global python_sitelib %(%{__python} -c &#8220;from distutils.sysconfig import get_python_lib; print get_python_lib()&#8221;)}<br />
%{!?python_sitearch: %global python_sitearch %(%{__python} -c &#8220;from distutils.sysconfig import get_python_lib; print get_python_lib(1)&#8221;)}</p>
<p>Name:           pinax<br />
Version:<br />
Release:        1%{?dist}<br />
Summary:</p>
<p>Group:          Development/Languages<br />
License:<br />
URL:<br />
Source0:<br />
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)</p>
<p>BuildArch:<br />
BuildRequires:  python-devel</p></blockquote>
<p>I am assuming that Pinax is a pure python package, so we use the sitelib for noarch packages (first line of the two provided). After that we have to insert some descriptive info of the Pinax project.</p>
<p>But, of course, before going ahead we must check some of the <a title='Original Link: http://pinaxproject.com/docs/0.5.1/dependencies.html'  href="http://www.lbotti.net/blog/?aZmfuYB8" target="_blank">Pinax dependencies</a>.</p>
<p>Continuing tomorrow&#8230;</p>
  
<div class="wp_license">
<p><a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/"><img src="http://i.creativecommons.org/l/by-nc-sa/3.0/88x31.png" alt="Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported" class="alignleft" style="margin-top:4px;" />
</a>This work  is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/3.0/">Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported</a>.</p>
</div>]]></content:encoded>
			<wfw:commentRss>http://www.lbotti.net/blog/2009/08/23/building-rpms-part-two-pinax/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java 1.6u15 installation in Fedora 11</title>
		<link>http://www.lbotti.net/blog/2009/08/07/java-1-6u15-installation-in-fedora-11/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.lbotti.net/blog/2009/08/07/java-1-6u15-installation-in-fedora-11/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 22:56:29 +0000</pubDate>
		<dc:creator>lucabotti</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Packaging]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://www.lbotti.net/blog/?p=165</guid>
		<description><![CDATA[Sometimes life is strange. Just 4 days ago I was releasing the spec file for Java 1.6u14, and now Sun releases the new patched vm. Anyway, go grab the new jdk bin package (check for update 15) and download the spec file from here . Follow the instructions from previous post and all should be [...]]]></description>
			<content:encoded><![CDATA[<p>Sometimes life is strange. Just 4 days ago I was releasing the spec file for Java 1.6u14, and now Sun releases the new patched vm. Anyway, go grab the new jdk bin package (check for update 15) and download the spec file from <a href="http://www.lbotti.net/specfiles/java-1.6.0-sun.spec">here</a> . Follow the instructions from <a href="http://www.lbotti.net/blog/2009/08/03/java-and-fedora/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed" target="_blank">previous post</a> and all should be ok.</p>
<p>Just in case, the older spec file can be found <a href="http://www.lbotti.net/specfiles/java-1.6.0u14-sun.spec">here</a> .</p>
<p>A sidenote &#8211; the behaviour here is that fixes of major version will update the base package. So 1.6u15 will just upgrade 1.6u14. If you wish something different, let me know. But this is JPackage standard.</p>
<p><strong>Update</strong> &#8211; please remove previous version of packages. I am studying the update path + alternatives issues which emerged.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lbotti.net/blog/2009/08/07/java-1-6u15-installation-in-fedora-11/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Building RPMs, part one</title>
		<link>http://www.lbotti.net/blog/2009/06/27/packaging-startup/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.lbotti.net/blog/2009/06/27/packaging-startup/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 08:26:46 +0000</pubDate>
		<dc:creator>lucabotti</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Packaging]]></category>

		<guid isPermaLink="false">http://people.byte-code.com/lbotti/?p=44</guid>
		<description><![CDATA[The following is an excerpt from the IRC Packaging Lesson ; in red instructions for root (please use sudo &#8211; never use a system as root): yum groupinstall development-tools yum install rpm-build rpmdevtools rpmdev-setuptree The last command will setup the following directories: BUILD This directory will contain the build of the source code you want [...]]]></description>
			<content:encoded><![CDATA[<p>The following is an excerpt from the <a title="Packaging Lesson" title='Original Link: http://fedoraproject.org/wiki/Building_RPM_packages_(20090405)'  href="http://www.lbotti.net/blog/?aJHG4xBc" target="_blank">IRC Packaging Lesson</a> ; in <span style="color: #ff0000;">red <span style="color: #000000;">instructions for root (please use sudo &#8211; never use a system as root):</span><br />
</span></p>
<ul>
<li><span style="color: #ff0000;"> yum groupinstall development-tools</span></li>
<li><span style="color: #ff0000;">yum install rpm-build rpmdevtools</span></li>
<li>rpmdev-setuptree</li>
</ul>
<p>The last command will setup the following directories:</p>
<div id="attachment_46" class="wp-caption alignnone" style="width: 310px"><a href="http://www.lbotti.net/blog/wp-content/uploads/2009/06/screenshot-rpmbuild-file-browser.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-medium wp-image-46" title="rpmbuild tree" src="http://people.byte-code.com/lbotti/wp-content/uploads/2009/06/screenshot-rpmbuild-file-browser-300x172.png" alt="rpmbuild directory tree" width="300" height="172" /></a><p class="wp-caption-text">rpmbuild directory tree</p></div>
<h3><strong>BUILD</strong></h3>
<p>This directory will contain the build of the source code you want to package. Roughly equivalent to the directory where you <em>tar xjf  source.tarball.bz2 ; cd source.tarball ; .configure ; make</em></p>
<h3><strong>BUILDROOT</strong></h3>
<p>The directory where the package will be built.</p>
<h3><strong>RPMS</strong></h3>
<p>The rpm produced will end in this directory. This is the binary rpm, the one you want to install in the system to use that cute application of yours.</p>
<h3><strong>SOURCES</strong></h3>
<p>Tarballs will end up here. These are the .gz or bz2 downloaded to build the application; usually contains source files, in the common autotools format.</p>
<h3><strong>SPECS</strong></h3>
<p>Spec files are the files which define how to package software, which dependencies to look for, and some more stuff. It&#8217;s the only file you need (apart from source code) to really build a package.</p>
<h3><strong>SRPMS</strong></h3>
<p>SRPMS files are RPMS which contain source and SPEC file to rebuild packages with rpm.</p>
<p>OK, right now I will close the entry. A new one in a few days.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lbotti.net/blog/2009/06/27/packaging-startup/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting lost</title>
		<link>http://www.lbotti.net/blog/2009/06/25/getting-lost/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://www.lbotti.net/blog/2009/06/25/getting-lost/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 12:06:20 +0000</pubDate>
		<dc:creator>lucabotti</dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Hacking]]></category>
		<category><![CDATA[Packaging]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://people.byte-code.com/lbotti/?p=40</guid>
		<description><![CDATA[At Byte-code meetup I just launched the idea for a new projet to support the Prince2 project management methodology. Right now, I just registered at sourceforge and nothing else. But the plan is clear (and will be managed in a Prince2 manner, by the way): Django / Python powered GPL v2 Integration with external tools [...]]]></description>
			<content:encoded><![CDATA[<p>At <a title="Byte-Code 2009 Meetup" title='Original Link: http://www.byte-code.com/meetup2009/'  href="http://www.lbotti.net/blog/?zl9nYqKI" target="_blank">Byte-code meetup</a> I just launched the idea for a new projet to support the Prince2 project management methodology.</p>
<p>Right now, I just registered at sourceforge and nothing else. But the plan is clear (and will be managed in a Prince2 manner, by the way):</p>
<ul>
<li><a title='Original Link: http://www.djangoproject.com/'  href="http://www.lbotti.net/blog/?0CeP8aRr" target="_blank">Django</a> / Python powered</li>
<li>GPL v2</li>
<li>Integration with external tools ( <a title="trac" title='Original Link: http://trac.edgewall.org'  href="http://www.lbotti.net/blog/?w2QFcd6d">trac</a> comes to mind, but also <a title='Original Link: http://www.taskjuggler.org/'  href="http://www.lbotti.net/blog/?MCJG0_Jp" target="_blank">taskjuggler</a> )</li>
</ul>
<p>Django is a little hazard &#8211; never programmed seriously in Python, and the Django world is a new one for me. Anyway, I am just willing to move away from the Java world for a while.</p>
<p>Now comes the best &#8211; I will try to do it using <strong>Fedora way</strong> . This means that every additional package (Python or  Django)   will be rpm&#8217;ed.</p>
<p>Django by itself it&#8217;s a no-brainer &#8211; just <em>yum install Django</em> (observe the capital &#8216;D&#8217; here), but I was looking at <a title="Pinax" title='Original Link: http://pinaxproject.com/'  href="http://www.lbotti.net/blog/?lHD_YdIN" target="_blank">Pinax</a> and some more Django extensions, mostly hosted at google code.</p>
<p>Benefits of this plan:</p>
<ul>
<li>Enhance package building knowledge</li>
<li>Easy installation</li>
<li>Really join fedora community</li>
</ul>
<p>So I will create a new category, starting today, where I will summarize my steps. Stay tuned.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lbotti.net/blog/2009/06/25/getting-lost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
