Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-17 Thread Ralf Corsepius
On 02/17/2015 08:57 AM, Heinz Diehl wrote: On 16.02.2015, Ranjan Maitra wrote: The problem I am having is that the stapler version at the URL is called stapler-master.. In the .spec file, you have a line like this: Source0:https://github.com/hellerbarde/stapler/archive/master.zip I

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-16 Thread Ranjan Maitra
Thanks very much! So here is the problem I have: %global snapdate 20150128 %global commit 8b5f409afc9b35e0fe71ceb46d97292d79a7158b %global shortcommit %(c=%{commit}; echo ${c:0:7}) %global realname stapler Name: pdf%{realname} # The Version is hidden in the stapler script

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-16 Thread Heinz Diehl
On 16.02.2015, Ranjan Maitra wrote: The problem I am having is that the stapler version at the URL is called stapler-master.. In the .spec file, you have a line like this: Source0:https://github.com/hellerbarde/stapler/archive/master.zip I think this is a security hole, because

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-16 Thread Ranjan Maitra
Hi Ralf, Thanks again! How and where in the .spec file should I do this? Something along the lines of: Name: pdfstapler ... URL: somewhere/stapler-version.tar.gz The problem I am having is that the stapler version at the URL is called stapler-master. I did try what you suggested

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-16 Thread Ranjan Maitra
Of course, you'd have to check if the files inside of your package would clash with files provided by other packages, in particular against the files inside of the other stapler: # repoquery -ql stapler /usr/share/doc/stapler /usr/share/doc/stapler/LICENSE

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-16 Thread Ralf Corsepius
On 02/16/2015 03:42 PM, Ranjan Maitra wrote: So, these two files conflict: /usr/share/doc/stapler /usr/share/doc/stapler/CONTRIBUTORS Not sure how to get around this. You need to change your package's name, i.e. the value on the right-hand side of the Name: -tag inside of your rpm spec.

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ralf Corsepius
On 02/15/2015 04:18 PM, Ranjan Maitra wrote: On Sun, 15 Feb 2015 08:07:47 +0100 Ralf Corsepius rc040...@freenet.de wrote: On 02/15/2015 06:46 AM, Ranjan Maitra wrote: RPM build errors: Installed (but unpackaged) file(s) found: /usr/bin/stapler

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ranjan Maitra
On Sun, 15 Feb 2015 08:07:47 +0100 Ralf Corsepius rc040...@freenet.de wrote: On 02/15/2015 06:46 AM, Ranjan Maitra wrote: RPM build errors: Installed (but unpackaged) file(s) found: /usr/bin/stapler /usr/lib/python2.7/site-packages/staplelib/__init__.py

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ranjan Maitra
Your rpm.spec's %files section is incomplete. Thanks, Ralf! What would complete it? Adding the missing files to the spec's file section? E.g. your spec seems to be missing %files ... %{_bindir}/stapler ... and something similar to ... %{python2_sitelib}/* ... But

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ranjan Maitra
Hello, However, your suggestions really helped me and I was able to modify the spec file (was missing the python2-sitelib part) and can make a rpm. Here is the spec file: $ fpaste pdfstapler.spec Uploading (2.4KiB)... http://ur1.ca/jqgcf - http://paste.fedoraproject.org/185742/15606142

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ranjan Maitra
Hi, Thanks for this! In case you do not to intend to submit this package to Fedora, the only way to avoid this clash, is to resort to renaming your package (e.g. to call it pdfstapler). How and where in the .spec file should I do this? What happens to the binary, etc inside the package?

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ralf Corsepius
On 02/16/2015 06:41 AM, Ranjan Maitra wrote: Hi, Thanks for this! In case you do not to intend to submit this package to Fedora, the only way to avoid this clash, is to resort to renaming your package (e.g. to call it pdfstapler). How and where in the .spec file should I do this?

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-15 Thread Ralf Corsepius
On 02/15/2015 06:03 PM, Ranjan Maitra wrote: Also, the binary is called stapler. However, there is already a stapler binary (as part of a totally different package for URL applications). Is there a way to name this automagically? (The package and the binary that I am packaging are called

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-14 Thread Ranjan Maitra
On Sat, 17 Jan 2015 23:08:42 +0100 Felix Schwarz fschw...@fedoraproject.org wrote: Am 17.01.2015 um 21:13 schrieb Ranjan Maitra: and the PyPDF2 is this one: https://mstamy2.github.io/PyPDF2/ There are a few requests for PyPDF2 in bugzilla. As I mentioned a couple of times I'd like

Re: RPM build error

2015-02-14 Thread Ranjan Maitra
Thank you very much! I got this working following your instructions (and modifying the spec file) and would be happy to submit it somewhere if there is interest. Btw, I always thought that this was GPL, but turns out that it is a BSD-like license. Best wishes, Ranjan On Sat, 14 Feb 2015

Re: RPM build error

2015-02-14 Thread Ranjan Maitra
On Sat, 25 Jan 2014 00:49:02 +0100 poma pomidorabelis...@gmail.com wrote: On 24.01.2014 23:05, Ranjan Maitra wrote: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz … Not sure what the issue is, but

Re: RPM build error

2015-02-14 Thread jd1008
On 02/14/2015 07:49 PM, Ranjan Maitra wrote: On Sat, 25 Jan 2014 00:49:02 +0100 poma pomidorabelis...@gmail.com wrote: On 24.01.2014 23:05, Ranjan Maitra wrote: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz

Re: RPM build error

2015-02-14 Thread Ranjan Maitra
I suggest you build the source as follows (assuming you downloaded the source): sudo yum-builddep -y sylfilter-0.8-1pclos2013.src.rpm now as non-root: rpm -ivh sylfilter-0.8-1pclos2013.src.rpm cd { to the SPECS directory }. I assume it will be somewhere in your home dir.

Re: PyPDF2 and stapler (RPM build error for stapler)

2015-02-14 Thread Ralf Corsepius
On 02/15/2015 06:46 AM, Ranjan Maitra wrote: RPM build errors: Installed (but unpackaged) file(s) found: /usr/bin/stapler /usr/lib/python2.7/site-packages/staplelib/__init__.py /usr/lib/python2.7/site-packages/staplelib/__init__.pyc

Re: RPM build error

2015-02-14 Thread jd1008
On 02/14/2015 08:03 PM, jd1008 wrote: On 02/14/2015 07:49 PM, Ranjan Maitra wrote: On Sat, 25 Jan 2014 00:49:02 +0100 poma pomidorabelis...@gmail.com wrote: On 24.01.2014 23:05, Ranjan Maitra wrote: Hello, I am trying to build an RPM for sylfilter available at

Re: RPM build error

2014-01-26 Thread poma
On 25.01.2014 02:25, Ranjan Maitra wrote: Thanks very much! How does one create a source rpm? Anyway, this was really my personal copy? How does one serve a source rpm, or for that matter, sign a rpm? If you are creating and distributing RPMs, one thing you may want to consider providing

Re: RPM build error

2014-01-26 Thread poma
On 26.01.2014 04:53, Ranjan Maitra wrote: Btw, forgot to mention that: yum install http://download.opensuse.org/repositories/home:/SeaEagle1/Fedora_19/x86_64/sylfilter-0.8-12.1.x86_64.rpm installs sylfilter. No need for another rpm as a result. $ su - Password: # cd /etc/yum.repos.d/ #

Re: RPM build error

2014-01-25 Thread Ranjan Maitra
$ rpm -qip | grep Signature Signature : DSA/SHA1, Thu 21 Nov 2013 01:00:01 AM CET, Key ID 6d124fa1f5421236 Btw, forgot to mention that: yum install http://download.opensuse.org/repositories/home:/SeaEagle1/Fedora_19/x86_64/sylfilter-0.8-12.1.x86_64.rpm installs sylfilter. No need for

RPM build error

2014-01-24 Thread Ranjan Maitra
Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz with the attached .spec file but I get the following errors: . error: Installed (but unpackaged) file(s) found: /usr/include/sylfilter/bayes-filter.h

Re: RPM build error

2014-01-24 Thread Michael Schwendt
On Fri, 24 Jan 2014 16:05:40 -0600, Ranjan Maitra wrote: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz with the attached .spec file but I get the following errors: . error: Installed (but

Re: RPM build error

2014-01-24 Thread Jack Craig
i get ... checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... GNU/Linux ld.so (cached) (cached) checking how to hardcode library paths into programs... immediate appending configuration tag F77 to libtool checking for

Re: RPM build error

2014-01-24 Thread poma
On 24.01.2014 23:05, Ranjan Maitra wrote: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz … Not sure what the issue is, but wondering if anyone had any suggestions? Many thanks and best wishes, Ranjan

Re: RPM build error

2014-01-24 Thread Rick Stevens
On 01/24/2014 02:05 PM, Ranjan Maitra issued this missive: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz with the attached .spec file but I get the following errors: . error: Installed (but unpackaged)

Re: RPM build error

2014-01-24 Thread Rick Stevens
On 01/24/2014 03:57 PM, Rick Stevens issued this missive: On 01/24/2014 02:05 PM, Ranjan Maitra issued this missive: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz with the attached .spec file but I get the

Re: RPM build error

2014-01-24 Thread Ranjan Maitra
On Fri, 24 Jan 2014 23:13:23 +0100 Michael Schwendt mschwe...@gmail.com wrote: On Fri, 24 Jan 2014 16:05:40 -0600, Ranjan Maitra wrote: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz with the

Re: RPM build error

2014-01-24 Thread Ranjan Maitra
On Fri, 24 Jan 2014 15:57:22 -0800 Rick Stevens ri...@alldigital.com wrote: On 01/24/2014 02:05 PM, Ranjan Maitra issued this missive: Hello, I am trying to build an RPM for sylfilter available at http://sylpheed.sraoss.jp/sylfilter/src/sylfilter-%{?version}.tar.gz with the attached

Re: RPM build error

2014-01-24 Thread poma
On 25.01.2014 01:06, Ranjan Maitra wrote: I had attached it to an earlier e-mail but the mail does not seem to have shown up. So I have posted it at: http://www.public.iastate.edu/~maitra/shunya/sylfilter-0.8-1.fc20.x86_64.rpm in case anyone is interested. Ranjan: $ rpm -qip

Re: RPM build error

2014-01-24 Thread Ranjan Maitra
On Sat, 25 Jan 2014 01:55:16 +0100 poma pomidorabelis...@gmail.com wrote: On 25.01.2014 01:06, Ranjan Maitra wrote: I had attached it to an earlier e-mail but the mail does not seem to have shown up. So I have posted it at: