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

[leafnode-list] Re: leafnode.spec.in needs patch (Version 2)



"Kevin R. Bulgrien" <kbulgrien@xxxxxxxxxxxxxxxx> writes:

> The problem arose because I did change %prefix to /usr/local and the
> rpmbuild process croaked.

Well, what I found in the years I was around packaging RPMs is that the
RPM documentation is abysmal. There's somewhat recent documentation on
the basics on the Fedora website, but either SUSE forget packaging half
of the docs or there are none.

Anyways, can you try the attached patch and let me know if it works
better for you? It does for me.

You still need to edit the _prefix line to read /usr/local,
I left it at /usr.

> For the time being,  I gave up and left %prefix as /usr.  It is, after all
> a package, so it can be cleanly removed.  I was just thinking it would
> be nice to have my customized packages installed to /usr/local and
> not to the same base that the native distribution packages were
> installed.   I posted because it seems that there might be a bug in
> the spec file set up as it relates to %prefix, or at least something
> that is not very clear to people who aren't building RPMs on a regular
> basis.

The %configure macro, at least on SUSE 10.0 that I'm using, indeed uses
%_prefix instead. ("rpm --showrc | less" to see the macros, look for the
configure macro and see if it passes --prefix=%{_prefix} in).

-- 
Matthias Andree
Sun Jul 16 16:06:58 CEST 2006  Matthias Andree <matthias.andree@xxxxxx>
  * Update .spec.in to pass non-standard prefixes to %configure and use License, not Copyright.
  Reported by Kevin Bulgrien.
--- old-leafnode-2/leafnode.spec.in	2006-07-17 00:18:03.000000000 +0200
+++ new-leafnode-2/leafnode.spec.in	2006-07-17 00:18:03.000000000 +0200
@@ -6,11 +6,11 @@
 Summary(de): Leafnode - ein offline-Newsserver (Version %version)
 Name: leafnode
 Release: 0
-Copyright: see COPYING
-Group: Applications/News
+License: see COPYING
+Group: Productivity/Networking/News/Servers
 Source: http://mandree.home.pages.de/leafnode/beta/leafnode-%version.tar.bz2
 
-%define prefix      /usr
+%define _prefix     /usr
 %define spooldir    /var/spool/news
 %define confdir     /etc/leafnode
 %define runas_user  news
@@ -23,13 +23,15 @@
 Leafnode is a small NNTP server for leaf sites without permanent
 connection to the internet. It supports a subset of NNTP and is able to
 automatically fetch the newsgroups the user reads regularly from the
-newsserver of the ISP.
+newsserver of the ISP and additionally offer local (site-specific)
+groups to a LAN.
 
 %description -l de
 Leafnode ist ein offline-Newsserver, der vor allem für den typischen
 Einzelnutzer-Rechner ohne permanente Internetanbindung geeignet ist.
 Leafnode bezieht automatisch die Newsgroups, die der oder die Nutzer
-regelmäßig lesen, vom Newsserver des Providers.
+regelmäßig lesen, vom Newsserver des Providers. Weiter erlaubt es, lokale
+(Standort-spezifische) Newsgruppen im LAN anzubieten.
 
 %prep
 %setup -q
@@ -58,16 +60,16 @@
 %attr(640,root,news) %confdir/config.example
 %attr(640,root,news) %confdir/filters.example
 %attr(640,root,news) %confdir/uucp
-%attr(755,root,root) %{prefix}/bin/leafnode-version
-%attr(755,root,root) %{prefix}/bin/lsmac.pl
-%attr(755,root,root) %{prefix}/bin/newsq
-%attr(755,root,root) %{prefix}/sbin/applyfilter
-%attr(755,root,root) %{prefix}/sbin/checkgroups
-%attr(755,root,root) %{prefix}/sbin/fetchnews
-%attr(755,root,root) %{prefix}/sbin/leafnode
-%attr(755,root,root) %{prefix}/sbin/rnews
-%attr(755,root,root) %{prefix}/sbin/sendbatch.bash
-%attr(755,root,root) %{prefix}/sbin/texpire
+%attr(755,root,root) %{_prefix}/bin/leafnode-version
+%attr(755,root,root) %{_prefix}/bin/lsmac.pl
+%attr(755,root,root) %{_prefix}/bin/newsq
+%attr(755,root,root) %{_prefix}/sbin/applyfilter
+%attr(755,root,root) %{_prefix}/sbin/checkgroups
+%attr(755,root,root) %{_prefix}/sbin/fetchnews
+%attr(755,root,root) %{_prefix}/sbin/leafnode
+%attr(755,root,root) %{_prefix}/sbin/rnews
+%attr(755,root,root) %{_prefix}/sbin/sendbatch.bash
+%attr(755,root,root) %{_prefix}/sbin/texpire
 %doc %_mandir/man1/*
 %doc %_mandir/man5/*
 %doc %_mandir/man8/*

-- 
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
https://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/