znc/znc.spec

94 lines
3.0 KiB
RPMSpec
Raw Normal View History

2009-07-13 03:11:33 +00:00
Summary: An advanced IRC bouncer
Name: znc
Version: 0.072
2009-07-23 02:02:58 +00:00
Release: 2%{?dist}
2009-07-13 03:11:33 +00:00
License: GPLv2 with exceptions
Group: System Environment/Daemons
URL: http://znc.sf.net/
Source0: http://downloads.sourceforge.net/sourceforge/znc/znc-%{version}.tar.gz
2009-07-23 02:02:58 +00:00
Patch0: %{name}-%{version}-webadmin.diff
2009-07-13 03:11:33 +00:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl
BuildRequires: openssl-devel >= 0.9.8
BuildRequires: cyrus-sasl-devel
# the c-ares part of ZNC does not work on EPEL
# because the EPEL c-ares-devel does not install
# the .pc file for it
%{?fedora:BuildRequires: c-ares-devel}
2009-07-13 03:11:33 +00:00
# The following line is necessary because this module
# is needed for Fedora, but not for EPEL.
%{?fedora:BuildRequires: perl-ExtUtils-Embed}
%description
ZNC is an IRC bouncer with many advanced features like detaching,
multiple users, per channel playback buffer, SSL, IPv6, transparent
DCC bouncing, Perl and C++ module support to name a few.
%package devel
Summary: Development files needed to compile ZNC modules
Group: Development/Libraries
Requires: %{name} = %{version}-%{release} pkgconfig
BuildRequires: pkgconfig
2009-07-13 03:11:33 +00:00
%description devel
All includes and program files you need to compile your own znc
modules.
%prep
%setup -q
2009-07-23 02:02:58 +00:00
%patch0 -p1
2009-07-13 03:11:33 +00:00
%__perl -pi.add_release -e 's|(?<="ZNC \%1\.3f)|-%{release}|' znc.cpp
2009-07-23 02:02:58 +00:00
chmod -x modules/q.cpp
2009-07-13 03:11:33 +00:00
%build
%configure \
--with-module-prefix=%{_libdir}/znc \
%{!?fedora:--disable-c-ares \}
--enable-ipv6 --enable-sasl
2009-07-13 03:11:33 +00:00
%__make %{?_smp_mflags}
%install
%__rm -Rf "%{buildroot}"
%__make install DESTDIR="%{buildroot}"
%clean
%__rm -Rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc AUTHORS LICENSE LICENSE.OpenSSL README znc.conf
%{_bindir}/znc
%{_mandir}/man1/*
%{_libdir}/znc/
%{_datadir}/znc/
%files devel
%defattr(-,root,root)
%{_bindir}/znc-buildmod
%{_bindir}/znc-config
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/znc/
%changelog
2009-07-23 02:02:58 +00:00
* Web Jul 22 2009 Nick Bebout <nb@fedoraproject.org> - 0.072-2
- Backport patch to fix webadmin skins issue introduced in 0.072
* Wed Jul 22 2009 Nick Bebout <nb@fedoraproject.org> - 0.072-1
2009-07-23 02:02:58 +00:00
- Upgrade to 0.072 of ZNC, fixes security issue in bug # 513152
2009-07-13 03:11:33 +00:00
* Sun Jul 12 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-7
- Fix License: to be GPLv2 with exceptions
* Sat Jul 11 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-6
- Fix permissions error in %%prep, not in source
* Sat Jul 11 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-5
- Fix permissions error on q.cpp and add LICENSE.OpenSSL
* Sat Jul 11 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-4
- Remove switch to enable debug, fix %%files section
* Fri Jul 10 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-3
- Move fixfreenode and log into separate znc-extra package
- Move awayping into separate znc-awayping package
* Thu Jul 9 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-2
- Include modules with main package
* Wed Jul 8 2009 Nick Bebout <nb@fedoraproject.org> - 0.070-1
- Initial Fedora package based on 0.070 of upstream