LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 05-01-2012, 09:58 AM   #1
clcbluemont
Member
 
Registered: Feb 2009
Distribution: Slackware
Posts: 87

Rep: Reputation: 15
RPMBUILD unpackaged files listed


I have tried a lot of different options however when I run:
rpmbuild -bi SPECS/fftw-ppc.spec

I still get:
error: Installed (but unpackaged) file(s) found:
/usr/lib/debug/usr/local/bin/fftwf-wisdom.debug
/usr/local/bin/fftw-wisdom-to-conf
/usr/local/bin/fftwf-wisdom
/usr/local/include/fftw3.f
/usr/local/include/fftw3.h
/usr/local/lib/libfftw3f.a
/usr/local/lib/libfftw3f.la
/usr/local/lib/pkgconfig/fftw3f.pc
/usr/local/share/info/dir
/usr/local/share/info/fftw3.info
/usr/local/share/man/man1/fftw-wisdom-to-conf.1
/usr/local/share/man/man1/fftwf-wisdom.1


RPM build errors:
Installed (but unpackaged) file(s) found:
/usr/lib/debug/usr/local/bin/fftwf-wisdom.debug
/usr/local/bin/fftw-wisdom-to-conf
/usr/local/bin/fftwf-wisdom
/usr/local/include/fftw3.f
/usr/local/include/fftw3.h
/usr/local/lib/libfftw3f.a
/usr/local/lib/libfftw3f.la
/usr/local/lib/pkgconfig/fftw3f.pc
/usr/local/share/info/dir
/usr/local/share/info/fftw3.info
/usr/local/share/man/man1/fftw-wisdom-to-conf.1
/usr/local/share/man/man1/fftwf-wisdom.1

My SPEC file:
%define _topdir /usr/local/src/rpmbuild
%define name fftw
%define release 3
%define version 3.2.2
%define buildroot %{_topdir}/%{name}-%{version}-root
%define _bindir /usr/local/bin
%define _libdir /usr/local/lib

BuildRoot: %{buildroot}
Summary: Name2 FFTW Library
Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Development/Tools
Prefix: /usr
Source: %{name}-%{version}.tar.gz

%description
Name2 FFTW Library

%prep
%setup -q

%build
./configure --enable-altivec --enable-fma --enable-float --prefix=/usr/local
make -j4

%install
rm -fr $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
/usr/lib/debug/usr/local/bin/fftwf-wisdom.debug
%dir %{_bindir}/fftw-wisdom-to-conf
%dir %{_bindir}/fftwf-wisdom
/usr/local/include/fftw3.f
/usr/local/include/fftw3.h
%dir %{_libdir}/libfftw3f.a
%dir %{_libdir}/libfftw3f.la
%dir %{_libdir}/pkgconfig/fftw3f.pc
/usr/local/share/info/dir
/usr/local/share/info/fftw3.info
/usr/local/share/man/man1/fftw-wisdom-to-conf.1
/usr/local/share/man/man1/fftwf-wisdom.1


%changelog
* Mon Apr 30 2012 Joe user
- Updated other's RPM build to add --enable-altivec --enable-fma --enable-float
- Changed name1 to name2
- Changed topdir to /usr/local/src/rpmbuild/


As can be seen in the above SPEC file I have tried different ways of defining the files yet i still get these errors. Why? Thank you for your time in looking at this issue.
 
Old 05-01-2012, 10:30 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,534
Blog Entries: 51

Rep: Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601Reputation: 2601
I'll recycle a post about populating the %files section: http://www.linuxquestions.org/questi...5/#post4644907
 
Old 05-01-2012, 10:39 AM   #3
clcbluemont
Member
 
Registered: Feb 2009
Distribution: Slackware
Posts: 87

Original Poster
Rep: Reputation: 15
Solved

Looks like I was missing the following:
%clean
rm -rf %{buildroot}

I do not understand the why of it, but it certainly fixed the problem.
 
  


Reply

Tags
rpm, rpmbuild


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to delete files keeping the files listed in a text file -urgent jeesun Linux - General 4 10-21-2011 11:28 AM
problem with %files directive in rpmbuild pgpython Programming 1 12-11-2010 08:45 PM
Can't access files on SD card, folder listed twice traigo Linux - Newbie 1 06-23-2009 02:17 PM
tar the files listed in other file PMP Linux - Newbie 1 04-21-2009 08:50 AM
rpmbuild and custom /etc files cachemonet Red Hat 2 10-05-2007 03:57 PM


All times are GMT -5. The time now is 04:53 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration