PDA

View Full Version : Adding Metisse to fedora extras


jim
2nd January 2006, 02:04 PM
Stating this thread because i didn't want to fill up the other thread with info not pertaining to metisse being added to fedora extras.

So to recap

From Post # 149 http://forums.fedoraforum.org/showthread.php?p=428544#post428544



Fedorajim,

I started to review package, some comments:
- On Release line, add %{?dist} which means a suffix for future version of Fedora i.e. fc4. Read PackageNameGuideline and PackageGuidelines

when I do this it
A fails to build says empty string
A placed a 1 before the %{?dist} and no version was placed in the rpms name

- spec filename does not have versionning i.e. it should not be metisse04.0.spec. Simply name it metisse.spec.

Done

- Make sure you have rpmlint or mock installed.

I install rpmlint

here http://fedoraproject.org/wiki/Docs/...ngPackagesGuide
he uses a different method for a release tag
Also, put a "tag" in the release to help show where the package comes from. Then follow it with the actual release in the sequence of packages that you may eventually release.

attached latest spec file used

Finalzone
2nd January 2006, 06:43 PM
- Add desktop-file-utils on BuildRequires
- Add %{?_smp_mflags} after %{__make}
- Add %find_lang %{name} after %{__install} -D -m 755 %{SOURCE2}
$RPM_BUILD_ROOT/etc/X11/dm/Sessions/metisse.desktop

- On %files line, add -f %{name}.lang
- Add %doc AUTHORS COPYING ChangeLog NEWS README under %defattr(-,root,root,-)


Since nuceo and wm-icons are not available in Extras repository, they should be submitted for review as well.

jim
2nd January 2006, 08:52 PM

after the changes I am unable to build possible goof up on my part

