"Fossies" - the Fresh Open Source Software Archive 
Member "leafnode-1.12.0/leafnode.spec" (26 May 2022, 3714 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:
As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) RPM Spec source code syntax highlighting (style:
standard) with prefixed line numbers.
Alternatively you can here
view or
download the uninterpreted source code file.
See also the latest
Fossies "Diffs" side-by-side code changes report for "leafnode.spec":
1.11.12_vs_1.12.0.
1 # DO NOT EDIT!
2 # leafnode.spec. Generated from leafnode.spec.in by configure.
3
4 Version: 1.12.0
5 Summary: Leafnode - a leafsite NNTP server (Version %version)
6 Summary(de): Leafnode - ein offline-Newsserver (Version %version)
7 Name: leafnode
8 Release: 1
9 License: GPL
10 Group: Applications/News
11 Source: http://prdownloads.sourceforge.net/leafnode/leafnode-%version.tar.xz
12 Prefix: /usr
13 # Distribution: ${DISTRIBUTION}
14 Buildroot: /var/tmp/leafnode-%version-buildroot/
15 Packager: Matthias Andree <matthias.andree@gmx.de>
16 BuildPrereq: libpcre2-8.so.0
17 Requires: xinetd
18 Conflicts: inn cnews
19
20 # WARNING: DO -NOT- REMOVE THE /leafnode COMPONENT FROM confdir!
21 # If you do, the RPM will subvert original system permissions.
22 %define confdir /etc/leafnode
23 %define spooldir /var/spool/news
24 %define lockfile /var/spool/news/leaf.node/lock.file
25
26 %description
27 Leafnode is a small NNTP server for leaf sites without permanent
28 connection to the internet. It supports a subset of NNTP and is able to
29 automatically fetch the newsgroups the user reads regularly from the
30 newsserver of the ISP.
31
32 %description -l de
33 Leafnode ist ein offline-Newsserver, der vor allem für den typischen
34 Einzelnutzer-Rechner ohne permanente Internetanbindung geeignet ist.
35 Leafnode bezieht automatisch die Newsgroups, die der oder die Nutzer
36 regelmäßig lesen, vom Newsserver des Providers.
37
38 %prep
39 test -f /usr/include/pcre/pcre2.h \
40 || test -f /usr/include/pcre2.h \
41 || { echo >&2 "You MUST install the pcre2-devel package before building this RPM." ; exit 1 ; }
42 %setup
43 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --mandir=%_mandir \
44 --with-spooldir=%spooldir\
45 --sysconfdir=%confdir --with-lockfile=%lockfile
46
47 %build
48 make
49
50 %install
51 rm -rf $RPM_BUILD_ROOT
52
53 make DESTDIR=$RPM_BUILD_ROOT install
54 for i in $RPM_BUILD_ROOT/%{confdir}/*.example ; do
55 cp -p $i ${i%%.example}
56 done
57
58 # texpire cron job
59 mkdir -p $RPM_BUILD_ROOT/etc/cron.daily
60 install -m755 leafnode.cron.daily \
61 $RPM_BUILD_ROOT/etc/cron.daily/leafnode
62
63 # xinetd sample file
64 mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
65 install -m644 leafnode.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/leafnode
66
67 # German manual pages and documentation
68 for i in 1 8 ; do
69 mkdir -p $RPM_BUILD_ROOT/%{_mandir}/de/man$i
70 install -m644 doc_german/*.$i $RPM_BUILD_ROOT/%{_mandir}/de/man$i
71 #gzip -9f $RPM_BUILD_ROOT/%{_mandir}/de/man/man$i/*.?
72 done
73 rm -f doc_german/*.in doc_german/*.? doc_german/Makefile*
74
75 cat >README.rpm <<EOF
76 Note: this RPM has pre-installed a configuration file for xinetd.
77 Read /etc/xinetd.d/leafnode for the prerequisites to use it.
78 EOF
79
80 %files
81 %defattr(-,root,root)
82 %attr(750,root,news) %dir %confdir/
83
84 %config(noreplace) %attr(640,root,news) %confdir/config
85 %config(noreplace) %attr(640,root,news) %confdir/filters
86 %config(noreplace) /etc/cron.daily/leafnode
87 %config(noreplace) /etc/xinetd.d/leafnode
88
89 %attr(640,root,news) %confdir/config.example
90 %attr(640,root,news) %confdir/filters.example
91 %prefix/bin/*
92 %prefix/sbin/*
93
94 %doc %_mandir/man1/*
95 %doc %_mandir/man8/*
96 %doc %_mandir/de/*/*
97
98 %doc COPYING COPYING.GPL COPYING.LGPL CREDITS ChangeLog ChangeLog.old
99 %doc FAQ.txt FAQ.html FAQ.pdf INSTALL
100 %doc NEWS OLDNEWS README* ADD-ONS
101 %doc doc_german
102 %doc leafnode-SA-*
103 %doc UNINSTALL-daemontools
104
105 %doc %attr(755,root,root) tools/*.pl
106
107 %dir %attr(2755,news,news) %spooldir
108 %dir %attr(2755,news,news) %spooldir/leaf.node
109 %dir %attr(775,news,news) %spooldir/failed.postings
110 %dir %attr(775,news,news) %spooldir/interesting.groups
111 %dir %attr(2755,news,news) %spooldir/out.going
112 %dir %attr(755,news,news) %spooldir/temp.files
113 %dir %attr(2755,news,news) %spooldir/message.id
114
115 %post
116 echo "Remember to edit /etc/xinetd.d/leafnode and reload xinetd."
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT %{_builddir}/%name-%version