spec file error

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

 



Hi,

I have been trying to create a rpm for gbuffy which I like. However, I am hitting an error in the install directories.

The program is at:

http://www.fiction.net/blong/programs/gbuffy/

Here is my specfile:


# Note that this is NOT a relocatable package
%define ver      0.2.6
%define rel 1%{?dist}

Summary: multiple mailbox buffy for GTK+
Name: gbuffy
Version: %ver
Release: %rel
License: GPL
Group: Applications/Communications
Source0: ~/C.libs/linux/%{name}-%{version}.tar.gz
Source1: http://www.fiction.net/blong/programs/gbuffy/gbuffy-%{ver}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-%(%{__id_u} -n)
URL: http://www.fiction.net/blong/programs/gbuffy
BuildRequires:  libPropList

%description
GBuffy is a GTK+ multiple mailbox "biff" program. It is conceptually
based on XBuffy by Bill Pemberton, but is a complete rewrite from
scratch.

GBuffy will poll multiple mailboxes for new mail. It will list the
number of new messages in each mailbox you configure. It will also
highlight the mailboxes which have new mail.

GBuffy is currently capable of watching MBOX, MMDF, Maildir and MH
Folders. This version also supports IMAP4rev1 and NNTP with XOVER
mailboxes.

%prep
%setup -q

%configure
%make_build

%install
%{make_install}
%find_lang %{name}

%{?ldconfig_scriptlets}

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%doc  README
%license GPL

%clean
rm -rf %{buildroot}





So, everything is fine, however I have the following problem:

......

 mkdir /home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64
+ cd gbuffy-0.2.6
+ /usr/bin/make install DESTDIR=/home/rpmbuild/BUILDROOT/gbuffy-0.2.6-1.fc35.x86_64 'INSTALL=/usr/bin/install -p'
./mkinstalldirs /usr/bin
make: ./mkinstalldirs: Permission denied
make: *** [Makefile:49: install] Error 127
error: Bad exit status from /var/tmp/rpm-tmp.vhOJPC (%install)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.vhOJPC (%install)


So, what happens is that there is a mkinstalldirs inside the archive that is triggered. It is supposed to be $(srcdir)/mkinstalldirs however, this is not recognized because I can not seem to be able to pass an srcdir into the configure scrrip.


I tried:



./configure --srcdir=${SRCDIR}

and many other things, but can not seem to get this right.

Any suggestions?

Thanks!




_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[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