Re: Cannot cd to %{name}-%{version}

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

 



2012/4/12 Kamal Ahmed <kamal2222ahmed@xxxxxxxxx>:
> I have the following spec file:
>
> Summary: pcore binary
> Name: pcore
> Version: 0.1
> Release: Beta
> Epoch: 0
> License: Commercial
> Group: Applications/Telecommunications
> Packager: Kamal Ahmed <kamal.ahmed@xxxxxxxxxxxxxx>
> URL: http://pcore.bts.md/
> Source: pcore-0.1.tar.gz
> BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
>
> %description
> ElementalCORE
>
> %prep
> mkdir %{name}-%{version}

Find out what the directory is really called after extraction, i.e.
foo-somethingelse and change

> %setup -q
>
to

%setup -qn foo-somethingelse


-J

>
> %build
> #%configure
> make
>
> %install
> rm -rf "$RPM_BUILD_ROOT"
> %makeinstall
> rm -f $RPM_BUILD_ROOT%{_infodir}/dir
>
>
> %clean
> rm -rf "$RPM_BUILD_ROOT"
>
>
> %files
> %defattr(-,root,root)
> %doc NEWS
>
> but when i do an rpmbuild -bb pcore.spec, i get:
>
>
>
> rpmbuild -bb pcore.spec
> Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.66518
> + umask 022
> + cd /home/kahmed/rpmbuild/BUILD
> + LANG=C
> + export LANG
> + unset DISPLAY
> + mkdir pcore-0.1
> + cd /home/kahmed/rpmbuild/BUILD
> + rm -rf pcore-0.1
> + /bin/gzip -dc /home/kahmed/rpmbuild/SOURCES/pcore-0.1.tar.gz
> + tar -xf -
> + STATUS=0
> + '[' 0 -ne 0 ']'
> + cd pcore-0.1
> /var/tmp/rpm-tmp.66518: line 37: cd: pcore-0.1: No such file or directory
>
>
> --
> packaging mailing list
> packaging@xxxxxxxxxxxxxxxxxxxxxxx
> https://admin.fedoraproject.org/mailman/listinfo/packaging



-- 
in your fear, seek only peace
in your fear, seek only love

-d. bowie
--
packaging mailing list
packaging@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/packaging



[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux