# norootforbuild Name: atheme Version: 2.1.1 Release: 1 %define pkg_name atheme # License: BSD Group: Productivity/Networking/IRC # BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-build BuildRequires: openssl-devel pkgconfig %define atheme_home /var/lib/atheme %define atheme_log /var/log/atheme %define atheme_run /var/run/atheme # URL: http://www.atheme.net/ Source: http://www.atheme.net/releases/atheme-%{version}.tar.gz Source1: atheme.init # Summary: A portable, secure set of open source, modular IRC services %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 gxti jilles w00t Contributors: alambert beu zparta kog Kuja pfish Dianora Terminal Trystan %debug_package %prep %setup -n %{pkg_name}-%{version} %build %if 0%{?suse_version} > 1000 export CFLAGS="%{optflags} -fstack-protector-all" %endif %configure \ --sysconfdir=%{_sysconfdir}/%{pkg_name} \ --bindir=%{_sbindir} \ --enable-fhs-paths \ --enable-warnings \ --enable-large-net %{__make} %{__make} -C contrib %install %makeinstall DOCDIR=%{_docdir}/%{name} %makeinstall DOCDIR=%{_docdir}/%{name} -C contrib # additional documentation %{__install} -m 0644 contrib/*.php contrib/*.pl ChangeLog TODO .logo SVN-Access %{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/%{pkg_name} %{__ln_s} -f %{_sysconfdir}/init.d/%{pkg_name} %{buildroot}%{_sbindir}/rc%{pkg_name} # config files # TODO: check if we should change any defaults and patch it. %{__cp} -v %{buildroot}%{_sysconfdir}/%{name}/{example,atheme}.conf %{__cp} -v %{buildroot}%{_sysconfdir}/%{name}/{example,atheme}.motd %clean %{__rm} -rf %{buildroot} %pre /usr/sbin/groupadd -r atheme &>/dev/null ||: /usr/sbin/useradd -r -o -g atheme -s /bin/false -c "%{pkg_name} daemon" -d %{atheme_home} atheme &>/dev/null || : %preun %stop_on_removal %{pkg_name} %post %fillup_and_insserv %{pkg_name} %postun %restart_on_update %{pkg_name} %insserv_cleanup %files %defattr(-,root,root,-) %{_sysconfdir}/init.d/%{pkg_name} %{_sbindir}/rc%{pkg_name} %dir %attr(750,root,atheme) %{_sysconfdir}/%{pkg_name} %config(noreplace) %attr(640,root,atheme) %{_sysconfdir}/%{pkg_name}/atheme.conf %config(noreplace) %attr(640,root,atheme) %{_sysconfdir}/%{pkg_name}/atheme.motd %{_sysconfdir}/%{pkg_name}/example.conf %{_sysconfdir}/%{pkg_name}/example.motd %{_sysconfdir}/%{pkg_name}/example.userserv.conf %{_sbindir}/%{pkg_name} %{_libdir}/%{pkg_name} %{_datadir}/%{pkg_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 * Tue Feb 20 2007 - mrueckert@suse.de - update to version 2.1.0 * Sat Nov 25 2006 - mrueckert@suse.de - initial package of version 2.0.0