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]

 



Hello,

I am a modest Fedora contributor and have packaged both C and python code separately. I would like to package the fetchmail 7.0.0 alpha6 code so I was working off the existing spec file. However, I am not sure how to handle the python files which have been included. I was wondering if I could get some advice.

I am including my SPEC file:

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
BuildRequires:  python3-devel
BuildRequires:  python3-nose
BuildRequires:  python3-six

%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 --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

%changelog


Here is the eror message I am getting (expected since I do not know how to handle separate python code).

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


Thanks in advance for any advice!
_______________________________________________
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