Re: question on spec file for building rpm with source file that includes python and C code

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, thanks for this! I am sorry I should get out of Yahoo! Mail: they do not allow general setting for quotes of replies, from what I can find out, so I will include things manually from now on.


>On Sunday, March 10, 2019, 10:34:34 AM CDT, Todd Zullinger <tmz@xxxxxxxxx> wrote:


>  Hi,

> [BTW, something is wrong with your mail client's quoting.It is very hard to read your replies when your reply and the
text to which you are replying to are at the same quote level.]


> Globe Trotter wrote:
>> Thanks! I see. Actually, I am not that keen on packaging fetchmailconf. I think that fetchmail users are able to edit their own files which do not change that frequently. 

>> So how do I get to ignore the python files? I am doing  exactly the same as in the current released spec file. I must be missign something.  Thanks!

> It seems that you've added the python3-* BuildeRequires which are not in the current Fedora fetchmail.spec.  They
were removed from the Fedora fetchmail.spec in fda3158 ("Remove unnecessary python-devel dependency", 2018-07-23):

Commit - rpms/fetchmail - fda3158 - src.fedoraproject.org




> You can see in that commit that there was previously a call to rm which removed the fetchmailconf.py* files as well.  It
was no longer needed with the python2-devel BuildeRequires removed.

>The fetchmailconf.py files are only installed if python is found by configure.  If you don't want fetchmailconf
packaged, drop those python3* packages from the BuildeRequires and ensure python is not in the buildroot.

> Since you're seeing the python files installed into the python2.7 sitelib, I would presume that you have python2 in
the buildroot where you're building.  If that's true, then removing the python3* BuildeRequires won't be sufficient.

> You should also pass PYTHON=: to configure, as the README.packaging document suggests.  That makes it clear
that even if python slips into the buildroot that you don't want fetchmail to use it.


I tried this earlier, but same problems. Here is my  fetchmail.spec:


Summary: A remote mail retrieval and forwarding utility
Name: fetchmail
Version: 7.0.0.alpha6
Release: 1%{?dist}
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# systemd service file
Source2: fetchmail.service
# example configuration file
Source3: fetchmailrc.example
URL: http://www.fetchmail.info/
# For a breakdown of the licensing, see COPYING
License: GPL+ and Public Domain
BuildRequires: gcc gettext-devel hesiod-devel krb5-devel openssl-devel systemd bison-devel flex-devel m4

%description
Fetchmail is a remote mail retrieval and forwarding utility intended
for use over on-demand TCP/IP links, like SLIP or PPP connections.
Fetchmail supports every remote-mail protocol currently in use on the
Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP ETRN, IPv6,
and IPSEC) for retrieval. Then Fetchmail forwards the mail through
SMTP so you can read it through your favorite mail client.

Install fetchmail if you need to retrieve mail over SLIP or PPP
connections.

%prep
%setup -q

%build
autoreconf -if
%configure PYTHON-: --enable-POP3 --enable-IMAP --with-ssl --with-hesiod \
    --enable-ETRN --enable-NTLM --enable-SDPS --enable-RPA \
    --enable-nls --with-kerberos5 --with-gssapi \
    --enable-fallback=no
make

%install
make install DESTDIR=$RPM_BUILD_ROOT


# install example systemd unit
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_unitdir}/fetchmail.service

# install example config file
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
install -p -m 600 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/fetchmailrc.example

# remove fetchmailconf stuff
rm -f $RPM_BUILD_ROOT%{_bindir}/fetchmailconf*
rm -f $RPM_BUILD_ROOT%{_mandir}/man1/fetchmailconf.1*

%find_lang %name

%files -f %{name}.lang
%doc COPYING NEWS README README.SSL TODO-7.0
%{_bindir}/fetchmail
%{_mandir}/man1/fetchmail.1*
%{_unitdir}/fetchmail.service
%config(noreplace) %attr(0600, mail, mail) %{_sysconfdir}/fetchmailrc.example


But I still get the same errors as I posted:

$ rpmbuild -bb fetchmail.spec

.....

error: Installed (but unpackaged) file(s) found:
   /usr/lib/python2.7/site-packages/fetchmailconf.py
   /usr/lib/python2.7/site-packages/fetchmailconf.pyc
   /usr/lib/python2.7/site-packages/fetchmailconf.pyo


RPM build errors:
    Installed (but unpackaged) file(s) found:
   /usr/lib/python2.7/site-packages/fetchmailconf.py
   /usr/lib/python2.7/site-packages/fetchmailconf.pyc
   /usr/lib/python2.7/site-packages/fetchmailconf.pyo

.....

Where do these errors come from?

Thanks again!!
















 

Todd_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux