Re: spec file

2017-01-15 Thread Michael Schwendt
cd platform-master After this line, you are within your personal build tree below %_builddir as set up during %prep. To change into that build directory is an automatic step at the beginning of every spec file section. You've given the name of that directory as the -n option to %aut

Re: spec file

2017-01-15 Thread arnaud gaboury
akerpm/rpmbuild + mkdir -p src/github.com/mattermost + cd src/github.com/mattermost + ln -s /home/makerpm/rpmbuild/platform-master platform -- May you give me the correct syntax you would use for these lines? > > The %setup and %autosetup macros define the top

Re: spec file

2017-01-15 Thread arnaud gaboury
eed to use the %_builddir macro. > In most cases, you don't need to use it at all. > > The %setup and %autosetup macros define the top-level build directory > below %_builddir, and at the start of every spec file section (e.g. %build, > %install, %check, even %files), that bu

Re: spec file

2017-01-14 Thread Michael Schwendt
On Sat, 14 Jan 2017 18:53:30 +, arnaud gaboury wrote: > In fact, I realize I am totally confused between the "old" method I used to > build .rpm and this new wiki using fedpkg. Before, I used to have BUILD, > BUILDROOT, SOURCES etc folders inside rpmbuild. Now, I am not sure how to > setup my

Re: spec file

2017-01-14 Thread Michael Schwendt
e the top-level build directory below %_builddir, and at the start of every spec file section (e.g. %build, %install, %check, even %files), that build directory is entered automatically. It may also be cleaned up automatically depending on your rpmbuild option and the default %clean section. Create

Re: spec file

2017-01-14 Thread arnaud gaboury
gt; > > YES > > If so, it has not reached the %files processing section it seems. > > > > Uploading the full spec file or even the src.rpm would have been a great > idea. > > > Here it goes: > > > > > > %prep > %autosetup -n platfor

Re: spec file

2017-01-14 Thread arnaud gaboury
; > error: Bad file: > > /home/makerpm/build_package/mattermost/mattermost-user.conf: No such file > > or directory > > You've not given enough information, unfortunately. Does the output end > there? > > > YES > > If so, it has not reached the %files pro

Re: spec file

2017-01-14 Thread arnaud gaboury
rmost/mattermost-user.conf: No such file > > or directory > > You've not given enough information, unfortunately. Does the output end > there? YES > If so, it has not reached the %files processing section it seems. > > Uploading the full spec file or even the src.rpm wo

Re: spec file

2017-01-14 Thread Michael Schwendt
n enough information, unfortunately. Does the output end there? If so, it has not reached the %files processing section it seems. Uploading the full spec file or even the src.rpm would have been a great idea. Tell a bit about the "build_package" directory below $HOME. /home/makerpm is the ho

spec file

2017-01-14 Thread arnaud gaboury
I am writing a spec file. Everything build fine until the very last. Make throw an error and I don't understand why. Part of the spec file: cd %{_builddir} install -Dm755 bin/platform %{buildroot}%{_datadir}/%{name}/bin/platform install -Dm755 mattermost.sh %{buildroot}%{_b

Re: .spec file for GO package

2016-11-09 Thread arnaud gaboury
On Wed, Nov 9, 2016 at 8:56 AM Matthias Runge wrote: > On 08/11/16 15:59, arnaud gaboury wrote: > > I am writing a .spec file for an app built with go[0]. > > I first made a build following the official doc, then write a .spec file > > and built with it .rpm. Everything

Re: .spec file for GO package

2016-11-08 Thread Matthias Runge
On 08/11/16 15:59, arnaud gaboury wrote: > I am writing a .spec file for an app built with go[0]. > I first made a build following the official doc, then write a .spec file > and built with it .rpm. Everything is OK but I have some doubts when I > look at some other .spec files for

.spec file for GO package

2016-11-08 Thread arnaud gaboury
I am writing a .spec file for an app built with go[0]. I first made a build following the official doc, then write a .spec file and built with it .rpm. Everything is OK but I have some doubts when I look at some other .spec files for application writen in GO, or create a spec file for my app using

Re: rpm spec file %define

2016-01-11 Thread Joseph L. Casale
>> For the academic sake only, does a facility exist to defer evaluation >> for this use case? > >It would get kinda ugly, but you could re-expand the macro body: > >%global foo-bar_dir %{expand:%(ls -d >%{_builddir}/%{name}-%{version}/foo-bar-*-baz |grep -o '[^/]*$')} Thanks Michael, jlc -- use

Re: rpm spec file %define

2016-01-11 Thread Michael Schwendt
On Sun, 10 Jan 2016 21:57:21 +, Joseph L. Casale wrote: > For the academic sake only, does a facility exist to defer evaluation > for this use case? It would get kinda ugly, but you could re-expand the macro body: %global foo-bar_dir %{expand:%(ls -d %{_builddir}/%{name}-%{version}/foo-bar-

RE: rpm spec file %define

2016-01-10 Thread Joseph L. Casale
> That approach sounds too complicated. %setup is a macro in the %prep > section, where you can run more commands to _set up_ your builddir. The > most obvious choice IMO would be to _rename_ the versioned dir to something > unique. You could also avoid the second invocation of %setup and extract >

Re: rpm spec file %define

2016-01-10 Thread Michael Schwendt
On Sun, 10 Jan 2016 03:16:24 +, Joseph L. Casale wrote: > I have a spec with two source files where I do not create the second, it's > not mine: > > Source0:%{name}-%{version}.tar.gz > Source1:foo-bar.tar.xz > > My prep sections looks like: > > %setup -q > %setup -q -T -D -

rpm spec file %define

2016-01-09 Thread Joseph L. Casale
I have a spec with two source files where I do not create the second, it's not mine: Source0:%{name}-%{version}.tar.gz Source1:foo-bar.tar.xz My prep sections looks like: %setup -q %setup -q -T -D -a 1 The tar.xz for Source1 has an unversioned name however it unpacks to a versi

Re: alias command in a .spec file

2015-12-06 Thread arnaud gaboury
On Sun, Dec 6, 2015 at 10:28 AM, arnaud gaboury wrote: > To build successfully a rpm package from my .spec file I need alias a command. > The alias command is not taken into account in the .spec file. I can > of course run it in my shell before the build, but I would like to > include

alias command in a .spec file

2015-12-06 Thread arnaud gaboury
To build successfully a rpm package from my .spec file I need alias a command. The alias command is not taken into account in the .spec file. I can of course run it in my shell before the build, but I would like to include the process in .spec file. The link[1] is confusing. Something like: pm

Re: proper spec file format for designating systemd service files?

2014-03-08 Thread Robert P. J. Day
On Sat, 8 Mar 2014, Rahul Sundaram wrote: > Hi > > > On Fri, Mar 7, 2014 at 7:22 AM, Robert P. J. Day  wrote: > >   does that make sense? as i said, not a big deal and certainly > doesn't affect operation, just wanting to clarify that i'm reading the

Re: proper spec file format for designating systemd service files?

2014-03-08 Thread Rahul Sundaram
Hi On Fri, Mar 7, 2014 at 7:22 AM, Robert P. J. Day wrote: > > does that make sense? as i said, not a big deal and certainly > doesn't affect operation, just wanting to clarify that i'm reading the > spec file correctly and understanding how it would have been written

proper spec file format for designating systemd service files?

2014-03-07 Thread Robert P. J. Day
ly curious, i popped over to the package git repo: http://pkgs.fedoraproject.org/cgit/isdn4k-utils.git/tree/ and took a look at the spec file to see what was happening: http://pkgs.fedoraproject.org/cgit/isdn4k-utils.git/tree/isdn4k-utils.spec and the relevant parts seem to be, first this at

Re: rpmbuild (spec file)

2013-07-20 Thread Patrick Dupre
/bin/smolder_smoke_signal   /usr/share/man/man1/smolder_smoke_signal.1.gz This is what is in my spec file: %files %defattr(-,root,root,-) %doc Changes CREDITS examples KNOWN_BUGS META.json pm pod README.md swig TODO xs xt %{perl_vendorarch}/auto/* %{perl_vendorarch}/Math* %{_mandir}/man3

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread poma
On 02/24/13 02:10, Michael Schwendt wrote: > On Sun, 24 Feb 2013 02:03:32 +0100, poma wrote: > >> Well, as always, defaults matter, not optflags in rpmrc. ;) >> And within config.mk default is CFLAGS = -O1. >> Let Hartlich comments, it's his code. > > Rest assured, we (= deco maintainer at Fedora

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread Michael Schwendt
On Sun, 24 Feb 2013 02:03:32 +0100, poma wrote: > Well, as always, defaults matter, not optflags in rpmrc. ;) > And within config.mk default is CFLAGS = -O1. > Let Hartlich comments, it's his code. Rest assured, we (= deco maintainer at Fedora and me) have been in contact with him earlier today a

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread poma
On 02/24/13 01:27, Michael Schwendt wrote: > On Sun, 24 Feb 2013 00:54:29 +0100, poma wrote: > >> On 02/23/13 14:03, Michael Schwendt wrote: >> […] >>> Nevertheless, building from source isn't a safe fix either, since it only >>> uses different compiler flags. The crash is due to uninitialized poi

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread Michael Schwendt
On Sun, 24 Feb 2013 00:54:29 +0100, poma wrote: > On 02/23/13 14:03, Michael Schwendt wrote: > […] > > Nevertheless, building from source isn't a safe fix either, since it only > > uses different compiler flags. The crash is due to uninitialized pointers > > -> bug 914659 > > > > So, don't blame

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread poma
On 02/23/13 14:03, Michael Schwendt wrote: […] > Nevertheless, building from source isn't a safe fix either, since it only > uses different compiler flags. The crash is due to uninitialized pointers > -> bug 914659 > > So, don't blame the packaging alone. The C source isn't pretty. > So simple

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread Michael Schwendt
On Sat, 23 Feb 2013 10:03:24 +0100, poma wrote: > On 02/23/13 04:45, Orcan Ogetbil wrote: > > On Thu, Feb 21, 2013 at 8:00 PM, poma wrote: > >> deco grub2-2.00-16.fc19.src.rpm > >> 13020 blocks > > [backtrace cut] > >> Aborted > >> -- > > > > Hmm, the crash does not happen here. How reproducible

Re: is it possible to download a spec file only using yum?

2013-02-23 Thread poma
On 02/23/13 04:45, Orcan Ogetbil wrote: > On Thu, Feb 21, 2013 at 8:00 PM, poma wrote: >> deco grub2-2.00-16.fc19.src.rpm >> 13020 blocks > [backtrace cut] >> Aborted >> -- > > Hmm, the crash does not happen here. How reproducible is this? Can you debug? > Installed from source - PREFIX = /usr

RE: is it possible to download a spec file only using yum?

2013-02-22 Thread Easior Lars
firefox.sh.in > firefox-duckduckgo.patch firefox.spec > firefox-install-dir.patch sources > firefox-mozconfig > > So you get the spec file and all of the patches. The "sources" file contains > the checksums of the source files in the buildsystem's

Re: is it possible to download a spec file only using yum?

2013-02-22 Thread poma
On 02/22/13 10:19, Matthew Miller wrote: > On Fri, Feb 22, 2013 at 12:36:43AM +0100, poma wrote: >> Shouldn't the default be an '-a'(anonymous) check out via git? > > Whoops, sorry; forgot about that. I don't think the default should change > since, since I think the most common use is active Fedo

Re: is it possible to download a spec file only using yum?

2013-02-22 Thread Matthew Miller
On Fri, Feb 22, 2013 at 12:36:43AM +0100, poma wrote: > Shouldn't the default be an '-a'(anonymous) check out via git? Whoops, sorry; forgot about that. I don't think the default should change since, since I think the most common use is active Fedora contributors. If you find yourself using this a

Re: is it possible to download a spec file only using yum?

2013-02-21 Thread T.C. Hollingsworth
On Feb 21, 2013 2:39 AM, "Matthew Miller" wrote: > > On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote: > > I was wondering if it is possible to download a spec file using yum > > or rpm only (without downloading the rpm)? > > No, but there's

Re: is it possible to download a spec file only using yum?

2013-02-21 Thread poma
On 02/22/13 01:21, Orcan Ogetbil wrote: > On Thu, Feb 21, 2013 at 6:36 PM, poma wrote: >> >> Shouldn't the default be an '-a'(anonymous) check out via git? >> > > I think it should too. Maybe there are good reasons behind not making so. > Meanwhile you can do > $ yumdownloader --source pkgname >

Re: is it possible to download a spec file only using yum?

2013-02-21 Thread poma
On 02/21/13 10:39, Matthew Miller wrote: > On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote: >> I was wondering if it is possible to download a spec file using yum >> or rpm only (without downloading the rpm)? > > No, but there's a better way! All of our s

Re: is it possible to download a spec file only using yum?

2013-02-21 Thread poma
Maitra issued this missive: >>>>> Hello, >>>>> >>>>> I was wondering if it is possible to download a spec file using yum >>>>> or rpm only (without downloading the rpm)? >>>> >>>> Don't think so. The spec files

Re: is it possible to download a spec file only using yum?

2013-02-21 Thread Michael Schwendt
On Thu, 21 Feb 2013 01:01:58 -0600, Ranjan Maitra wrote: > > yumdownloader --source foobar > > and extract it: > > rpm2cpio foobar*.src.rpm | cpio -idmuv *.spec > > > > Thanks very much for the detailed descriptions! I was wondering also: > is it possible to pull the .tar.gz (and/or the patches)

Re: is it possible to download a spec file only using yum?

2013-02-21 Thread Matthew Miller
On Wed, Feb 20, 2013 at 07:16:08PM -0600, Ranjan Maitra wrote: > I was wondering if it is possible to download a spec file using yum > or rpm only (without downloading the rpm)? No, but there's a better way! All of our spec files are available in git, and the "fedpkg" comm

Re: is it possible to download a spec file only using yum?

2013-02-20 Thread Ranjan Maitra
> >>> I was wondering if it is possible to download a spec file using yum > >>> or rpm only (without downloading the rpm)? > >> > >> Don't think so. The spec files are part of the srpm generally, so > >> you'd need to grab that, install

Re: is it possible to download a spec file only using yum?

2013-02-20 Thread poma
On 02/21/13 02:47, Ranjan Maitra wrote: > On Wed, 20 Feb 2013 17:30:50 -0800 Rick Stevens > wrote: > >> On 02/20/2013 05:16 PM, Ranjan Maitra issued this missive: >>> Hello, >>> >>> I was wondering if it is possible to download a spec file using yum &g

Re: is it possible to download a spec file only using yum?

2013-02-20 Thread Ranjan Maitra
On Wed, 20 Feb 2013 17:30:50 -0800 Rick Stevens wrote: > On 02/20/2013 05:16 PM, Ranjan Maitra issued this missive: > > Hello, > > > > I was wondering if it is possible to download a spec file using yum > > or rpm only (without downloading the rpm)? > > Don&#x

Re: is it possible to download a spec file only using yum?

2013-02-20 Thread Rick Stevens
On 02/20/2013 05:16 PM, Ranjan Maitra issued this missive: Hello, I was wondering if it is possible to download a spec file using yum or rpm only (without downloading the rpm)? Don't think so. The spec files are part of the srpm generally, so you'd need to grab that, install the srp

is it possible to download a spec file only using yum?

2013-02-20 Thread Ranjan Maitra
Hello, I was wondering if it is possible to download a spec file using yum or rpm only (without downloading the rpm)? Many thanks and best wishes, Ranjan -- Important Notice: This mailbox is ignored: e-mails are set to be deleted on receipt. For those needing to send personal or professional e

Re: Using mock with --scm-enable and external spec file

2012-11-13 Thread Suvayu Ali
scm-enable option > > to get the packages from git. The spec file in the repository is buggy, > > so I would like to use the spec file used for Fedora builds with small > > modifications, however that seems to be not possible. > > > > Am I wrong, or did I miss something

Re: Using mock with --scm-enable and external spec file

2012-11-12 Thread dexter
On 11 November 2012 01:38, Suvayu Ali wrote: > Hello again, > > I mentioned in another thread that I have been trying to build git > snapshots for a few packages I use. I tried mock's --scm-enable option > to get the packages from git. The spec file in the repository is bugg

Using mock with --scm-enable and external spec file

2012-11-10 Thread Suvayu Ali
Hello again, I mentioned in another thread that I have been trying to build git snapshots for a few packages I use. I tried mock's --scm-enable option to get the packages from git. The spec file in the repository is buggy, so I would like to use the spec file used for Fedora builds with