Re: help with repackaging pdf-stapler for python3

2019-12-29 Thread Globe Trotter via devel
 Thanks, I will ignore it then.

On Sunday, December 29, 2019, 9:14:54 AM CST, Kevin Fenzi  
wrote:  
 
 On Sun, Dec 29, 2019 at 02:45:20PM +, Globe Trotter via devel wrote:
>  I got the following:
> https://bodhi.fedoraproject.org/updates/FEDORA-2019-2b1eed3d9d
> Failed to talk to greenwave. How do I go about fixing it?

Nothing to do on your end, something was not working right in the stack
of things that greenwave needs. I've restarted things and it appears
working now.

kevin
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-29 Thread Kevin Fenzi
On Sun, Dec 29, 2019 at 02:45:20PM +, Globe Trotter via devel wrote:
>  I got the following:
> https://bodhi.fedoraproject.org/updates/FEDORA-2019-2b1eed3d9d
> Failed to talk to greenwave. How do I go about fixing it?

Nothing to do on your end, something was not working right in the stack
of things that greenwave needs. I've restarted things and it appears
working now.

kevin


signature.asc
Description: PGP signature
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-29 Thread Globe Trotter via devel
 I got the following:
https://bodhi.fedoraproject.org/updates/FEDORA-2019-2b1eed3d9d
Failed to talk to greenwave. How do I go about fixing it?

Thanks!

On Saturday, December 28, 2019, 9:31:47 AM EST, Alexander Ploumistos 
 wrote:  
 
 You are welcome. Sorry for the HTML, I am away from home.

On Sat, Dec 28, 2019, 15:12 Globe Trotter via devel 
 wrote:

 Thanks! There was an issue with koji and me. Now the update has been built and 
submitted for testing. Should I fix the egg issue? How.Thanks!


I am not sure there is an "egg issue", but that's something you should check 
with our python gurus. I remember that there is a section on packaging egg 
stuff in our Packaging guidelines, you can search for that page and see if 
you're adhering to it.
Best regards,Alex
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-28 Thread Globe Trotter via devel
 Sorry, no problem.I was referring to the following:
"The egg metadata state that the current version is a 1.0.0 release candidate, 
so the 0.x versioning is correct."
But I guess that it is perhaps fine now. 

Thanks!



On Saturday, December 28, 2019, 9:31:47 AM EST, Alexander Ploumistos 
 wrote:  
 
 You are welcome. Sorry for the HTML, I am away from home.

On Sat, Dec 28, 2019, 15:12 Globe Trotter via devel 
 wrote:

 Thanks! There was an issue with koji and me. Now the update has been built and 
submitted for testing. Should I fix the egg issue? How.Thanks!


I am not sure there is an "egg issue", but that's something you should check 
with our python gurus. I remember that there is a section on packaging egg 
stuff in our Packaging guidelines, you can search for that page and see if 
you're adhering to it.
Best regards,Alex
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-28 Thread Alexander Ploumistos
You are welcome. Sorry for the HTML, I am away from home.

On Sat, Dec 28, 2019, 15:12 Globe Trotter via devel <
devel@lists.fedoraproject.org> wrote:

> Thanks! There was an issue with koji and me. Now the update has been built
> and submitted for testing. Should I fix the egg issue? How.
> Thanks!
>

I am not sure there is an "egg issue", but that's something you should
check with our python gurus. I remember that there is a section on
packaging egg stuff in our Packaging guidelines, you can search for that
page and see if you're adhering to it.

Best regards,
Alex
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-28 Thread Globe Trotter via devel
 Thanks! There was an issue with koji and me. Now the update has been built and 
submitted for testing. Should I fix the egg issue? How.Thanks!

On Saturday, December 28, 2019, 3:34:30 AM EST, Alexander Ploumistos 
 wrote:  
 
 On Sat, Dec 28, 2019 at 7:35 AM Globe Trotter via devel
 wrote:
> Any further suggestion/help? Here is the updated spec file:
>
> $ fpaste pdf-stapler.spec
> Uploading (5.0KiB)...
> https://paste.centos.org/view/3a4fe4d6
>

Oh, there's also a problem with your changelog entries, the last three
have 1.0.0-1 as the version. Since there hasn't been a successful koji
build yet, change them to
1.0.0-0.2.20191215git8753251
1.0.0-0.1.20191215git8753251
etc.

The egg metadata state that the current version is a 1.0.0 release
candidate, so the 0.x versioning is correct.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-28 Thread Alexander Ploumistos
On Sat, Dec 28, 2019 at 7:35 AM Globe Trotter via devel
 wrote:
> Any further suggestion/help? Here is the updated spec file:
>
> $ fpaste pdf-stapler.spec
> Uploading (5.0KiB)...
> https://paste.centos.org/view/3a4fe4d6
>

Oh, there's also a problem with your changelog entries, the last three
have 1.0.0-1 as the version. Since there hasn't been a successful koji
build yet, change them to
1.0.0-0.2.20191215git8753251
1.0.0-0.1.20191215git8753251
etc.

The egg metadata state that the current version is a 1.0.0 release
candidate, so the 0.x versioning is correct.
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-28 Thread Alexander Ploumistos
On Sat, Dec 28, 2019 at 7:35 AM Globe Trotter via devel
 wrote:
>
> Thanks! This seems to compile again, but I can't tell what happened with koji:
>
> https://koji.fedoraproject.org/koji/taskinfo?taskID=39956986

Besides koji misbehaving in general in the last few days, you have
uploaded an older source rpm (or you gave the link to the wrong koji
task).
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread Globe Trotter via devel
 Thanks! This seems to compile again, but I can't tell what happened with koji:
https://koji.fedoraproject.org/koji/taskinfo?taskID=39956986
Sorry, I am very lost. My earleir spec file was fine with the python2 version.
Any further suggestion/help? Here is the updated spec file:
$ fpaste pdf-stapler.spec
Uploading (5.0KiB)...
https://paste.centos.org/view/3a4fe4d6






On Friday, December 27, 2019, 6:26:37 PM EST, Alexander Ploumistos 
 wrote:  
 
 Hello again,

Replace the mv line you have in your spec file with this:
rm %{buildroot}%{_bindir}/stapler

Also, do you really need to declare PKG-INFO as documentation? It's
included with the egg metadata. If you remove it from your %files
section, the package builds fine. If you are intent on keeping it
declared, you will have to copy it to your buildroot (I think).

On Fri, Dec 27, 2019 at 5:04 PM Globe Trotter via devel
 wrote:
>
> Thanks!
>
> On Friday, December 27, 2019, 9:32:29 AM CST, José Abílio Matos 
>  wrote:
>
>
> > in lines 43-44 you have:
>
> > %prep
> > %setup -q -n stapler-%{version}
>
> > the last line should be:
> > %setup -q -n stapler
>
> as you said the directory name does not have the version in it. :-)
>
>
> I tried:
>
> %setup -q -n  stapler-%{commit}
>
> mv: cannot stat 
> '/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.1.20191215git8753251.fc31.x86_64//usr/bin/stapler-875325103234b4a3ed96a4a5167ff78c291edbff':
>  No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.dbb8Yr (%install)
>
>
> Sorry, I am still lost. Here is my updated spec file.
>
>
> https://paste.centos.org/view/a2d17d1a
>
>
>
>
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread Alexander Ploumistos
Hello again,

Replace the mv line you have in your spec file with this:
rm %{buildroot}%{_bindir}/stapler

Also, do you really need to declare PKG-INFO as documentation? It's
included with the egg metadata. If you remove it from your %files
section, the package builds fine. If you are intent on keeping it
declared, you will have to copy it to your buildroot (I think).

On Fri, Dec 27, 2019 at 5:04 PM Globe Trotter via devel
 wrote:
>
> Thanks!
>
> On Friday, December 27, 2019, 9:32:29 AM CST, José Abílio Matos 
>  wrote:
>
>
> > in lines 43-44 you have:
>
> > %prep
> > %setup -q -n stapler-%{version}
>
> > the last line should be:
> > %setup -q -n stapler
>
> as you said the directory name does not have the version in it. :-)
>
>
> I tried:
>
> %setup -q -n  stapler-%{commit}
>
> mv: cannot stat 
> '/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.1.20191215git8753251.fc31.x86_64//usr/bin/stapler-875325103234b4a3ed96a4a5167ff78c291edbff':
>  No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.dbb8Yr (%install)
>
>
> Sorry, I am still lost. Here is my updated spec file.
>
>
> https://paste.centos.org/view/a2d17d1a
>
>
>
>
> ___
> devel mailing list -- devel@lists.fedoraproject.org
> To unsubscribe send an email to devel-le...@lists.fedoraproject.org
> Fedora Code of Conduct: 
> https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: 
> https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread Rodger Etz
What happens when you try this?

%setup -q -n pdf-stapler

Do not append anything after pdf-stapler

BR,

Brownsen

‐‐‐ Original Message ‐‐‐
On Friday, 27. December 2019 17:04, Globe Trotter via devel 
 wrote:

> Thanks!
>
> On Friday, December 27, 2019, 9:32:29 AM CST, José Abílio Matos 
>  wrote:
>
>> in lines 43-44 you have:
>
>> %prep
>> %setup -q -n stapler-%{version}
>
>> the last line should be:
>> %setup -q -n stapler
>
> as you said the directory name does not have the version in it. :-)
>
> I tried:
>
> %setup -q -n  stapler-%{commit}
> mv: cannot stat 
> '/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.1.20191215git8753251.fc31.x86_64//usr/bin/stapler-875325103234b4a3ed96a4a5167ff78c291edbff':
>  No such file or directory
> error: Bad exit status from /var/tmp/rpm-tmp.dbb8Yr (%install)
>
> Sorry, I am still lost. Here is my updated spec file.
>
> https://paste.centos.org/view/a2d17d1a___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread Globe Trotter via devel
 Thanks!

On Friday, December 27, 2019, 9:32:29 AM CST, José Abílio Matos 
 wrote: 

> in lines 43-44 you have:
 
> %prep
> %setup -q -n stapler-%{version}

> the last line should be:
> %setup -q -n stapler

as you said the directory name does not have the version in it. :-)

I tried: 

%setup -q -n  stapler-%{commit}

mv: cannot stat 
'/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-0.1.20191215git8753251.fc31.x86_64//usr/bin/stapler-875325103234b4a3ed96a4a5167ff78c291edbff':
 No such file or directoryerror: Bad exit status from /var/tmp/rpm-tmp.dbb8Yr 
(%install)


Sorry, I am still lost. Here is my updated spec file.

https://paste.centos.org/view/a2d17d1a




  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread José Abílio Matos
On Friday, 27 December 2019 14.50.16 WET Globe Trotter via devel wrote:
> Thank you!
> 
> 
> Here is my updated spec file:
> 
> $ fpaste pdf-stapler.spec
> Uploading (4.8KiB)...
> https://paste.centos.org/view/6ddc6eec
> 
> However, I can not change the directory to a stapler directory. I get the
> following error:
> 
> + cd stapler-1.0.0
> /var/tmp/rpm-tmp.2ZnEy2: line 38: cd: stapler-1.0.0: No such file or
> directory error: Bad exit status from /var/tmp/rpm-tmp.2ZnEy2 (%prep)
> 
> Thanks again for your help!

In lines 43-44 you have:

%prep
%setup -q -n stapler-%{version}

the last line should be:
%setup -q -n stapler

as you said the directory name does not have the version in it. :-)
-- 
José Abílio

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread Globe Trotter via devel
 Thank you!

Here is my updated spec file:
$ fpaste pdf-stapler.spec
Uploading (4.8KiB)...
https://paste.centos.org/view/6ddc6eec

However, I can not change the directory to a stapler directory. I get the 
following error:
+ cd stapler-1.0.0
/var/tmp/rpm-tmp.2ZnEy2: line 38: cd: stapler-1.0.0: No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.2ZnEy2 (%prep)

Thanks again for your help!




On Friday, December 27, 2019, 3:08:05 AM CST, Alexander Ploumistos 
 wrote:  
 
 Hello,

On Fri, Dec 27, 2019 at 7:44 AM Globe Trotter via devel
 wrote:
>
> However, I have a problem: the issue is that Source0 does not have the latest 
> tar.bz2 while Source1 does not call it 1.0.0 though the release notes say so 
> (there).

You should have just one SourceX tag for each tarball. Since all three
of your links essentially point to the same thing and the actual
upstream is on github, keep only the URL to the source package you are
using. In your case, you are using a git snapshot, so you should be
following the relevant guidelines[0, 1], which if I'm interpreting
correctly, should result in something like this:

%global commit 875325103234b4a3ed96a4a5167ff78c291edbff
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20191215

Name:          pdf-stapler
Version:        1.0.0
Release:        0.1.%{commitdate}git%{shortcommit}%{?dist}
Summary:        Tool for manipulating PDF documents from the command line
License:        BSD
URL:            https://github.com/hellerbarde/stapler
Source0:      
https://github.com/hellerbarde/stapler/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

(The actual source URL is this one:
https://github.com/hellerbarde/stapler/archive/875325103234b4a3ed96a4a5167ff78c291edbff/stapler-87532510.tar.gz
)


