On Wed, Jan 18, 2017 at 3:42 AM Michael Schwendt <mschwe...@gmail.com> wrote:
> On Tue, 17 Jan 2017 15:48:58 +0000, arnaud gaboury wrote: > > > At the begining of my build, I need: > > - mkdir src/github.com/mattermost > > -unzip the source in src/github.com/mattermost/plateform-master > > - cd src/github.com/mattermost/plateform-master to start make. > > Why do you think you need to do that? > Because that's the way I must prepare my directories for the build. See package README[0] Here is my solution, without symlink or buildir/topdir (master.zip is downloaded first with spectool and unzip as platform-master, when name of package is mattermost): ------------ %prep mkdir -p src/github.com/mattermost %setup -q -n platform-master cd .. mv platform-master src/github.com/mattermost/platform cd src/github.com/mattermost/platform --------------------- It does what I want: src/github.com/mattermost/platform is populated with the package source files. > > Here is what happens when running $fedpkg --dist f25 prep: > > ------------------------------------- > > Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.zJOa1Q > > + umask 022 > > + cd /home/makerpm/rpmbuild > > + cd /home/makerpm/rpmbuild > > + rm -rf platform-master > > + /usr/bin/unzip -qq /home/makerpm/rpmbuild/master.zip > > ^^^ (!) Notice what the %autosetup macro did in the lines above! > > > + STATUS=0 > > + '[' 0 -ne 0 ']' > > + cd platform-master <<< ==== WHY ?? > > Because you added "-n platform-master" to the %autosetup macro, > which is the top-level directory to change into for every spec file > section (%prep, %build, %install, even %files section access that > directory when using %doc to include local files, for example). > > > It seems I am inside the directory I want to move, platform-master. > > Why do I cd this directory? How to avoid it so I am able to move this > > directory? Or best, how can I unzip the content of master.zip in src/ > > github.com/mattermost/platform? > > _Why_ do you want to do that? > [0]https://docs.mattermost.com/developer/developer-setup.html#ubuntu > _______________________________________________ > users mailing list -- users@lists.fedoraproject.org > To unsubscribe send an email to users-le...@lists.fedoraproject.org >
_______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-le...@lists.fedoraproject.org