make[1]: Leaving directory `/home/jim/rpmbuild/BUILD/metisse-0.4.0'
+ rm -rf /var/tmp/metisse-0.4.0-1-root-jim/var/tmp
+ /usr/bin/install -D -m 755 /home/jim/rpmbuild/SOURCES/metisse-session /var/tmp /metisse-0.4.0-1-root-jim/usr/bin/metisse-session
+ /usr/bin/install -D -m 755 /home/jim/rpmbuild/SOURCES/metisse.desktop /var/tmp /metisse-0.4.0-1-root-jim/etc/X11/dm/Sessions/metisse.desktop
+ /usr/lib/rpm/redhat/find-lang.sh /var/tmp/metisse-0.4.0-1-root-jim metisse
No translations found for metisse in /var/tmp/metisse-0.4.0-1-root-jim
error: Bad exit status from /var/tmp/rpm-tmp.93398 (%install)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.93398 (%install)
[jim@notebook SPECS]$

From the error
#!/bin/sh

RPM_SOURCE_DIR="/home/jim/rpmbuild/SOURCES"
RPM_BUILD_DIR="/home/jim/rpmbuild/BUILD"
RPM_OPT_FLAGS="-O2 -g -pipe -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables"
RPM_ARCH="i386"
RPM_OS="linux"
export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS
RPM_DOC_DIR="/usr/share/doc"
export RPM_DOC_DIR
RPM_PACKAGE_NAME="metisse"
RPM_PACKAGE_VERSION="0.4.0"
RPM_PACKAGE_RELEASE="1"
export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE
RPM_BUILD_ROOT="/var/tmp/metisse-0.4.0-1-root-jim"
export RPM_BUILD_ROOT


set -x
umask 022
cd /home/jim/rpmbuild/BUILD
cd metisse-0.4.0
LANG=C
export LANG
unset DISPLAY

/usr/bin/make DESTDIR=$RPM_BUILD_ROOT prefix=/usr install
rm -rf $RPM_BUILD_ROOT/var/tmp
/usr/bin/install -D -m 755 /home/jim/rpmbuild/SOURCES/metisse-session $RPM_BUILD_ROOT/usr/bin/metisse-session
/usr/bin/install -D -m 755 /home/jim/rpmbuild/SOURCES/metisse.desktop $RPM_BUILD_ROOT/etc/X11/dm/Sessions/metisse.desktop
/usr/lib/rpm/redhat/find-lang.sh /var/tmp/metisse-0.4.0-1-root-jim metisse



/usr/lib/rpm/find-debuginfo.sh /home/jim/rpmbuild/BUILD/metisse-0.4.0



/usr/lib/rpm/redhat/brp-compress

/usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip
/usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump




SPEC file

Name : metisse
Version : 0.4.0
Release : 2%{?dist}

License : GPL
Summary : Metisse a 3D X Desktop
Group : User Interface/Desktops

URL : http://insitu.lri.fr/~chapuis/metisse/
Vendor : In Situ research project
Packager : James Lawrence <fedorajim@gmail.com>

Buildroot : %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0 : %{name}-%{version}.tar.gz
Source1 : metisse-session
Source2 : metisse.desktop

BuildRequires : nucleo >= 0.5, desktop-file-utils
Requires : nucleo >= 0.5, wm-icons >= 0.3.0
AutoReq : no

%description
Metisse is an experimental X desktop with some OpenGL capacity. It
consists of a virtual X server called Xwnc, a special version of FVWM,
and a FVWM module FvwmAmetista. Xwnc is a mix of Xvnc and XDarwin. It
draws nothing on your screen; everything is drawn into
pixmaps. Similarly to Xvnc, but with a different protocol, Xwnc can
send these pixmaps (and other information) to a "viewer". FvwmAmetista
is such a viewer; it uses OpenGL for rendering the X desktop into a
window of a "regular" 3D accelerated X server.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%build
./configure --prefix=/usr --mandir=/usr/share/man
%{__make}
%{?_smp_mflags}

%install
%{__make} DESTDIR=$RPM_BUILD_ROOT prefix=/usr install
rm -rf $RPM_BUILD_ROOT/var/tmp
%{__install} -D -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/metisse-session
%{__install} -D -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/X11/dm/Sessions/metisse.desktop
%find_lang %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
################################################## ###
# defattr sets the default attributes for all files
################################################## ###
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_datadir}/*
%{_libexecdir}/*
/etc/X11/dm/Sessions/metisse.desktop

%changelog
* Mon Jan 02 2006 James Lawrence <fedorajim@gmail.com> 0.4.0-2.FC4
- modified spec file
* Sat Dec 31 2005 James Lawrence <fedorajim@gmail.com> 0.4.0-1.FC4
- rebuilt for FC4
- Rebuilt with source files 07-12-2005

* Thu Oct 07 2004 Thomas Chung <tchung@fedoranews.org> 0.3.3-2.FC2
- Add metisse-session in /usr/bin/metisse-session
- Add metisse.desktop in /etc/X11/dm/Session/metisse.desktop

* Mon Oct 04 2004 Thomas Chung <tchung@fedoranews.org> 0.3.3-1.FC2
- Clean up spec
- Rebuild for FC2

* Sun Jun 29 2004 Olivier Chapuis <chapuis@lri.fr> 0.3.3-0
- First try at making the package

jim
2nd January 2006, 10:29 PM
i was able to build again after commenting out

%find_lang %{name} which was under the %install

-f %{name}.lang which was under the %files section

is this going to be a problem?

Finalzone
3rd January 2006, 09:48 AM
It shoud not be a problem as there is no translation file for metisse.
I forgot to mention that when porting packages to Extras repository, Vendor and Packager lines are not required
since the %changelog already displayed packager name and %doc contain the name of Vendors and developers.
Since Application menu won't contain Metisse shorcut, remove "desktop-file-utils".

Once you fixed these issues, submit these packages for review (https://bugzilla.redhat.com/bugzilla/enter_bug.cgi?product=Fedora%20Extras&format=extras-review).

Finalzone
4th January 2006, 05:46 PM
Also change the Release line for both wm-icons and nucleo with Release: X%{?dist} where X is the number of release.

jim
4th January 2006, 10:33 PM
will upload them in a few then submit them after that its all up to who ever wants to maintain them!

Finalzone
5th January 2006, 07:04 PM
If there is no taker, I will maintain metisse and other dependant packages.

jim
6th January 2006, 02:23 AM
Bug 177080 Submitted: Review Request: metisse
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=177080

Bug 177081 Submitted: Review Request: nucleo
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=177081

Bug 177082 Submitted: Review Request: wm-icons
https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=177082


Here ya are! submitted

jim
6th January 2006, 10:06 PM
Nucleo

Needswork:
* Package needs additional BuildRequires. Fails to build in Mock. Refer to
http://fedoraproject.org/wiki/Projects/Mock
* Desirable features need extra BuildRequires: jpeg, png, opengl support, etc.
* Buildroot lacks certain elements. Refer to
http://fedoraproject.org/wiki/PackagingGuidelines#head-c2cfbc6be2860c5d2634d06714098e1560667de6
* Specified Source URL is not canonical
* License is LGPL, not GPL.
* Some directories need to be owned by this package
* As Luya stated in comment #1, drop the .FC4 fromn the Release tag.
* Drop the Packager, Vendor, and AutoReqProv tags.

NOTE:
This is only an initial look, but there are quite a few items that need to be
corrected, before this can be approved. I would suggest reading all the
packaging information at the wiki, because new contributors need to show
knowledge of the Fedora Extras packaging process before they will be sponsored.
If you have additional questions that the wiki doesn't provide answers to, I
would suggest contacting one of the projects mentors.

http://fedoraproject.org/wiki/Extras
http://fedoraproject.org/wiki/Mentors#head-d2eb2f28b87db88601c40276b4310f18002412ce

Finalzone
6th January 2006, 11:27 PM
Nucleo

Needswork:
* Package needs additional BuildRequires. Fails to build in Mock. Refer to
http://fedoraproject.org/wiki/Projects/Mock
mock is very useful because it verifies if the package will succesfully build.
To check about more package that needs to be inc BuildRequires, first install yum-utils.
Then use "yum-builddep </path/specfile>"

* Desirable features need extra BuildRequires: jpeg, png, opengl support, etc.
You need to add devel packages in that line. See above about yum-builddep


* Specified Source URL is not canonical
Source URL started with http://insitu.lri.fr/~chapuis/software/metisse/

Follow the other steps to imporve specs. It is a bit challenging but worth the effort.

jim
7th January 2006, 02:47 AM
the yum-builddep
can you provide a example?
[jim@notebook SPECS]$ sudo yum-builddep nucleo.spec
Setting up repositories
Error: No Package Matching nucleo.spec.src

the above is obvious because you wont find nucleo in a repo



FYI i have removed the FC4 from he release line in all of the spec files but when the rpms are built, the rpm name doesn't reflect that thay are built for FC4

jim
7th January 2006, 03:01 AM
as for mock just to get a help file it stats you need to be apart of the mock group.
so I added myself to the "mock" group and still get the same thing.

jim
7th January 2006, 03:12 AM
Ok solved the mock thing had to log off and back in

ok this is what I get from mock
[jim@notebook ~]$ mock /home/jim/rpmbuild/SRPMS/*.rpm
init
clean
prep


just sits after the prep and ramps up my processor a few times

Finalzone
7th January 2006, 07:27 AM
It takes times. mock will let you know if the built was succesful or not. Result is on /var/log/mock/fedora-4/result/.

FYI i have removed the FC4 from he release line in all of the spec files but when the rpms are built, the rpm name doesn't reflect that thay are built for FC4
Don't worry about that. Once you will put these packages in CVS Extras, you will have choice to build on FC4 or devel.

Finalzone
7th January 2006, 07:32 AM
the yum-builddep
can you provide a example?

the above is obvious because you wont find nucleo in a repo



My bad! yum-builddep is used with SRPM package.

jim
7th January 2006, 02:05 PM
[jim@notebook ~]$ sudo yum-builddep /home/jim/rpmbuild/SRPMS/*.rpm
Setting up repositories
Nothing to do
[jim@notebook ~]$

jim
7th January 2006, 02:35 PM
ok with mock after 35 minutes

[jim@notebook ~]$ mock -r fedora-4-i386-core --resultdir=mock-nucleo-0.5.0.3 /home/jim/rpmbuild/SRPMS/*.rpm
init
clean
prep
setup
build

ending
done
[jim@notebook ~]$

so it created another srpm in the var/lib/mock/.... directory I thought mock was there to build the rpms "cleanly"

jim
7th January 2006, 02:48 PM
appears that it built another src.rpm
So I have built wm-icons with mock

jim
7th January 2006, 03:08 PM
So it appears that nucleo will not build under mock

from the end of the log

../../../nucleo/gl/texture/glTexture.H: At global scope:
../../../nucleo/gl/texture/glTexture.H:30: error: ISO C++ forbids declaration of 'GLUtesselator' with no type
../../../nucleo/gl/texture/glTexture.H:30: error: expected ';' before '*' token
../../../nucleo/gl/texture/glTexture.H:40: error: 'GLint' does not name a type
../../../nucleo/gl/texture/glTexture.H:49: error: 'GLint' does not name a type
../../../nucleo/gl/texture/glTexture.H:66: error: 'GLint' has not been declared
../../../nucleo/gl/texture/glTexture.H:66: error: 'GLint' has not been declared
../../../nucleo/gl/texture/glTexture.H:92: error: 'GLdouble' does not name a type
../../../nucleo/gl/texture/glTexture.H:93: error: expected `)' before 'x'
../../../nucleo/gl/texture/glTexture.H: In member function 'void nucleo::glTexture::setFilters(int, int)':
../../../nucleo/gl/texture/glTexture.H:67: error: 'minFilter' was not declared in this scope
../../../nucleo/gl/texture/glTexture.H:68: error: 'magFilter' was not declared in this scope
make[4]: *** [ImageSink.lo] Error 1
make[4]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo/image/sink'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo/image'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.67118 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.67118 (%build)

Finalzone
7th January 2006, 07:08 PM
What packages provide GLUtesselator and GLint?
Possibly they might be some problem with source Nucleo. You should contact the author.
If wm-icons is uccesfully by mock, make sure the spec is Fedora Extras standard compliant.

jim
7th January 2006, 09:45 PM
Unable to build metisse && nucleo in mock

A search for GLUtesselator rpm yeilds mesa

xorg-x11-Mesa-libGLU-6.8.2-37.FC4.49.2
xorg-x11-Mesa-libGL-6.8.2-37.FC4.49.2
http://download.fedora.redhat.com/pub/fedora/linux/core/4/i386/os/Fedora/RPMS/
the above 2 packages are core rpms which means why is mock failing?

Finalzone
8th January 2006, 06:13 AM
Could you submit your mock results for both metisse and nucleo?

jim
8th January 2006, 02:56 PM
here ye be ~!

Finalzone
10th January 2006, 10:44 PM
Focusing on nucleo, it seems devel packages for OpenGL are missing on BuildRequires.
I think you should review the spec files to include these dependencies. Look what devel packages provide OpenGL functions and add them on BuildRequires. Also send a copy of your progress on bugzilla so other reviewers will assist you.

jim
11th January 2006, 02:50 AM
sent a email to the author of nucleo hopefully I'll hear back!

