Re: error: Installed (but unpackaged) file(s) found

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

 



On Wed, 2006-06-14 at 18:43 -0400, Paul W. Frields wrote:
> On Wed, 2006-06-14 at 07:09 -0500, David Eisenstein wrote:
> > In my experience with the "black art" of RPM packaging, the best way I
> > have found to learn about it is to read RPM .spec files and to play with
> > rpmbuild on already-existing packages made by Red Hat or others.
> > 
> [...snip...]
> > 
> > You may also wish to look around on http://www.rpm.org/ -- they have an
> > RPM FAQ as well as the "Maximum RPM" text which may help explain some
> > more.  I believe <http://www.rpm.org/RPM-HOWTO/build.html#FILES> talks
> > more about your specific question.

As requested.  I basically 'cheated' as such.  I didn't list out every
single file.  I just used the generic '*' in the directory.

I'm at the point now where I need to attach that bash script.  However
the bashscript is encompassed into an install file in the source.

I've extracted the important bits into a bash script file which needs to
be placed in /usr/bin/ so that it'll pass the command of python
-OO /usr/share/rufus.py.  As with the desktop file I've put it into the
SOURCES folder.

However reading the howto I've passed %setup -T 2 0 to try and get the
source unpacked then to add the file into the folder however.  I seem to
get errors which is understandable.  Any pointers?

One of the things I couldn't find is examples of adding additional files
that are not included in the actual source but not a patch.

I'll have a look through all the info thats been posted and thanks for
all the help thus far.

In a conceptual situation.  This has an MIT license and in so doing its
got about 3-4 license files what is the situation with this.  What I've
done is allocated them as docs as you can see.  They sometimes overlap
however this program has had numerous different developers and also
because it uses the bittorrent 1 files it has that license as well.  It
also has GPL licensed icons/pictures.  Is that the right thing to do?  I
obviously don't want to mess up that section which is important to the
developers.  It's just with all the different licenses in it I don't
know whether to base the license as MIT/GPL .

Thanks so much for the information.

Regards,

Marc
Name:		rufus
Version:        0.6.9
Release:        1%{?dist}
Summary:        A lightweight gui bittorrent client 

Group:          Applications/Internet
License:        MIT
URL:            http://rufus.sourceforge.net
Source0:        %{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python desktop-file-utils
Requires:       python python-GeoIP wxPython

%description
This is a light wieght Python Bittorrent program based on g3torrent and turbo
torrent.

%prep
%setup -q 
#%setup -n %{name}-%{version} -q


%build
 

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}
install -m 644 *.py ${RPM_BUILD_ROOT}/usr/share/%{name}
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/BitTorrent
install -m 644 BitTorrent/* ${RPM_BUILD_ROOT}/usr/share/%{name}/BitTorrent
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/images/flags
install -m 644 images/flags/* ${RPM_BUILD_ROOT}/usr/share/%{name}/images/flags
install -m 644 images/*.png ${RPM_BUILD_ROOT}/usr/share/%{name}/images/
install -m 644 images/*.ico ${RPM_BUILD_ROOT}/usr/share/%{name}/images/
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/locale/en/LC_MESSAGES
install -m 644 locale/en/LC_MESSAGES/* ${RPM_BUILD_ROOT}/usr/share/%{name}/locale/en/LC_MESSAGES
mkdir -p ${RPM_BUILD_ROOT}/usr/share/%{name}/locale/h4/LC_MESSAGES
install -m 644 locale/h4/LC_MESSAGES/* ${RPM_BUILD_ROOT}/usr/share/%{name}/locale/h4/LC_MESSAGES
install -m 644  rufus %{RPM_BUILD_ROOT}/usr/bin/rufus

desktop-file-install --vendor=rufus                            \
        --dir ${RPM_BUILD_ROOT}%{_datadir}/applications   \
	--add-category X-Fedora				\
        %{SOURCE1}

%clean
rm -rf $RPM_BUILD_ROOT

%post  
/sbin/ldconfig

%preun
/sbin/ldconfig

%files
%defattr(-,root,root,-)
%doc GeoIP.LICENSE.txt LeoXV.LICENSE.TXT LICENSES.TXT TODO.TXT CHANGELOG.TXT credits.txt images/license.txt images/readme.txt

/usr/share/rufus/*
/usr/share/applications/rufus.desktop
#/usr/bin/rufus

%changelog
* Wed Jun 14 2006 Marc Wiriadisastra <marc@xxxxxxxxxxxxxx>
- Initial Release
--
Fedora-mentors-list mailing list
Fedora-mentors-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/fedora-mentors-list

[Index of Archives]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux