"Fossies" - the Fresh Open Source Software Archive 
Member "elog-3.1.4-3/elog.spec" (19 Feb 2021, 5445 Bytes) of package /linux/www/elog-3.1.4-3.tar.gz:
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.
1 # ELOG weblog application
2 # rpmbuild -ba --define 'elogver 3.1.4' --define 'elogrel 2' --with ssl --with pam --with ldap --with krb5 --define 'factorydate date'
3
4 # define date of build for changelog and default release
5 %define build_timestamp %(LC_TIME=C date '+%a %b %d %Y')
6 %{!?factorydate: %define factorydate %build_timestamp}
7
8 # default version and release
9 %{!?elogver: %define elogver 3.1.4 }
10 %{!?elogrel: %define elogrel 3 }
11 # default release is build date
12 %{!?elogrel: %define elogrel %{build_timestamp} }
13
14 # Build options :
15 # Read: If neither macro exists, then add the default definition.
16 %{?_with_krb5: %define _with_krb5 USE_KRB5=1}
17 %{?_with_ldap: %define _with_ldap USE_LDAP=1}
18 %{?_with_pam: %define _with_pam USE_PAM=1}
19 %{?_with_ssl: %define _with_ssl USE_SSL=1}
20 # Default build options are with SSL
21 %{!?_with_ssl: %{!?_without_ssl: %define _with_ssl USE_SSL=1}}
22 # builder info
23 %define whoami %(eval who am i | awk '{print $1}')
24 %define HOSTNAME %(hostname)
25 %{!?packager: %define packager %{whoami} %{whoami}@%{HOSTNAME}}
26
27 Name: elog
28 Summary: elog is a standalone electronic web logbook
29 Version: %elogver
30 Release: %elogrel%{?customrel}%{?dist}
31 License: GPL
32 Group: Applications/Networking
33 Source: http://elog.psi.ch/elog/download/elog-%{elogver}-%{elogrel}.tar.gz
34 Vendor: Stefan Ritt <stefan.ritt@psi.ch>
35 URL: http://elog.psi.ch/elog
36 BuildRoot: /tmp/%{name}-root
37 Prefix: /usr/local
38 # Add build dependencies for pam, ssl and ldap features if enabled.
39 # Note: Tag tokens must start at beginning-of-line.
40 #
41 # Read: If feature is enabled, then add the build dependency.
42 %{?_with_krb5:BuildRequires: krb5-devel}
43 %{?_with_krb5:Requires: krb5-libs}
44 %{?_with_ldap:BuildRequires: openldap-devel >= 2.4.1}
45 %{?_with_ldap:Requires: openldap >= 2.4.1}
46 %{?_with_pam:BuildRequires: pam-devel >= 1.1.1}
47 %{?_with_ssl:BuildRequires: openssl-devel >= 0.9.8e}
48
49 %description
50 ELOG is part of a family of applications known as weblogs.
51 Their general purpose is :
52
53 1. To make it easy for people to put information online in a chronological
54 fashion, in the form of short, time-stamped text messages ("entries")
55 with optional HTML markup for presentation, and optional file attachments
56 (images, archives, etc.)
57
58 2. To make it easy for other people to access this information through a
59 Web interface, browse entries, search, download files, and optionally add,
60 update, delete or comment on entries.
61
62 ELOG is a remarkable implementation of a weblog in at least two respects :
63
64 - Its simplicity of use: you don't need to be a seasoned server operator
65 and/or an experimented database administrator to run ELOG ; one executable
66 file (under Unix or Windows), a simple configuration text file, and it works.
67 No Web server or relational database required. It is also easy to translate
68 the interface to the appropriate language for your users.
69
70 - Its versatility: through its single configuration file, ELOG can be made
71 to display an infinity of variants of the weblog concept. There are options
72 for what to display, how to display it, what commands are available and to whom,
73 access control, etc. Moreover, a single server can host several weblogs, and
74 each weblog can be totally different from the rest.
75
76 %changelog
77 * %{build_timestamp} %{packager} %{version}-%{release}
78 - rebuild with option(s): %{?_with_krb5:KRB5 }%{?_with_ldap:LDAP }%{?_with_pam:PAM }%{?_with_ssl:SSL}
79
80 * %{factorydate} Stefan Ritt <stefan.ritt@psi.ch> %{elogver}-%{elogrel}
81 - Updated from git Fri Jan 8 13:46:49 2021 +0100 - 395e101
82 * Wed Sep 26 2018 Stefan Ritt <stefan.ritt@psi.ch>
83 - Made adjustments for new elog server and RH7
84 * Fri Aug 29 2014 Stefan Ritt <stefan.ritt@psi.ch>
85 - Added BuildRequires, thanks to Stefan Roiser from CERN
86 * Fri Oct 21 2005 Stefan Ritt <stefan.ritt@psi.ch>
87 - Added resources/ directory
88 * Fri Mar 14 2003 Stefan Ritt <stefan.ritt@psi.ch>
89 - Added %post to change ownership of elog files
90 * Thu Jan 30 2003 Stefan Ritt <stefan.ritt@psi.ch>
91 - Added installation of man pages, thanks to Serge Droz <serge.droz@psi.ch>
92 * Tue Aug 13 2002 Stefan Ritt <stefan.ritt@psi.ch>
93 - Added elog group and user, thanks to Nicolas Chuche [nchuche@teaser.fr]
94 * Tue Jun 18 2002 Stefan Ritt <stefan.ritt@psi.ch>
95 - Put elogd.init into TAR file, add logbooks directory, put elogd in sbin/
96 * Tue Jun 18 2002 Serge Droz <serge.droz@psi.ch>
97 - Update to 2.0.0
98 * Mon Jun 3 2002 Serge Droz <serge.droz@psi.ch>
99 - Update to 1.3.6
100 * Fri May 31 2002 Serge Droz <serge.droz@psi.ch>
101 - Initial RPM
102
103
104 %prep
105 %setup -q -n elog-%{elogver}-%{elogrel}
106
107 %pre
108 %{_sbindir}/groupadd -r elog 2>/dev/null || :
109 %{_sbindir}/useradd -d / -s /bin/false \
110 -g elog -M -r elog 2>/dev/null || :
111
112 %build
113 make %{?_with_ssl} %{?_with_pam} %{?_with_ldap} %{?_with_krb5} CFLAGS="$RPM_OPT_FLAGS -O3 -funroll-loops -fomit-frame-pointer -W -Wall -Wno-deprecated-declarations -Wno-unused-result -Imxml"
114 sed "s#\@PREFIX\@#%{prefix}#g" elogd.init_template > elogd.init
115
116 %install
117 make install ROOT=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir}
118
119 %post
120 chown -R elog:elog $RPM_BUILD_ROOT%{prefix}/elog
121
122 %clean
123 rm -rf $RPM_BUILD_ROOT
124
125 %files
126 %defattr(-,root,root)
127 /etc/rc.d/init.d/elogd
128 %{_mandir}/man1/*
129 %{_mandir}/man8/*
130 %doc README COPYING doc
131 %defattr(-,elog,elog)
132 %prefix/bin/*
133 %prefix/sbin/elogd
134 %prefix/elog/resources
135 %prefix/elog/ssl
136 %prefix/elog/themes
137 %prefix/elog/scripts
138 %prefix/elog/logbooks
139 %config(noreplace) %prefix/elog/elogd.cfg