jim
11th January 2006, 02:55 AM
For those who are interested here is the bottom have of the build log

../../../nucleo/gl/texture/glTexture.H:40: error: 'GLint' does not name a type
../../../nucleo/gl/texture/glTexture.H:49: error: 'GLint' does not name a type
../../../nucleo/gl/texture/glTexture.H:66: error: 'GLint' has not been declared
../../../nucleo/gl/texture/glTexture.H:66: error: 'GLint' has not been declared
../../../nucleo/gl/texture/glTexture.H:92: error: 'GLdouble' does not name a type
../../../nucleo/gl/texture/glTexture.H:93: error: expected `)' before 'x'
../../../nucleo/gl/texture/glTexture.H: In member function 'void nucleo::glTexture::setFilters(int, int)':
../../../nucleo/gl/texture/glTexture.H:67: error: 'minFilter' was not declared in this scope
../../../nucleo/gl/texture/glTexture.H:68: error: 'magFilter' was not declared in this scope
make[4]: *** [ImageSink.lo] Error 1
make[4]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo/image/sink'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo/image'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/nucleo-0.5/nucleo'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.67118 (%build)

jim
13th January 2006, 12:27 AM
After using your spec file i still fail at configure


++ find . -name config.guess -o -name config.sub
+ ./configure --build=i686-redhat-linux-gnu --host=i686-redhat-linux-gnu --target=i386-redhat-linux-gnu --program-prefix= --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/usr/com --mandir=/usr/share/man --infodir=/usr/share/info
/var/tmp/rpm-tmp.13401: line 34: ./configure: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.13401 (%build)


RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.13401 (%build)
[jim@notebook SPECS]$

jim
13th January 2006, 12:31 AM
First
rpmbuild -bs nucleo.spec
here is the mock comamnd i was using
mock -r fedora-4-i386-core --resultdir=mock-NUCLEO-0.5.0-4 /home/jim/rpmbuild/SRPMS/*.rpm

Finalzone
13th January 2006, 12:40 AM
Which nucleo tarball version did you use. 0.5.0 or the fixed version you got from the author?
If it is a version started with 2006-01-12, change the source name first.

jim
13th January 2006, 12:54 AM
the version I have is the one he e-mailed to me but not posted on his site
had to rename the tar because of a - in the tar's name
updated spec


Name : nucleo
Version : 20060111
Release : 1%{?dist}

License : GPL
Summary : a toolking for exploring new uses of video
Group : Development/Tools

URL : http://insitu.lri.fr/~roussel/projects/nucleo/
BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot
Source : http://insitu.lri.fr/~roussel/software/src/%{name}-%{version}.tar.bz2

BuildRequires: freeglut-devel, libpng-devel, libjpeg-devel
BuildRequires: freetype-devel

%description
Núcleo is a toolking for exploring new uses of video and new human-computer interaction techniques.

%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 sets the default attributes for all files
################################################## ###
%defattr(-, root, root)
#%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/libNucleo.*
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/*

%changelog
* Mon Jan 02 2006 James Lawrence <fedorajim@gmail.com> 0.4.0-2.FC4
- using src supplied from author updated version
* Thu Jan 12 2006 Luya Tshimbalang <luya_tfz@thefinalzone.com) 0.5-3
- Enhanced spec file

* Mon Jan 02 2006 James Lawrence <fedorajim@gmail.com> 0.4.0-2.FC4
- Modified Spec file

* Sat Dec 31 2005 James Lawrence <fedorajim@gmail.com> 0.4.0-1.FC4
- rebuilt for FC4

* Mon Oct 04 2004 Thomas Chung <tchung@fedoranews.org> 0.1-1.fc2
- Clean up spec
- Rebuild for FC2

* Sun Jun 29 2004 Olivier Chapuis <chapuis@lri.fr> 0.1-0
- First try at making the package

jim
13th January 2006, 01:04 AM
here is showrc with rpmbuild anything look out of place?

jim
13th January 2006, 01:15 AM
Here is a link to the latest source and spec files
http://www.fedorajim.homelinux.com/rpms/src/

Finalzone
13th January 2006, 01:32 AM
It seemsto me the error come from the tarball itself. The other version (0.5) doesn't have an error of ./configure. Either create a patch for this issue or contact the author to fix the issue will all the error you had when building package.

jim
13th January 2006, 01:38 AM
It seemsto me the error come from the tarball itself. The other version (0.5) have an error of ./configure.
yup it did

as far as writing a patch never done it

ill send him a e-mail so he can see whats going on

Finalzone
13th January 2006, 01:59 AM
I just noticed that , for some reason, configure was not created when trying to rebuild from spec.
Also add "libexif-devel' under BuildRequires.

jim
13th January 2006, 10:20 AM
after adding that dependencie,

I dont have it installed
dropping the -devel and trying again still results in a configure error

jim
23rd January 2006, 10:29 AM
well i finnally recieved a response back from the author of nucleo. askd be to run a command in the source dir of nucleo. after that I was able to build it no problem. as for mock though it still fails. At least were getting closer than before

here is the end of the build error

../../../nucleo/gl/texture/glTexture.H:30: error: ISO C++ forbids declaration of 'GLUtesselator' with no type
../../../nucleo/gl/texture/glTexture.H:30: error: expected ';' before '*' token
../../../nucleo/gl/texture/glTexture.H:40: error: 'GLint' does not name a type
../../../nucleo/gl/texture/glTexture.H:49: error: 'GLint' does not name a type
../../../nucleo/gl/texture/glTexture.H:66: error: 'GLint' has not been declared
../../../nucleo/gl/texture/glTexture.H:66: error: 'GLint' has not been declared
../../../nucleo/gl/texture/glTexture.H:92: error: 'GLdouble' does not name a type
../../../nucleo/gl/texture/glTexture.H:93: error: expected `)' before 'x'
../../../nucleo/gl/texture/glTexture.H: In member function 'void nucleo::glTexture::setFilters(int, int)':
../../../nucleo/gl/texture/glTexture.H:67: error: 'minFilter' was not declared in this scope
../../../nucleo/gl/texture/glTexture.H:68: error: 'magFilter' was not declared in this scope
make[4]: *** [ImageSink.lo] Error 1
make[4]: Leaving directory `/builddir/build/BUILD/nucleo-20060111/nucleo/image/sink'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/builddir/build/BUILD/nucleo-20060111/nucleo/image'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/builddir/build/BUILD/nucleo-20060111/nucleo'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/builddir/build/BUILD/nucleo-20060111/nucleo'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.64008 (%build)


here is the SPEC file

Name : nucleo
Version : 20060111
Release : 2%{?dist}

License : GPL
Summary : a toolking for exploring new uses of video
Group : Development/Tools

URL : http://insitu.lri.fr/~roussel/projects/nucleo/
BuildRoot : %{_tmppath}/%{name}-%{version}-buildroot
Source : http://insitu.lri.fr/~roussel/software/src/%{name}-%{version}.tar.bz2

BuildRequires: freeglut-devel, libpng-devel, libjpeg-devel
BuildRequires: freetype-devel, libexif

%description
Núcleo is a toolking for exploring new uses of video and new human-computer interaction techniques.

%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 sets the default attributes for all files
################################################## ###
%defattr(-, root, root)
#%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_libdir}/libNucleo.*
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/*

%changelog
* Mon Jan 23 2006 James Lawrence <fedorajim@gmail.com> 20060111-2
- ran ./build-utils/bootstrap in the nucleo source dir to generatethe configure script.
* Thu Jan 12 2006 James Lawrence <fedorajim@gmail.com> 20060111-1
- using src supplied from author updated version
* Thu Jan 12 2006 Luya Tshimbalang <luya_tfz@thefinalzone.com) 0.5-3
- Enhanced spec file

* Mon Jan 02 2006 James Lawrence <fedorajim@gmail.com> 0.4.0-2.FC4
- Modified Spec file

* Sat Dec 31 2005 James Lawrence <fedorajim@gmail.com> 0.4.0-1.FC4
- rebuilt for FC4

* Mon Oct 04 2004 Thomas Chung <tchung@fedoranews.org> 0.1-1.fc2
- Clean up spec
- Rebuild for FC2

* Sun Jun 29 2004 Olivier Chapuis <chapuis@lri.fr> 0.1-0
- First try at making the package

Finalzone
24th January 2006, 09:29 PM
I looked at the installation documentation, and see this line:

cd ~/src/nucleo/
./build-utils/bootstrap # if the 'configure' script is not present already
cd ~/dst/
mkdir nucleo ; cd nucleo
~/src/nucleo/configure
make
su # if needed
make install


That probably explain why ./configure did not work nwhen rebuilding the package. I don't know how to set it on spec file so you should contact the author or a Fedora developer about that problem.

On this line

BuildRequires: freetype-devel, libexif

libexif should be named as libexif-devel to be conform to PackagingGuidelines (http://www.fedoraproject.org/wiki/PackagingGuidelines).

jim
25th January 2006, 01:20 AM
So you think that explainswhy nucleo didn't build in mock ? this is what I did

"ran "./build-utils/bootstrap" in the nucleo source dir to generate the configure
script. The source built for me with a a rpmbuild -ba nucleo.spec but was
unsucessfull with mock"

Finalzone did you grab the latest souces from my site ?

Finalzone
25th January 2006, 08:29 AM
So you think that explainswhy nucleo didn't build in mock ? this is what I did

"ran "./build-utils/bootstrap" in the nucleo source dir to generate the configure
script. The source built for me with a a rpmbuild -ba nucleo.spec but was
unsucessfull with mock"

Pratically, you need to make a patch to generate configure script. Here is a how-to guide about making a patch:
- http://www.rpm.org/RPM-HOWTO/build.html
- http://www.linux.com/howtos/RPM-HOWTO/build-it.shtml

Once you made that patch inside the SOURCE folder, update your spec file and your SPRMS. That should do the trick. If succesfull, we will focus on other dependant package like Metisse and wm-icons.

Finalzone
25th January 2006, 06:19 PM
I reviewed wm-icons once again. There is a lot of work to do as listed on
https://bugzilla.redhat.com/bugzilla/process_bug.cgi#c3

Don't feel discouraged. A lot of new maintainer went that way including myself. :)