Re: [Cooker] problem with .spec
On Thu, 16 Dec 1999, you wrote: > Kaixo! > > On Thu, Dec 16, 1999 at 07:34:02AM -0800, webmedic wrote: > > > + cd /var/tmp/bibletime-buildroot > > + find . -type d > > + sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > > + find . -type f > > + sed 's,^\.,\%attr(-\,root\,root) ,' -e '/\/etc\//s|^|%config|' -e >'/\/config\//s|^|%config|' > > sed: can't read s,^\.,\%attr(-\,root\,root) ,: No such file or directory > > Bad exit status from /var/tmp/rpm-tmp.8449 (%install) > > IMHO you should try to avoid using that find thing. There are a lot > of disadvantages: > > - you don't know what really is included and what not (backup files included > for nothing, etc) > - you include a lot of directories as owned by the package when that is > not correct (or you can forget some when they should be included) > - you can't tell, looking at the spec file; what the rpm will include > > > %install > > mkdir -p $RPM_BUILD_ROOT%{prefix} > > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/HTML/en/bibletime > > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/HTML/de/bibletime > > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/apps/bibletime/pics > > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/apps/bibletime/toolbar > > if the makefile is correctly written (it should be) none of that is needed. > The dirs are created at install time: for some reason the make file won't install the /dir or the files. I'm working right now on doing the install by hand. unless some one can suggest something better. > > > make install prefix=$RPM_BUILD_ROOT/%{prefix} > > > %files -f ../file.list.%{name} > > %defattr(-,root,root,0755) > > You should replace that with something like: > > %files > %defattr(-,root,root,0755) > %{prefix}/bin/* > %doc %{prefix}/share/doc/HTML/*/* > %{prefix}/share/apps/* > %{prefix}/share/applnk/Applications/*.kdelnk > %{prefix}/share/icons/*.* > %{prefix}/share/icons/mini/*.* > %{prefix}/share/locale/*/LC_MESSAGES/* > > -- > Ki ça vos våye bén, > Pablo Saratxaga > > http://www.ping.be/~pin19314/ PGP Key available, key ID: 0x8F0E4975 -- He must increase but I must decrease--- Holiness unto the Lord Name: Brook Humphrey E-Mail: [EMAIL PROTECTED] webmaster: thelinuxstop.com webmester: webmedic.net Owner: Mobile PC Medic
Re: [Cooker] problem with .spec
Kaixo! On Thu, Dec 16, 1999 at 07:34:02AM -0800, webmedic wrote: > + cd /var/tmp/bibletime-buildroot > + find . -type d > + sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > + find . -type f > + sed 's,^\.,\%attr(-\,root\,root) ,' -e '/\/etc\//s|^|%config|' -e >'/\/config\//s|^|%config|' > sed: can't read s,^\.,\%attr(-\,root\,root) ,: No such file or directory > Bad exit status from /var/tmp/rpm-tmp.8449 (%install) IMHO you should try to avoid using that find thing. There are a lot of disadvantages: - you don't know what really is included and what not (backup files included for nothing, etc) - you include a lot of directories as owned by the package when that is not correct (or you can forget some when they should be included) - you can't tell, looking at the spec file; what the rpm will include > %install > mkdir -p $RPM_BUILD_ROOT%{prefix} > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/HTML/en/bibletime > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/HTML/de/bibletime > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/apps/bibletime/pics > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/apps/bibletime/toolbar if the makefile is correctly written (it should be) none of that is needed. The dirs are created at install time: > make install prefix=$RPM_BUILD_ROOT/%{prefix} > %files -f ../file.list.%{name} > %defattr(-,root,root,0755) You should replace that with something like: %files %defattr(-,root,root,0755) %{prefix}/bin/* %doc %{prefix}/share/doc/HTML/*/* %{prefix}/share/apps/* %{prefix}/share/applnk/Applications/*.kdelnk %{prefix}/share/icons/*.* %{prefix}/share/icons/mini/*.* %{prefix}/share/locale/*/LC_MESSAGES/* -- Ki ça vos våye bén, Pablo Saratxaga http://www.ping.be/~pin19314/ PGP Key available, key ID: 0x8F0E4975
Re: [Cooker] problem with .spec
On Thu, 16 Dec 1999, you wrote: > On Thu, 16 Dec 1999, you wrote: > > > > Does it really refuse to create that many? nothing wrong with it just > > looks excessive to me. > Yes as far as I can tell I had to make them all manualy. The other problem is > that it isn't installing the files into the directories either. Just compiled and built. The problem is that none of the directories are made and none of the files are installed. After it made the rpm none of the compiled files are in it. > > > > > > make install prefix=$RPM_BUILD_ROOT/%{prefix} > > > > > > cd $RPM_BUILD_ROOT > > > find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \ > > > $RPM_BUILD_DIR/file.list.%{name} > > > > > > find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' \ > > > > find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \ > > That was it. > Thanks I'll try it. > > > MandrakeSoft http://www.mandrakesoft.com/ > > --Axalon > -- > He must increase but I must decrease--- > > Holiness unto the Lord > Name: Brook Humphrey > E-Mail: [EMAIL PROTECTED] > webmaster: thelinuxstop.com > webmester: webmedic.net > Owner: Mobile PC Medic -- He must increase but I must decrease--- Holiness unto the Lord Name: Brook Humphrey E-Mail: [EMAIL PROTECTED] webmaster: thelinuxstop.com webmester: webmedic.net Owner: Mobile PC Medic
Re: [Cooker] problem with .spec
On Thu, 16 Dec 1999, you wrote: > > Does it really refuse to create that many? nothing wrong with it just > looks excessive to me. Yes as far as I can tell I had to make them all manualy. The other problem is that it isn't installing the files into the directories either. > > > make install prefix=$RPM_BUILD_ROOT/%{prefix} > > > > cd $RPM_BUILD_ROOT > > find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \ > > $RPM_BUILD_DIR/file.list.%{name} > > > > find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' \ > > find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \ > Thanks I'll try it. > MandrakeSoft http://www.mandrakesoft.com/ > --Axalon -- He must increase but I must decrease--- Holiness unto the Lord Name: Brook Humphrey E-Mail: [EMAIL PROTECTED] webmaster: thelinuxstop.com webmester: webmedic.net Owner: Mobile PC Medic
Re: [Cooker] problem with .spec
On Thu, 16 Dec 1999, webmedic wrote: > I'm trying to make an rpm and for some reason my spec file isn't quite right > could somebody look at it for me. > > this is the error i get after the install. For some reason none pof the files > are placed in their diractories. > > + cd /var/tmp/bibletime-buildroot > + find . -type d > + sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > + find . -type f > + sed 's,^\.,\%attr(-\,root\,root) ,' -e '/\/etc\//s|^|%config|' -e >'/\/config\//s|^|%config|' > sed: can't read s,^\.,\%attr(-\,root\,root) ,: No such file or directory > Bad exit status from /var/tmp/rpm-tmp.8449 (%install) > > here is the spec file > > > Name: bibletime > Summary: Bibltime kde frontend for sword > Version: 0.2 > Release: 1mdk > Source: http://www.thelinuxstop.com/bibletime-0.2.tar.bz2 > Group: KDE/Applications > URL: www.bibletime.de > BuildRoot: /var/tmp/%{name}-buildroot > Copyright: GPL > Prefix: /usr > > %description > > %prep > rm -rf $RPM_BUILD_ROOT > > %setup -q > > %build > CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" ./configure \ > --prefix=%{prefix} > make -j 2 > > %install > mkdir -p $RPM_BUILD_ROOT%{prefix} > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/HTML/en/bibletime > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/doc/HTML/de/bibletime > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/apps/bibletime/pics > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/apps/bibletime/toolbar > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/applnk/Applications > mkdir -p $RPM_BUILD_ROOT%{prefix}/bin > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/icons > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/icons/mini > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/locale/fr/LC_MESSAGES > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/locale/hu/LC_MESSAGES > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/locale/nl/LC_MESSAGES > mkdir -p $RPM_BUILD_ROOT%{prefix}/share/locale/de/LC_MESSAGES Does it really refuse to create that many? nothing wrong with it just looks excessive to me. > make install prefix=$RPM_BUILD_ROOT/%{prefix} > > cd $RPM_BUILD_ROOT > find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > \ > $RPM_BUILD_DIR/file.list.%{name} > > find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' \ find . -type f | sed -e 's,^\.,\%attr(-\,root\,root) ,' \ >-e '/\/etc\//s|^|%config|' \ >-e '/\/config\//s|^|%config|' \ >>> $RPM_BUILD_DIR/file.list.%{name} > > %clean > rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/file.list.%{name} > > %files -f ../file.list.%{name} > %defattr(-,root,root,0755) > > %changelog > * Fri Aug 06 1999 Stefan Siegel <[EMAIL PROTECTED]> > - Added "config" tag for files containing /etc or /config > - Added compression for perl- and localized man-pages > > * Sat Jun 26 1999 Bernhard Rosenkraenzer <[EMAIL PROTECTED]> > - create (more or less) generic spec file... > > -- MandrakeSoft http://www.mandrakesoft.com/ --Axalon