Re: rpmbuild

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Den 2018-02-09 kl. 15:45, skrev Patrick Dupre:
> Hello,
> 
> I am trying to create a rpm file from a tgz package.
> Could you help me?
> 
> I have been here
> http://fedoraproject.org/wiki/How_to_create_a_GNU_Hello_RPM_package
> I run
> rpmbuild -ba textext.spec 
> 
> Here is my file:
> 
> Name:           textext
> Version:        0.4
> Release:        1%{?dist}
> Summary:        The textext for inkscape
> 
> License:        GPLv3+
> URL:            https://pav.iki.fi/software/textext/
> Source0:        https://pav.iki.fi/_downloads/textext-0.4.tar.gz
> #BuildRequires:  
> #Requires:       
> 
> %description
> 
> 
> %prep
> %autosetup
> 
> 
> %build
> %configure
> %make_build
> 
> 
> %install
> rm -rf $RPM_BUILD_ROOT
> %make_install
> 
> 
> %files
> %license add-license-file-here
> %doc add-docs-here
> 
> 
> 
> %changelog
> * Fri Feb  9 2018 Patrick Dupre <pdupre@xxxxxxx>
> - 
> +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> 
> But I get an error:
> 
> rpmbuild -ba textext.spec 
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.0cm1Uq
> + umask 022
> + cd /home/pdupre/rpmbuild/BUILD
> + cd /home/pdupre/rpmbuild/BUILD
> + rm -rf textext-0.4
> + /usr/bin/gzip -dc /home/pdupre/rpmbuild/SOURCES/textext-0.4.tar.gz
> + /usr/bin/tar -xof -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd textext-0.4
> /var/tmp/rpm-tmp.0cm1Uq: line 38: cd: textext-0.4: No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.0cm1Uq (%prep)

This is telling you that directory "textext-0.4" don't exist.
If you list the testes-0.4.tar.gz with tar (like this):

tar -tvf textext-0.4.tar.gz

what does it say?


> 
> 
> RPM build errors:
>     Bad exit status from /var/tmp/rpm-tmp.0cm1Uq (%prep)
> 
> 
> ===========================================================================
>  Patrick DUPRÉ                                 | | email: pdupre@xxxxxxx
>  Laboratoire de Physico-Chimie de l'Atmosphère | |
>  Université du Littoral-Côte d'Opale           | |
>  Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
>  189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
> ===========================================================================
> _______________________________________________
> users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
> To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
> 


-- 
Regards

Jon Ingason
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx



[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux