atheme/atheme.spec
Wolfgang Rosenauer 17ff074b29 Accepting request 76499 from home:jengelh:dev
- enable LDAP backend
- update to version 6.0.8
* inspircd: Support for owner, halfops and admin are now dynamically
  enabled by what modes exist instead of being enabled by what
  modules you have loaded in inspircd.
* support for InspIRCd 1.1, OfficeIRC and UltimateIRCd 3 has been
  removed.
* opensex is now the required database format. All flatfile will do
  is convert your flatfile database to opensex and exit.
* converted many modules that use external databases to using
  opensex.
- add Requires for pwdutils
- kill libelf-devel, not needed on Linux

OBS-URL: https://build.opensuse.org/request/show/76499
OBS-URL: https://build.opensuse.org/package/show/server:irc/atheme?expand=0&rev=30
2011-08-02 07:52:16 +00:00

129 lines
3.6 KiB
RPMSpec

# norootforbuild
Name: atheme
Version: 6.0.8
Release: 0
%define pkg_name atheme-services
#
License: BSD
Group: Productivity/Networking/IRC
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libopenssl-devel pkgconfig libmowgli-devel >= 0.7.0 pcre-devel
BuildRequires: openldap2-devel, xz
%define atheme_home /var/lib/atheme
%define atheme_log /var/log/atheme
%define atheme_run /var/run/atheme
#
URL: http://www.atheme.net/
#Git-Clone: git://git.atheme.org/atheme
Source: http://distfiles.atheme.org/atheme-services-%{version}.tar.xz
Source1: atheme.init
Patch1: atheme-lockmodes.diff
Patch2: atheme-config.diff
#
Summary: A portable, secure set of open source, modular IRC services
Requires(pre): pwdutils
%description
Atheme is a portable, secure set of open source, modular IRC services released
under the BSD license, designed to run on many IRCds.
Unlike alternative packages, Atheme's core is minimalistic, providing only core
functionality. Atheme is a complete services set, excluding features designed
for oper abuse.
Authors:
---------
nenolod <nenolod -at- nenolod.net>
gxti <gxti -at- partiallystapled.com>
jilles <jilles -at- stack.nl>
w00t <w00t -at- staff.chatspike.net>
Contributors:
alambert <alambert -at- quickfire.org>
beu <elfyn.mcbratney -at- gmail.com>
zparta <zparta -at- hispan.se>
kog <kog -at- epiphanic.org>
Kuja <kuja -at- gamesnet.net>
pfish <pofish -at- gmail.com>
Dianora <db -at- db.net>
Terminal <admin -at- ozweb.nu>
Trystan <trystan -at- nomadirc.net>
%prep
%setup -qn %name-services-%version
%patch -P 1 -P 2 -p1
# use system libmowgli
rm -Rf libmowgli;
%build
%if 0%{?suse_version} > 1000 && 0%{?suse_version} < 1030
export CFLAGS="%{optflags} -fstack-protector"
%endif
%configure \
--sysconfdir=%{_sysconfdir}/%{name} \
--bindir=%{_sbindir} \
--docdir=%{_docdir}/%name \
--enable-fhs-paths \
--enable-warnings \
--enable-large-net \
--with-pcre \
--enable-contrib
make %{?_smp_mflags}
%install
%makeinstall DOCDIR=%{_docdir}/%{name}
# additional documentation
%{__install} -m 0644 contrib/*.php contrib/*.pl TODO %{buildroot}%{_docdir}/%{name}
#%{__mv} -v %{buildroot}%{_sysconfdir}/%{name}/atheme.chk.sample %{buildroot}%{_docdir}/%{name}
# init scripts
%{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{name}
%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name}
# config files
# TODO: check if we should change any defaults and patch it.
%{__cp} -v %{buildroot}%{_sysconfdir}/%{name}/atheme.conf{.example,}
%{__cp} -v %{buildroot}%{_sysconfdir}/%{name}/atheme.motd{.example,}
%find_lang %name
%pre
/usr/bin/getent group atheme >/dev/null 2>/dev/null || \
/usr/sbin/groupadd -r atheme >/dev/null || :;
/usr/bin/getent passwd atheme >/dev/null 2>/dev/null || \
/usr/sbin/useradd -r -o -g atheme -s /bin/false \
-c "%{name} daemon" -d %{atheme_home} atheme >/dev/null || :;
%preun
%stop_on_removal %{name}
%post
%fillup_and_insserv %{name}
%postun
%restart_on_update %{name}
%insserv_cleanup
%files -f %{name}.lang
%defattr(-,root,root,-)
%{_sysconfdir}/init.d/%{name}
%{_sbindir}/rc%{name}
%dir %attr(750,root,atheme) %{_sysconfdir}/%{name}
%config(noreplace) %attr(640,root,atheme) %{_sysconfdir}/%{name}/atheme.conf
%config(noreplace) %attr(640,root,atheme) %{_sysconfdir}/%{name}/atheme.motd
%{_sysconfdir}/%{name}/*example
%{_sbindir}/atheme-services
%{_libdir}/%{name}
%{_datadir}/%{name}
%doc %{_docdir}/%{name}
%dir %attr(750,atheme,atheme) %{atheme_home}
%dir %attr(750,atheme,atheme) %{atheme_run}
%dir %attr(750,atheme,atheme) %{atheme_log}
%changelog