Remove old patches, update to 0.098-alpha1

This commit is contained in:
Nick Bebout 2011-02-24 18:32:20 -06:00
parent 3aff4facfe
commit ed87c40397
2 changed files with 15 additions and 34 deletions

View File

@ -1,23 +0,0 @@
--- znc-0.097.svn2213/modules/modpython/compiler.cpp 2010-12-22 08:52:53.106613000 -0600
+++ znc-0.097.svn2213-fixed/modules/modpython/compiler.cpp 2010-12-24 22:49:47.076861076 -0600
@@ -8,9 +8,18 @@
#include <Python.h>
-int main() {
+int main(int argc, char** argv) {
Py_Initialize();
- int res = PyRun_SimpleString("import compileall; print('Optimizing python files for later use...'); compileall.compile_dir('.')");
+ int res = PyRun_SimpleString(
+ "import compileall\n"
+ "print('Optimizing python files for later use...')\n"
+ "import sys\n"
+ "if sys.version_info < (3, 2):\n"
+ " compileall.compile_dir('.')\n"
+ "else:\n"
+ " compileall.compile_dir('.', legacy=True)\n"
+ );
Py_Finalize();
return res;
}
+

View File

@ -1,23 +1,24 @@
Summary: An advanced IRC bouncer
Name: znc
Version: 0.097
Release: 8.20110215git%{?dist}
#Release: 0.1.rc1%{?dist}
Version: 0.098
#Release: 8.20110215git%{?dist}
Release: 0.1.alpha1%{?dist}
#Release: 2%{?dist}
License: GPLv2 with exceptions
Group: System Environment/Daemons
URL: http://znc.in
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source0: znc-0.097.tar.xz
#Source0: znc-0.097.tar.xz
Source0: http://people.znc.in/~psychon/znc/releases/znc-0.098-alpha1.tar.gz
# git clone https://github.com/znc/znc.git
# cd znc
# git archive --prefix=znc/ HEAD | xz > ../znc-0.097.tar.xz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires: perl gcc-c++ automake
BuildRequires: perl gcc-c++
BuildRequires: openssl-devel >= 0.9.8
BuildRequires: cyrus-sasl-devel
BuildRequires: c-ares-devel python3-devel
BuildRequires: cyrus-sasl-devel python3-devel
BuildRequires: c-ares-devel automake
BuildRequires: perl(ExtUtils::Embed) swig tcl-devel
%description
@ -70,10 +71,9 @@ Requires: python3
%description modpython
python module for ZNC
%prep
#%setup -q
%setup -q -n %{name}
%setup -q -n %{name}-%{version}-alpha1
%__perl -pi.add_release -e 's|(?<="ZNC \%1\.3f)|-%{release}|' znc.cpp
chmod -x modules/q.cpp
@ -81,8 +81,8 @@ chmod -x modules/q.cpp
./autogen.sh
%configure \
--with-module-prefix=%{_libdir}/znc \
--enable-ipv6 --enable-extra --enable-sasl --enable-perl --enable-tcl \
--enable-python
--enable-ipv6 --enable-extra --enable-sasl --enable-perl \
--enable-tcl --enable-python
%__make %{?_smp_mflags}
%install
@ -171,6 +171,7 @@ chmod -x modules/q.cpp
%defattr(-,root,root)
%{_libdir}/znc/modperl/
%{_libdir}/znc/modperl.so
%{_libdir}/znc/perleval.pm
%files modpython
%defattr(-,root,root)
@ -178,6 +179,9 @@ chmod -x modules/q.cpp
%{_libdir}/znc/modpython.so
%changelog
* Wed Feb 23 2011 Nick Bebout <nb@fedoraproject.org> - 0.098-0.1.alpha1
- Update to znc 0.098-alpha1
* Tue Feb 15 2011 Nick Bebout <nb@fedoraproject.org> - 0.097-8.20110215git
- Update to latest git