[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [leafnode-list] Building RPM for leafnode-2
Daniel Zwick schrieb am 2004-01-17:
> I thought I'd give leafnode-2 a try, and tried to build an RPM package using
> the following command:
> $ rpmbuild -ta --target=i686 Software/leafnode-2.0.0.alpha20040116a.tar.bz2
>
> This will fail, giving the following message:
>
> File not
> found: /var/tmp/leafnode-2.0.0.alpha20040116a-buildroot/var/lock/news
The .spec file shipped with 20040116a is outdated. Find attached a new
.spec file and report if it works for you.
WARNING: The RPM built with the attached .spec file on SuSE Linux 8.2. I
did not try to install or test it. Use at your own risk and please
report your findings.
Please apologize the inconvenience, I'm not testing the RPM often.
--
Matthias Andree
Encrypt your mail: my GnuPG key ID is 0x052E7D95
# DO NOT EDIT!
# leafnode.spec. Generated from leafnode.spec.in by configure.
Version: 2.0.0.alpha20040116a
Summary: Leafnode - a leafsite NNTP server (version %version)
Summary(de): Leafnode - ein offline-Newsserver (Version %version)
Name: leafnode
Release: 0
Copyright: see COPYING
Group: Applications/News
Source: http://mandree.home.pages.de/leafnode/beta/leafnode-%version.tar.bz2
%define prefix /usr
%define spooldir /var/spool/news
%define confdir /etc/leafnode
%define runas_user news
%define runas_group news
# Distribution: ${DISTRIBUTION}
Buildroot: /var/tmp/leafnode-%version-buildroot/
Packager: Matthias Andree <matthias.andree@xxxxxx>
%description
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.
%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.
%prep
%setup -q
CFLAGS="$RPM_OPT_FLAGS"
%configure \
--enable-spooldir=%spooldir \
--enable-runas-user=%{runas_user} --with-runas-group=%{runas_group}
%build
make -s
make -s check
%install
# first clean out any prior aborted runs
[ "$RPM_BUILD_ROOT" != "/" ] && [ "x$RPM_BUILD_ROOT" != "x" ] && rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install-strip
cp $RPM_BUILD_ROOT/%confdir/filters.example $RPM_BUILD_ROOT/%confdir/filters
cp $RPM_BUILD_ROOT/%confdir/config.example $RPM_BUILD_ROOT/%confdir/config
%files
%defattr(-,root,root)
%dir %attr(750,root,news) %confdir
%config(noreplace) %attr(640,root,news) %confdir/config
%config(noreplace) %attr(640,root,news) %confdir/filters
%attr(640,root,news) %confdir/config.example
%attr(640,root,news) %confdir/filters.example
%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/texpire
%doc %_mandir/man1/*
%doc %_mandir/man5/*
%doc %_mandir/man8/*
%doc ChangeLog AUTHORS COPYING COPYING.LGPL NEWS
%doc CREDITS DEBUGGING ENVIRONMENT FAQ INSTALL
%doc README TODO README_FIRST
%doc README.html DEBUGGING
%attr(2755,%{runas_user},%{runas_group}) %spooldir
%clean
[ "$RPM_BUILD_ROOT" != "/" ] && [ "x$RPM_BUILD_ROOT" != "x" ] && rm -rf $RPM_BUILD_ROOT
--
_______________________________________________
leafnode-list mailing list
leafnode-list@xxxxxxxxxxxxxxxxxxxxxxxxxxxx
http://www.dt.e-technik.uni-dortmund.de/mailman/listinfo/leafnode-list
http://leafnode.sourceforge.net/