Add patch so znc's version doesn't get messed up with prereleases

This commit is contained in:
Nick Bebout 2011-03-03 17:12:20 -06:00
parent 657a45ff38
commit bfb86d836c
2 changed files with 13 additions and 0 deletions

11
znc-release.patch Normal file
View File

@ -0,0 +1,11 @@
--- znc-0.098-beta-original/znc.cpp 2011-03-02 07:45:07.000000000 -0600
+++ znc-0.098-beta/znc.cpp 2011-03-03 16:48:07.752119484 -0600
@@ -96,7 +96,7 @@
}
char szBuf[128];
- snprintf(szBuf, sizeof(szBuf), "ZNC %1.3f"VERSION_EXTRA" - http://znc.in", VERSION);
+ snprintf(szBuf, sizeof(szBuf), "ZNC %1.3f - http://znc.in", VERSION);
// If snprintf overflows (which I doubt), we want to be on the safe side
szBuf[sizeof(szBuf) - 1] = '\0';

View File

@ -10,6 +10,7 @@ URL: http://znc.in
#Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
#Source0: znc-0.097.tar.xz
Source0: http://people.znc.in/~psychon/znc/releases/znc-0.098-beta.tar.gz
Patch0: znc-release.patch
# git clone https://github.com/znc/znc.git
# cd znc
# git archive --prefix=znc/ HEAD | xz > ../znc-0.097.tar.xz
@ -74,6 +75,7 @@ python module for ZNC
%prep
#%setup -q
%setup -q -n %{name}-%{version}-beta
%patch0 -p1
%__perl -pi.add_release -e 's|(?<="ZNC \%1\.3f)|-%{release}|' znc.cpp
chmod -x modules/q.cpp