Skip to content

Posts tagged ‘rpm’

31
May

update on Dropbox Servicemenu

Since I find this servicemenu very useful, I’ll continue packaging it. I have placed it inside my own repository as it is not suitable for inclusion in fedora (as in not so useful since the dropbox client is gnome only and this does not use dropbox-nautilus, but assumes you have followed this guide here or similar).

To install this on fedora you will need to put this in /etc/yum.repos.d/magnu5.repo:

[magnu5]
name=magnu5
baseurl=http://magnu5.fedorapeople.org/repo/$releasever/
enabled=1
gpgcheck=0

or install the rpm for the repo:

yum install http://magnu5.fedorapeople.org/repo/magnu5-1.0-1.fc13.noarch.rpm --nogpgcheck

Then

yum install dropbox-servicemenu
29
Apr

ffmpegthumbnailer & kffmpegthumbnailer

I just pushed  kffmpegthumbnailer into rpmfusion-free for fedora 12, 13 and devel. This is a much faster video thumbnail generator than mplayerthumbs.

kffmpegthumbnailer

This should be installable using yum in a week or so, ffmpegthumbnailer has already hit the repository.

http://code.google.com/p/ffmpegthumbnailer/

18
Nov

kopete-facebook-0.1.4-2

Updated my RPMs for Fedora 12 to fix the buddy list not showing.

http://duncan.mac-vicar.com/blog/archives/597

http://rubbad.com/files/fedora/12/RPM/x86_64/kopete-facebook-0.1.4-2.fc12.x86_64.rpm

23
Oct

kopete-facebook

RPMs for fedora 12 beta x86_64 available now too.
see http://rubbad.com/files/fedora/12

31
Jul

Kopete facebook-plugin for fedora

Finally, I have successfully ported and built this: http://aur.archlinux.org/packages.php?ID=26731 to fedora 11, RPMs and source are available from here.

I’m using an old source revision for the kopete-plugin, namely version 20090702-1 that the src.rpm will download from this site also as I did not know from where else I could get it.

You need to grab libqjson0-0.5.1-1.fc11.i586.rpm for it to work/install, and probably the devel package of the same if you want to build it.

libqjson0 packages are taken from the openSuSE build service and spec files are altered to match the fedora guidelines. I’m sure they’re not 100% compatible with that.

You might also need kde >= 4.3 RC for the kopete plugin to build. You can find instructions on how to enable the kde-unstable repository here.

kde4-oxygen-kopete-facebook1

note: mock will fail on the kopete-facebook-git*.src.rpm build due to missing libqjson0, it can’t find it, it is not in the repositories.

UPDATE: 64 bit rpms are now available for libqjson and kopete-facebook-git, also fixed a file permission error in kopete-facebook-git.

26
Jul

vbox-runner on fedora 11

I just built my first RPM for fedora! w000t!

In this post I will document the steps I took to make it build. I’ll start from the very beginning.

Tools used:
yum groupinstall "Development Tools"
yum install rpmdevtools

as stated here.

Then I installed rpmlint because I wanted to check on my .spec file to make sure it was in good condition, usage:
rpmlint -i specfile

Ran rpmbuild-setuptree which will create an “rpmbuild” directory in your $HOME directory. Underneath “rpmbuild” are a set of subdirectories (such as SPECS and BUILD), which you will use for creating your packages. The “rpmdev-setuptree” also creates an “~/.rpmmacros” file which will cause rpm and rpmbuild to use them when appropriate. /quote

Got the source from Kde-Look and put it in ~/rpmbuild/SOURCES, and then cd to ~/rpmbuild/SPECS folder and ran
rpmdev-newspec vbox-runner
This creates the file vboxrunner.spec file, that need to be edited to suit the program. Since I had no idea about how to install a package without a configure and/or make file (this one doesn’t) I grabbed another file from the archlinux user repositories (AUR), because I  have used that one before when I was using Archlinux, had a look at the PKGBUILD for clues of what to fill the spec file with.

This is the PKGBUILD:
Contributor: Jan Zitnik <jan@zitnik.org>
pkgname=vbox-runner
pkgver=0.2
pkgrel=1
arch=(i686 x86_64)
pkgdesc="Run Virtualbox machines in KRunner"
url="http://www.kde-look.org/content/show.php/VBox+Runner?content=107926"
license="GPL"
depends=('kdebase')
makedepends=('cmake' 'gcc' 'automoc4')
source=(http://www.kde-look.org/CONTENT/content-files/107926-vbox-runner-$pkgver.tar.gz)
md5sums=('0c9c34bed0001b17ee882a3764ef047d')

build() {
cd $startdir/src/vbox-runner-$pkgver
mkdir build
cd build

cmake ../ || return 1
make || return 1
make DESTDIR=$startdir/pkg install || return 1

And this is the vbox-runner.spec file before:
Name: test
Version:
Release: 1%{?dist}
Summary:

Group:
License:
URL:
Source0:
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:
Requires:

%description

%prep
%setup -q

%build
%configure
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc

%changelog
And the completed one, after I scratched my head a while:

Name: vbox-runner
Version: 0.2
Release: 1%{?dist}
Summary: Run Virtualbox machines in KRunner

Group: User Interface/Desktops
License: GPL
URL: http://www.kde-look.org/content/show.php/VBox+Runner?content=107926
Source0: http://www.kde-look.org/CONTENT/content-files/107926-vbox-runner-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: cmake gcc automoc4 kdebase-devel
Requires: kdebase

%description
vbox-runner is a plugin for krunner, virtualbox machines can be started directly from krunner with this plugin.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
cmake -DCMAKE_INSTALL_PREFIX=/usr
make install DESTDIR=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc
%{_libdir}/kde4/krunner_vbox.so
%{_datadir}/kde4/services/*.desktop
%{_datadir}/pixmaps/*

%changelog
* Sun Jul 26 2009 Magnus Tuominen magnus.tuominen@gmail.com 0.2-1
- Initial RPM for fedora.

The build will complain about some rpath issue with krunner_vbox.so so it has to be built with these options:
QA_RPATHS=$[0x0001|0x0010 ] rpmbuild -ba vbox-runner.spec
otherwise it will fail with this error message:
ERROR 0001: file '/usr/lib/kde4/krunner_vbox.so' contains a standard rpath '/usr/lib' in [/usr/lib:/usr/lib/kde4/devel]
error: Bad exit status from /var/tmp/rpm-tmp.gL6Psw (%install)

The result is this:

krunner-fedora

Pretty sweet huh?

You can grab the RPMs with the source from here.

http://rubbad.com/files/fedora/11/

Remember, all commands are to be run as user, except for the installation of the tools part, do NOT run these as root, ever!
Many thanks to Konqui and Jan Zitnik, whom without this would never had been built..
That's all folks! Comments and pointers appreciated, this is my first attempt at building RPMs after all, and I'm sure there are some things that could have been done differently?
UPDATE: version 0.2-2 is done, I fixed the issue with rpath and rebuilt the rpm according to the fedora package guidelines.
Added

chrpath --delete %{buildroot}%{_libdir}/kde4/krunner_vbox.so to the %install section in the spec file.
UPDATE2 version 0.2-3: addedd

%doc, %post, %postun and %find_lang to spec file.

UPDATE3 (heh) version 0.2-4 is done, now rpmlint and mock are really happy.
some changes to spec file to make rpmlint and mock happy.

8
Jul

VirtualBox 3.0 in Fedora 11

How to get VirtualBox 3.0 installed with USB support on Fedora 11.

We need to install a little something to get the module to actually build before we install Virtualbox.

As root:

# yum install dkms kernel-devel make automake autoconf gcc

Then install VirtualBox:

32bit:

# rpm -Uhv http://download.virtualbox.org/virtualbox/3.0.0/VirtualBox-3.0.0_49315_fedora11-1.i586.rpm

64bit

# rpm -Uhv http://download.virtualbox.org/virtualbox/3.0.0/VirtualBox-3.0.0_49315_fedora11-1.x86_64.rpm

Right, now for the usb part. Got to find out the Group ID for vboxusers now. Go to Administration -> Users and Groups.

Remeber the Group ID of vboxusers.

Remeber the Group ID of vboxusers.

Select the vboxusers group and press properties, add yourself to this group.

Add yourself to this group.

Add yourself to this group.

Now we just have to add this little line to /etc/fstab

none /sys/bus/usb/drivers usbfs devgid=501,devmode=664 0 0

note that 501 was the Group ID for vboxusers, which you are a member of, this grants you usb inside VirtualBox.

Now, reboot and try out your virtual boxes!

Thanks to readysleep for the fstab info!

16
Jun

Fedora 11

This is a short howto get the Nvidia drivers and multimedia stuff installed on your new Fedora 11.
I assume you have a newly installed system before following this. The first thing you want to do before you run

`yum update`

is to install yum-presto:

`yum install yum-presto`,

and save some time and bandwidth. Next up is to install dkms and the devel package for your running kernel,type in

`uname -r`

in your terminal, and if there is no PAE in there install kernel-devel:

`yum install kernel-devel`

Otherwise install kernel-PAE-devel:

`yum install kernel-PAE-devel`

Then run  yum update, and when that’s done, reboot.

Nvidia drivers, for this we need to enable the RPMfusion repositories:

`rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm`.

Then install the driver, I use the akmod-nvidia package which builds the required module on reboot:

`yum install akmod-nvidia xorg-x11-drv-nvidia-libs.i586 xorg-x11-drv-nvidia-libs.x86_64`,

then reboot.

When you get back you can go to http://www.adobe.com and download the yum flash-plugin for fedora, or click here and install:

`http://get.adobe.com/flashplayer/thankyou/?installer=Flash_Player_10_for_Linux_(YUM)`

The multimedia stuff is next:

`yum install flash-plugin  gstreamer-ffmpeg gstreamer-plugins-good gstreamer-plugins-bad gstreamer-plugins-ugly xine-lib-extras-freeworld gecko-mediaplayer`

That’s that, you should now be able to enjoy all of the webs offerings!

Credit where credit is due: Leigh on fedoraforums for an excellent Nvidia howto: http://forums.fedoraforum.org/showthread.php?t=204752

30
Nov

Fedora 10 Multimedia

This post is to help set up multimedia on your freshly installed Fedora 10. What we want to do is get all of the webs multimedia to play on our system and install the necessary drivers for our graphics card. I have an old Nvidia 6200 card here, so I’ll use that one as an example.

First we need to enable the repository for RPMFusion.org as it contains everything we need.

Paste this in the terminal:

su -c 'rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm'

That command installs the RPMFusion repository for you.
Now the codecs we need:

yum install gstreamer-ffmpeg gstreamer-plugins-good
gstreamer-plugins-bad gstreamer-plugins-ugly
gecko-mediaplayer mozilla-vlc xine-plugin xine-lib-extras
xine-lib-extras-freeworld libquicktime x264 xvidcore

Adobe's Flash Plugin:
su -c 'rpm -Uvh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm'
yum install flash-plugin

Nvidia driver:
yum install kmod-nvidia
(not necessary as the 6200 is supported outofthebox™ it seems)

All done!

6
Nov

Fedora 10 Preview

Yesterday I installed the preview release of Fedora 10. I am disapointed; the most needed things, for me anyway, would be to have multimedia support of some kind. My mp3s are a no go, mplayerplug-in doesn’t exist, same with mozilla-plugin-vlc. No quicktime either? What is this?
All of this did work with snapshot 3 earlier, so my guess is that the guys at Rpmfusion are rebuilding their stuff or something. Other than that it feels pretty solid, stable and it is fast. Windows open instantly, there is no lag, haven’t tested 3d yet, other than glxinfo | grep direct gives me a positive answer, but enabling the desktop effects shows nothing but grayed out windows. This is with and Nvidia 7600GT graphics card. I am going back to Ubuntu until this release matures a little bit more, and I will check back later.

Bad Behavior has blocked 16 access attempts in the last 7 days.