<?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>Sohail Riaz, Linux and Open Source Blog &#187; WGET</title>
	<atom:link href="http://www.sohailriaz.com/tag/wget/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sohailriaz.com</link>
	<description>Sohail Riaz, Linux and Open Source Blog</description>
	<lastBuildDate>Sat, 17 Jul 2010 07:38:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How To Create RPM Using Source RPM</title>
		<link>http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/</link>
		<comments>http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/#comments</comments>
		<pubDate>Sun, 24 May 2009 08:20:26 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[WGET]]></category>
		<category><![CDATA[YUM]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[RPM]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=99</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/"><img src=""  alt="" title="" /></a>
In this how to i will describe how to create binary rpm (installable) using source rpm i.e *.src.rpm. Source rpm is collection of source files in tar.gz, patches and spec file. Spec file defines how the source code will compile with current machine, defining depencies and generate rpm from source rpm. Usually we do this [...]]]></description>
			<content:encoded><![CDATA[<p>In this how to i will describe how to create binary rpm (installable) using source rpm i.e *.src.rpm. Source rpm is collection of source files in tar.gz, patches and spec file. Spec file defines how the source code will compile with current machine, defining depencies and generate rpm from source rpm. Usually we do this when we need to have some custom changes to be made in required software.<span id="more-99"></span></p>
<h3>1) Pre-requisite</h3>
<p>First of all you should have install rpm-devel and rpm-build rpms from your distro repository. Confirm it using following command</p>
<blockquote><p>rpm -qa | grep rpm</p>
<p>rpm-4.3.3-26<br />
rpm-devel-4.3.3-26<br />
rpm-python-4.3.3-26<br />
redhat-rpm-config-8.0.32.1-4<br />
rpmdb-CentOS-4.7-0.20080805<br />
rpm-libs-4.3.3-26<br />
rpm-build-4.3.3-26</p></blockquote>
<p>If you see required rpms in the list then you are good to go with source rpm compilation, else you have to install required rpms.</p>
<blockquote><p>yum -y install rpm-build rpm-devel</p>
<p>or</p>
<p>rpm -ivh /path/rpm-build* /path/rpm-devel*</p></blockquote>
<p>The rpm-build and rpm-devel also build following directories for source rpm compilations.</p>
<p>/usr/src/redhat/{BUILD,RPMS,SOURCES,SPECS,SRPMS}</p>
<h3>2) Compiling the source</h3>
<p>Get your source rpm which you need to compile.  Here i will get the ffmpeg source rpm from http://dag.wieers.com/rpm/packages/ffmpeg/ because i need to add libamr-nb and libamr-wb support for converting 3gp clips.</p>
<blockquote><p>wget http://dag.wieers.com/rpm/packages/ffmpeg/ffmpeg-0.4.9-0.9.20070530.rf.src.rpm</p>
<p>rpm -ivh ffmpeg-0.4.9-0.9.20070530.rf.src.rpm</p></blockquote>
<p>It will install source files tar.gz, patch files in</p>
<p>/usr/src/redhat/SOURCES</p>
<p>and spec file in</p>
<p>/usr/src/redhat/SPECS</p>
<p>I have to add &#8211;with-libamrnb and &#8211;with-libamrwb in ./configure command specified in ffmpeg.spec and you can edit whatever you are going to change/edit.</p>
<p>After editing now compile the sources and generate rpm using spec file.</p>
<blockquote><p>cd /usr/src/redhat/SPECS</p>
<p>rpmbuild -bb ffmpeg.spec</p></blockquote>
<p>The above command will apply patches if any and compile the source and generate rpm under /usr/src/redhat/RPMS sub-directories regarding to your architecture i.e</p>
<p>/usr/src/redhat/RPMS/i386 for i386,i686</p>
<p>/usr/src/redhat/RPMS/x86_64 for x86_64 etc.</p>
<p>While compiling you will see the verbose output of compilation and you should see clean compilation with notifying of generating rpm at the end.</p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=99&amp;ts=1284150063" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/how-to-create-rpm-using-source-rpm/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HowTo Wget behind Authenticated Proxy</title>
		<link>http://www.sohailriaz.com/howto-wget-behind-authenticated-proxy/</link>
		<comments>http://www.sohailriaz.com/howto-wget-behind-authenticated-proxy/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 07:15:38 +0000</pubDate>
		<dc:creator>Sohail Riaz</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Proxy]]></category>
		<category><![CDATA[WGET]]></category>

		<guid isPermaLink="false">http://www.sohailriaz.com/?p=38</guid>
		<description><![CDATA[<a href="http://www.sohailriaz.com/howto-wget-behind-authenticated-proxy/"><img src=""  alt="" title="" /></a>
This howto describe how to run wget behind authenticated proxy to download files. GNU Wget is a package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.
GNU Wget comes as [...]]]></description>
			<content:encoded><![CDATA[<p>This howto describe how to run wget behind authenticated proxy to download files. GNU Wget is a package for retrieving files using HTTP, HTTPS and FTP, the most widely-used Internet protocols. It is a non-interactive commandline tool, so it may easily be called from scripts, cron jobs, terminals without X-Windows support, etc.</p>
<p>GNU Wget comes as default software with almost every distribution, so we are going to just configure it to start downloading using authenticated proxy.<span id="more-38"></span></p>
<h3>1) Export http_proxy variable</h3>
<blockquote><p>export http_proxy=&#8221;http://yourproxyaddress.com:port/&#8221;</p></blockquote>
<h3>2) Export http_proxy variable in bash login script</h3>
<blockquote><p>vi ~/.bash_profile</p></blockquote>
<blockquote><p>export http_proxy=&#8221;http://yourproxyaddress.com:port/&#8221;</p></blockquote>
<h3>3) Define Proxy User / Pass in .wgetrc</h3>
<blockquote><p>vi ~/.wgetrc</p></blockquote>
<blockquote><p>proxy_user=your_username<br />
proxy_pass=your_password</p></blockquote>
<h3>4) Test</h3>
<blockquote><p>[root@centos1 ~]# wget http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz<br />
&#8211;08:46:50&#8211;  http://www.rarlab.com/rar/rarlinux-3.8.0.tar.gz<br />
Resolving proxy01.sohailriaz.com&#8230; 10.1.59.81<br />
Connecting to proxy01.sohailriaz.com|10.1.59.81|:80&#8230; connected.<br />
Proxy request sent, awaiting response&#8230; 200 OK<br />
Length: 791915 (773K) [application/x-gzip]<br />
Saving to: `rarlinux-3.8.0.tar.gz&#8217;</p>
<p>100%[=======================================&gt;] 791,915     88.8K/s   in 11s</p>
<p>08:47:04 (70.7 KB/s) &#8211; `rarlinux-3.8.0.tar.gz&#8217; saved [791915/791915]</p></blockquote>
<p>Enjoy Brothers <img src='http://www.sohailriaz.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<img src="http://www.sohailriaz.com/wp-content/plugins/pixelstats/trackingpixel.php?post_id=38&amp;ts=1284150063" style="display:none;" alt="pixelstats trackingpixel"/>]]></content:encoded>
			<wfw:commentRss>http://www.sohailriaz.com/howto-wget-behind-authenticated-proxy/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
