From Bugzilla Helper: User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1 Description of problem: Attached is a .spec file that has been tested on UP,SMP i386/i686 machines as root and as users to successfully build kadischi rpms,srpms from CVS. (January 12 2006) Version-Release number of selected component (if applicable): kadischi How reproducible: Always Steps to Reproduce: 1. rpmbuild -ba SPECS/kadischi.spec 2. 3. Additional info:
Created attachment 123144 [details] Kadischi RPM,SRPM .spec file Kadischi RPM,SRPM .spec file
Comment on attachment 123144 [details] Kadischi RPM,SRPM .spec file >Name: kadischi >Summary: Kadischi - LiveCD tool for Fedora Core Systems >Version: 0.0 >Release: 1 >License: GPL >Group: Development/Tools >URL: http://fedoraproject.org/wiki/Kadischi >Source0: %{name}-%{version}.tar.bz2 >Patch0: newrpms-kadischi-userbuild.patch >Requires: python anaconda busybox-anaconda syslinux mkisofs >Requires: zisofs-tools e2fsprogs >BuildRequires: kudzu-devel >BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} > >%description >Kadischi - Fedora Core LiveCD generation tool > >%prep >%setup -q -n %{name} >%patch0 -p0 > >%build >glib-gettextize --copy --force >intltoolize --copy -f --automake >aclocal -I . >autoconf >automake --add-missing --copy >%configure >make > >%install >rm -rf %{buildroot} >make DESTDIR=%{buildroot} install > >### redundant >rm -rf %{buildroot}%{_datadir}/%{name}/doc/* > >### touch known %ghosts >touch %{buildroot}%{_datadir}/%{name}/lib/shvar.pyc >touch %{buildroot}%{_datadir}/%{name}/lib/functions.pyc > > >%clean >rm -rf %{buildroot} > >%files >%defattr(-,root,root) >%doc doc/CREDITS doc/FAQ doc/INSTALL doc/NEWS doc/README doc/TODO >%{_bindir}/%{name} >%dir %{_sysconfdir}/%{name} >%config %{_sysconfdir}/%{name}/build.conf >%config %{_sysconfdir}/%{name}/buildstamp >%dir %{_datadir}/%{name} >%{_datadir}/%{name}/*.sh >%{_datadir}/%{name}/*.py >%{_datadir}/%{name}/lib/*.py >%ghost %{_datadir}/%{name}/lib/*.pyc >%{_datadir}/%{name}/post_install_scripts/*.sh >%{_datadir}/%{name}/post_install_scripts/*.py >%{_datadir}/%{name}/initrd/find-live-cd >%{_datadir}/%{name}/ks_examples/minimal-livecd.cfg >%{_datadir}/%{name}/initrd/livecd-linuxrc >%{_datadir}/%{name}/patches/*.patch >%{_datadir}/%{name}/install/readonly-root >%{_datadir}/%{name}/install/rc.readonly-livecd >%{_datadir}/%{name}/install/readonly-halt >%{_datadir}/%{name}/install/scanswap > >%changelog >* Fri Jan 13 2006 Jasper Hartline <jasperhartline> >- Cleaned up %files (again) >- Added BuildRequires > > >* Thu Jan 12 2006 Jasper Hartline <jasperhartline> >- Fixed incorrect URL in .spec >- Fixed missing %ghosts > > >* Thu Jan 12 2006 Rudolf Kastl <che666> >- added patch to make it install clean >- cleaned up file section >- removed explicit requires >- fixed the pre build part and proper use of macros > > >* Mon Jan 9 2006 Jasper Hartline <jasperhartline> >- Built Kadischi rpm package (Initial Build)
Nevermind that noise. Here is the specfile attached below, cleaned up a bit. This builds as a user or as root, default Fedora Core rpmbuild environements.
Created attachment 123158 [details] Kadischi .spec for rpmbuild
Well done Jasper, I just put the peices together and managed to build as non-root. Well done. I might see if I can get CVS access and add the spec and the patch from Bugzilla 177649.
Below is the spec I believe that should go to CVS, that or with some changes, doesn't matter, but it needs to get there. Users need a .spec.
Created attachment 123235 [details] Kadischi RPM specfile This adds functionality by eliminating the ash shell dependancy which isn't needed to build or run kadischi. The ash script livecd-linuxrc is only needed during bootstrap of the LiveCD.
Created attachment 123545 [details] Kadischi RPM speccfile for CVS This adds functionality by including the kadischi-nokernel.patch which for some resulted in no kernel being installed.
Created attachment 123754 [details] kadischi.spec The specfile includes kadischi.py.patch which fixes numerous things in kadischi.py and allows for parallelism if resources are available.
Created attachment 125469 [details] Kadischi rpmbuild .spec file
CVS commited