 |
 |
 |
 |
| Fedora Focus Come in and have a general chat about Fedora and things relating to Fedora. |

2nd January 2006, 02:04 PM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
|
Adding Metisse to fedora extras
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/showth...544#post428544
Quote:
|
Originally Posted by Finalzone
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
Quote:
|
Originally Posted by Finalzone
- spec filename does not have versionning i.e. it should not be metisse04.0.spec. Simply name it metisse.spec.
|
Done
Quote:
|
Originally Posted by Finalzone
- 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
Quote:
|
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
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
Last edited by fedorajim; 2nd January 2006 at 02:14 PM.
|

2nd January 2006, 06:43 PM
|
 |
Community Manager
|
|
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,365

|
|
|
- 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.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
|

2nd January 2006, 08:52 PM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
after the changes I am unable to build possible goof up on my part
Quote:
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
Quote:
#!/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
Quote:
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
|
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
Last edited by fedorajim; 2nd January 2006 at 08:55 PM.
|

2nd January 2006, 10:29 PM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
|
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?
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

3rd January 2006, 09:48 AM
|
 |
Community Manager
|
|
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,365

|
|
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.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
|

4th January 2006, 05:46 PM
|
 |
Community Manager
|
|
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,365

|
|
|
Also change the Release line for both wm-icons and nucleo with Release: X%{?dist} where X is the number of release.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
|

4th January 2006, 10:33 PM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
|
will upload them in a few then submit them after that its all up to who ever wants to maintain them!
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

5th January 2006, 07:04 PM
|
 |
Community Manager
|
|
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,365

|
|
|
If there is no taker, I will maintain metisse and other dependant packages.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
Last edited by Finalzone; 5th January 2006 at 07:10 PM.
|

6th January 2006, 10:06 PM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
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/Packag...098e1560667de6
* 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/Mentor...310f18002412ce
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

6th January 2006, 11:27 PM
|
 |
Community Manager
|
|
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,365

|
|
Quote:
|
Originally Posted by fedorajim
|
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>"
Quote:
|
* Desirable features need extra BuildRequires: jpeg, png, opengl support, etc.
|
You need to add devel packages in that line. See above about yum-builddep
Quote:
|
* 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.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
|

7th January 2006, 02:47 AM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
the yum-builddep
can you provide a example?
Quote:
[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
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

7th January 2006, 03:01 AM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
|
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.
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

7th January 2006, 03:12 AM
|
 |
Retired Community Manager & Avid Drinker Of Suds
|
|
Join Date: Feb 2005
Location: Rochester NY
Age: 38
Posts: 4,176

|
|
Ok solved the mock thing had to log off and back in
ok this is what I get from mock
Quote:
[jim@notebook ~]$ mock /home/jim/rpmbuild/SRPMS/*.rpm
init
clean
prep
|
just sits after the prep and ramps up my processor a few times
__________________
Registered Linux User: #376813
Western NY
My linux site
Smolt Profile
please remember to say if you problem was solved
Did you get your id10t award today?
|

7th January 2006, 07:27 AM
|
 |
Community Manager
|
|
Join Date: Mar 2004
Location: Vancouver, Canada
Posts: 2,365

|
|
It takes times. mock will let you know if the built was succesful or not. Result is on /var/log/mock/fedora-4/result/.
Quote:
|
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.
__________________
Desktop CPU: AMD Phenom II(tm) X4 Processor 940 AM2+ - Memory: 8GB DDR2-RAM - GPU: Nvidia Geforce GTX 460 v2 - OS: Fedora 18 Spherical Cow x86-64 and Windows 7 Ultimate SP1 64-bit
Laptop Toshiba Satellite C650D - OS: Fedora 19 Schrödinger's Cat (preview release) x86-64 and Microsoft Windows 7 64-bit
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Current GMT-time: 03:57 (Sunday, 19-05-2013)
|
|
 |
 |
 |
 |
|
|