source: trunk/server/fedora/specs/discuss.spec @ 2836

Last change on this file since 2836 was 2591, checked in by achernya, 8 years ago
Reintegrate fc20-dev into trunk
File size: 3.7 KB
Line 
1# Make sure to update this to coincide with the most recent debathena-discuss
2# release from http://debathena.mit.edu/apt/pool/debathena/d/debathena-discuss/
3%define upstreamversion 10.0.17
4Name:           discuss
5Version:        %{upstreamversion}
6Release:        1.%{scriptsversion}%{?dist}
7Vendor:         The scripts.mit.edu Team (scripts@mit.edu)
8Summary:        A conferencing and mail archiving system
9Group:          Applications/Archiving
10License:        MIT
11URL:            http://scripts.mit.edu/
12Source0:        debathena-%{name}_%{upstreamversion}.orig.tar.gz
13Source1:        discuss.xinetd
14BuildRoot:      %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
15BuildRequires:  athena-aclocal, byacc, libcom_err-devel, libss-devel, krb5-devel, zephyr-devel, readline-devel, less
16Requires:       less
17
18%description
19Discuss is a user-interface front end to a networked conferencing system.
20This is a clone of Debathena's debathena-discuss package.
21
22%prep
23%setup -q -n %{name}-%{upstreamversion}
24
25%build
26autoreconf -fi
27# automake doesn't like that there's no Makefile.am, but we're only
28# using it to copy in install-sh and config.{sub|guess}, so we don't
29# want the error return code to cause rpmbuild to bomb out.
30automake --add-missing --foreign || :
31%configure --without-krb4 --with-krb5 --with-zephyr --with-pager=/usr/bin/less
32#make %{?_smp_mflags}
33make
34
35%install
36rm -rf %{buildroot}
37make install DESTDIR=%{buildroot}
38# Unfortunately, discuss's build system doesn't presently support
39# building shared libraries, so we won't be installing any of the
40# dev stuff at all just yet.
41rm -rf %{buildroot}%{_includedir}
42rm -rf %{buildroot}%{_libdir}
43mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
44cp %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/%{name}
45mkdir -p %{buildroot}%{_localstatedir}/spool/discuss
46
47%clean
48rm -rf %{buildroot}
49
50%files
51%defattr(755,root,root)
52%{_bindir}/crmtgs
53%{_bindir}/discuss
54%{_bindir}/dsc_setup
55%{_bindir}/dsgrep
56%{_bindir}/dsmail
57%{_bindir}/dspipe
58%{_bindir}/mkds
59%{_bindir}/rmds
60%{_libexecdir}/edsc
61%defattr(-,root,root,-)
62/usr/share/discuss
63%doc %{_mandir}/man1/*.1.gz
64%doc %{_mandir}/man8/*.8.gz
65
66%post
67if ! grep -q '^discuss[[:space:]]' %{_sysconfdir}/services; then
68    cat <<EOF >>%{_sysconfdir}/services
69discuss         2100/tcp                # Networked conferencing
70EOF
71fi
72
73%package emacs
74Summary: Emacs interface to discuss
75Group: Applications/Archiving
76Requires: %{name}%{?_isa} = %{version}-%{release}, emacs
77%description emacs
78Discuss is a user-interface front end to a networked conferencing system.
79This package contains an Emacs interface to discuss.
80
81%files emacs
82%defattr(-,root,root,-)
83%{_datadir}/emacs/site-lisp/*.el
84
85%package server
86Summary: A conferencing and mail archiving system
87Group: Applications/Archiving
88Requires(pre): shadow-utils
89Requires: %{name}%{?_isa} = %{version}-%{release}, xinetd
90%description server
91A conferencing and mail archiving system.
92This package contains the discuss server.
93
94%files server
95%defattr(755,root,root)
96%{_bindir}/create_mtg_dir
97%{_sbindir}/discussd
98%attr(4755,discuss,discuss) %{_sbindir}/disserve
99%attr(755,discuss,discuss) %{_localstatedir}/spool/discuss
100%attr(644,root,root) %config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
101%{_libexecdir}/disdebug
102%{_libexecdir}/expunge
103%{_libexecdir}/recover
104
105%pre server
106getent group discuss >/dev/null || groupadd -r discuss
107getent passwd discuss >/dev/null || \
108    useradd -r -M -g discuss -d /var/spool/discuss -s /sbin/nologin \
109    -c "Discuss server" discuss
110exit 0
111
112%changelog
113* Mon May 26 2014 Alexander Chernyakhovsky <achernya@mit.edu> - 10.0.17-1
114- Update to discuss 10.0.17
115
116* Tue Mar 19 2013 Alexander Chernyakhovsky <achernya@mit.edu> - 10.0.15-1
117- Update to discuss 10.0.15
118
119* Sun May 29 2011 Mitchell Berger <mitchb@mit.edu> - 10.0.13-1
120- Initial packaging of Discuss on Fedora
121
Note: See TracBrowser for help on using the repository browser.