From 546739c2114b82319a07e2a98994862e7c977959 Mon Sep 17 00:00:00 2001 From: Nick Bebout Date: Jul 13 2009 03:18:45 +0000 Subject: Initial import for EL-5 --- diff --git a/.cvsignore b/.cvsignore index e69de29..564a6f1 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +znc-0.070.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..9acfb8e --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +znc-0_070-7_el5:EL-5:znc-0.070-7.el5.src.rpm:1247454986 diff --git a/sources b/sources index e69de29..db112f0 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +18bb813cb350c6db014a0d82ecdf85fe znc-0.070.tar.gz diff --git a/znc-0.070-pkgconfigdir.diff b/znc-0.070-pkgconfigdir.diff new file mode 100644 index 0000000..66becbc --- /dev/null +++ b/znc-0.070-pkgconfigdir.diff @@ -0,0 +1,12 @@ +diff -uNr znc-0.070/Makefile.in znc-0.070-nb/Makefile.in +--- znc-0.070/Makefile.in 2009-05-03 06:23:05.000000000 -0500 ++++ znc-0.070-nb/Makefile.in 2009-07-08 18:30:51.180801877 -0500 +@@ -18,7 +18,7 @@ + LIBS := @LIBS@ + LIBZNC := @LIBZNC@ + LIBZNCDIR:= @LIBZNCDIR@ +-PKGCONFIGDIR := $(prefix)/lib/pkgconfig ++PKGCONFIGDIR := @libdir@/pkgconfig + + LIB_SRCS := ZNCString.cpp Csocket.cpp znc.cpp User.cpp IRCSock.cpp Client.cpp DCCBounce.cpp \ + DCCSock.cpp Chan.cpp Nick.cpp Server.cpp Modules.cpp MD5.cpp Buffer.cpp Utils.cpp \ diff --git a/znc.spec b/znc.spec new file mode 100644 index 0000000..a20c067 --- /dev/null +++ b/znc.spec @@ -0,0 +1,82 @@ +Summary: An advanced IRC bouncer +Name: znc +Version: 0.070 +Release: 7%{?dist} +License: GPLv2 with exceptions +Group: System Environment/Daemons +URL: http://znc.sf.net/ +Source0: http://downloads.sourceforge.net/sourceforge/znc/znc-%{version}.tar.gz +Patch0: %{name}-%{version}-pkgconfigdir.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root +BuildRequires: perl +BuildRequires: openssl-devel >= 0.9.8 +BuildRequires: cyrus-sasl-devel + +# 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 + +%description devel +All includes and program files you need to compile your own znc +modules. + +%prep +%setup -q +%patch0 -p1 +%__perl -pi.add_release -e 's|(?<="ZNC \%1\.3f)|-%{release}|' znc.cpp +chmod -x modules/q.cpp + +%build +%configure \ + --with-module-prefix=%{_libdir}/znc \ + --enable-ipv6 +%__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 +* Sun Jul 12 2009 Nick Bebout - 0.070-7 +- Fix License: to be GPLv2 with exceptions +* Sat Jul 11 2009 Nick Bebout - 0.070-6 +- Fix permissions error in %%prep, not in source +* Sat Jul 11 2009 Nick Bebout - 0.070-5 +- Fix permissions error on q.cpp and add LICENSE.OpenSSL +* Sat Jul 11 2009 Nick Bebout - 0.070-4 +- Remove switch to enable debug, fix %%files section +* Fri Jul 10 2009 Nick Bebout - 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 - 0.070-2 +- Include modules with main package +* Wed Jul 8 2009 Nick Bebout - 0.070-1 +- Initial Fedora package based on 0.070 of upstream