On 06/02/11 13:49, jdd wrote:
Le 02/06/2011 22:43, JD a écrit :

I downloaded the source rpm as you suggested.
I had to modify the spec file to suit fedora AFA Required packages are
concerned,
and it built just fine.
this is extremely good. You should inform of this the obs maintainer,
it may be able to add fedora to his build target with your patch!!
this is opensource :-)))

jdd

I am not sure who the obs maintainer is.
I am subscribed to the fedora users group.
From all the posts and responses I have seen,
I gather they are not very amenable to such
suggestions.
If you wish to submit the changes to the
Fedora/Redhat/Centos/Scientific Linux/ distros,
please feel free to do so.
I attach the modified vdfuse.spec to the messages.

Cheers,

JD


#
# spec file for package vdfuse (Version 8.2)
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/

# norootforbuild

Name:               vdfuse
Summary:            Application for mounting vdi images
Version:            8.2
Release:            4.16
License:            GPL v3 only
Group:              System/Filesystems
BuildRoot:          %{_tmppath}/%{name}-%{version}-build
AutoReqProv:        yes
#yes only forum
Url:                http://forums.virtualbox.org/viewtopic.php?f=7&t=17574

BuildRequires:      VirtualBox-4.0
#no need for kmp to build
#!BuildIgnore:      virtualbox-host-kmp virtualbox-kmp kmp(virtualbox) 
virtualbox-ose-kmp virtualbox-ose-host-kmp kmp(virtualbox-ose)
BuildRequires:      fuse-devel
BuildRequires:      gcc
BuildRequires:      pkgconfig

#we need includes from virtualbox-ose
Source0:            VirtualBox-4.0.4-include-only.tar.bz2
#and of cource source code :)
Source1:            vdfuse-v82.c
#script to extract includes from virtualbox sources
#Source0:            virtualbox-patch-source
Patch0:             vdfuse-vbox4.0.patch

%description
This program presents a virtual disk as a Filesystem in User Space (FUSE).
The separate partitions appear as block files Partition1, ... under the mount 
point. 
You can then mount any or all of the partitions as a Loop Device. If you use 
the 
readonly flag then these files are readonly and the partitions themselves can 
only be mounted readonly.

%prep
%setup -n VirtualBox-4.0.4_OSE
%__cp %{SOURCE1} .
%patch0

%build
export LD_LIBRARY_PATH=/usr/lib/virtualbox/
gcc vdfuse-v82.c -o %{name} \
`pkg-config --cflags --libs fuse` \
-I./include \
-Wl,-rpath,/usr/lib/virtualbox/ \
-l:/usr/lib/virtualbox/VBoxDD.so \
-l:/usr/lib/virtualbox/VBoxDD2.so \
-l:/usr/lib/virtualbox/VBoxDDU.so \
-Wall $RPM_OPT_FLAGS


%install
%__install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
%__install -m 755 -p %{name} $RPM_BUILD_ROOT%{_bindir}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}

%changelog
* Sat Feb 26 2011 [email protected]
- Update VirtualBox sources to 4.0.4
* Tue Jan  4 2011 [email protected]
- Update to v82
- Add patch for Virtualbox 4.0.0 compatibility
* Sun Apr 25 2010 [email protected]
- Build against VirtualBox OSE 3.1.6
* Fri Feb 26 2010 [email protected]
- Update to v70
  * minor compile-time bug fix: VBOX_SUCCESS was removed from the trunk source; 
replace with RT_SUCCESS
* Fri Aug 21 2009 [email protected]
- initial openSUSE package
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Discover what all the cheering's about.
Get your free trial download today. 
http://p.sf.net/sfu/quest-dev2dev2 
_______________________________________________
VBox-users-community mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vbox-users-community

Reply via email to