[Fedora-packaging] Cannot cd to %{name}-%{version}

Jon Ciesla limburgher at gmail.com
Thu Apr 12 14:42:37 UTC 2012


2012/4/12 Kamal Ahmed <kamal2222ahmed at yahoo.com>:
> 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 at unleashbts.com>
> 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 at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/packaging



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

-d. bowie


More information about the packaging mailing list