> So, I put in a Source2: which contains the local tar.bz2 that I have. There 
> is no error in the compilation but fedpkg build seems to have an error that I 
> do not seem to get:
>
> aarem's pdf-stapler-1.0.0-1.fc32 failed to build
>    http://koji.fedoraproject.org/koji/buildinfo?buildID=1424956

It appears that the tests defined in the %check section download some
files over the internet and since koji does not allow internet access,
the test suite is failing. I did not check what is defined in the test
suite, but your options are to disable checks, include the test files
as separate sources or package them as new packages (going through the
review process), depending on their nature.


0. https://fedoraproject.org/wiki/Packaging:SourceURL
1. https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-27 Thread Alexander Ploumistos
Hello,

On Fri, Dec 27, 2019 at 7:44 AM Globe Trotter via devel
 wrote:
>
> However, I have a problem: the issue is that Source0 does not have the latest 
> tar.bz2 while Source1 does not call it 1.0.0 though the release notes say so 
> (there).

You should have just one SourceX tag for each tarball. Since all three
of your links essentially point to the same thing and the actual
upstream is on github, keep only the URL to the source package you are
using. In your case, you are using a git snapshot, so you should be
following the relevant guidelines[0, 1], which if I'm interpreting
correctly, should result in something like this:

%global commit 875325103234b4a3ed96a4a5167ff78c291edbff
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commitdate 20191215

Name:   pdf-stapler
Version:1.0.0
Release:0.1.%{commitdate}git%{shortcommit}%{?dist}
Summary:Tool for manipulating PDF documents from the command line
License:BSD
URL:https://github.com/hellerbarde/stapler
Source0:   
https://github.com/hellerbarde/stapler/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

(The actual source URL is this one:
https://github.com/hellerbarde/stapler/archive/875325103234b4a3ed96a4a5167ff78c291edbff/stapler-87532510.tar.gz
)


> So, I put in a Source2: which contains the local tar.bz2 that I have. There 
> is no error in the compilation but fedpkg build seems to have an error that I 
> do not seem to get:
>
> aarem's pdf-stapler-1.0.0-1.fc32 failed to build
> http://koji.fedoraproject.org/koji/buildinfo?buildID=1424956

It appears that the tests defined in the %check section download some
files over the internet and since koji does not allow internet access,
the test suite is failing. I did not check what is defined in the test
suite, but your options are to disable checks, include the test files
as separate sources or package them as new packages (going through the
review process), depending on their nature.


0. https://fedoraproject.org/wiki/Packaging:SourceURL
1. https://docs.fedoraproject.org/en-US/packaging-guidelines/Versioning/
___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-26 Thread Globe Trotter via devel
   On Thursday, December 26, 2019, 10:34:12 AM CST, José Abílio Matos 
 wrote: 

> Something weird in your spec file is that it has two source files:

> Source0:        https://pypi.python.org/packages/source/s/stapler/stapler-%
{version}.tar.bz2
> Source1:        https://github.com/hellerbarde/stapler/archive/stapler=%
{version}.tar.bz2

> The second looks an error, notice the equal sign after the name. And if it is 
>  supposed to be the same then why are there two locations? This seems the 
> likely cause of your problem.
Thanks! That must have been it. The package compiles.
However, I have a problem: the issue is that Source0 does not have the latest 
tar.bz2 while Source1 does not call it 1.0.0 though the release notes say so 
(there).
So, I put in a Source2: which contains the local tar.bz2 that I have. There is 
no error in the compilation but fedpkg build seems to have an error that I do 
not seem to get:
aarem's pdf-stapler-1.0.0-1.fc32 failed to build
    http://koji.fedoraproject.org/koji/buildinfo?buildID=1424956

And here is the spec file:

$ fpaste  pdf-stapler.spec
Uploading (4.7KiB)...
https://paste.centos.org/view/c2c3d4bf


Any help would be greatly and very gratefully appreciated!
Many thanks!
  ___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


Re: help with repackaging pdf-stapler for python3

2019-12-26 Thread José Abílio Matos
On Thursday, 26 December 2019 16.07.01 WET Globe Trotter via devel wrote:
> Hi,
> 
> I am tryingto repackage pdf-stapler with python3.
> 
> My updated SPEC file is:
> 
> https://paste.centos.org/view/b7477290
> 
> This SPEC file builds the binary using

Something weird in your spec file is that it has two source files:

Source0:https://pypi.python.org/packages/source/s/stapler/stapler-%
{version}.tar.bz2
Source1:https://github.com/hellerbarde/stapler/archive/stapler=%
{version}.tar.bz2

The second looks an error, notice the equal sign after the name. And if it is 
supposed to be the same then why are there two locations? This seems the 
likely cause of your problem.

-- 
José Abílio

___
devel mailing list -- devel@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org


help with repackaging pdf-stapler for python3

2019-12-26 Thread Globe Trotter via devel
Hi,
I am tryingto repackage pdf-stapler with python3. 

My updated SPEC file is:

https://paste.centos.org/view/b7477290

This SPEC file builds the binary using 

rpmbuld -bb pdf-stapler.spec

fine, and the binary even installs. From what I can test, it seems to work.

However, when I try to use:
rpmbuild -ba pdf-stapler.spec
I get the following. I am not very familiar with the intricacies of packaging 
(sorry) but this is the first time such an error has shown up for me. Any 
suggestions? 

Many thanks in advance.

$ rpmbuild -ba pdf-stapler.spec 
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.as88BY
+ umask 022
+ cd /home/aarem/rpmbuild/BUILD
+ cd /home/aarem/rpmbuild/BUILD
+ rm -rf stapler-1.0.0
+ /usr/bin/bzip2 -dc /home/aarem/rpmbuild/SOURCES/stapler-1.0.0.tar.bz2
+ /usr/bin/tar -xof -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd stapler-1.0.0
+ /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w .
+ sed -i 's|"PyPDF2>=1.24"||' setup.py
+ exit 0
Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.9D7r1f
+ umask 022
+ cd /home/aarem/rpmbuild/BUILD
+ cd stapler-1.0.0
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong 
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ /usr/bin/python3 setup.py build '--executable=/usr/bin/python3 -s'
/usr/lib/python3.7/site-packages/setuptools/dist.py:475: UserWarning: 
Normalizing '1.0.0-rc1' to '1.0.0rc1'
  normalized_version,
running build
running build_py
creating build
creating build/lib
creating build/lib/staplelib
copying staplelib/stapler.py -> build/lib/staplelib
copying staplelib/commands.py -> build/lib/staplelib
copying staplelib/__init__.py -> build/lib/staplelib
copying staplelib/iohelper.py -> build/lib/staplelib
copying staplelib/tests.py -> build/lib/staplelib
running egg_info
creating stapler.egg-info
writing stapler.egg-info/PKG-INFO
writing dependency_links to stapler.egg-info/dependency_links.txt
writing entry points to stapler.egg-info/entry_points.txt
writing requirements to stapler.egg-info/requires.txt
writing top-level names to stapler.egg-info/top_level.txt
writing manifest file 'stapler.egg-info/SOURCES.txt'
reading manifest file 'stapler.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'stapler.egg-info/SOURCES.txt'
creating build/lib/staplelib/testfiles
copying staplelib/testfiles/1page.pdf -> build/lib/staplelib/testfiles
copying staplelib/testfiles/5page.pdf -> build/lib/staplelib/testfiles
+ exit 0
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.KFKATx
+ umask 022
+ cd /home/aarem/rpmbuild/BUILD
+ '[' /home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64 '!=' / ']'
+ rm -rf /home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64
++ dirname /home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64
+ mkdir -p /home/aarem/rpmbuild/BUILDROOT
+ mkdir /home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64
+ cd stapler-1.0.0
+ CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 
-Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong 
-grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 
-specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic 
-fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection'
+ LDFLAGS='-Wl,-z,relro -Wl,--as-needed  -Wl,-z,now 
-specs=/usr/lib/rpm/redhat/redhat-hardened-ld'
+ /usr/bin/python3 setup.py install -O1 --skip-build --root 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64
/usr/lib/python3.7/site-packages/setuptools/dist.py:475: UserWarning: 
Normalizing '1.0.0-rc1' to '1.0.0rc1'
  normalized_version,
running install
running install_lib
creating /home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr
creating /home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib
creating 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib/python3.7
creating 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib/python3.7/site-packages
creating 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/staplelib
copying build/lib/staplelib/stapler.py -> 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/staplelib
creating 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/staplelib/testfiles
copying build/lib/staplelib/testfiles/5page.pdf -> 
/home/aarem/rpmbuild/BUILDROOT/pdf-stapler-1.0.0-1.fc30.x86_64/usr/lib/python3.7/site-packages/staplelib/testfiles
copying build/lib/staplelib/testfiles/1page.pdf ->