[packages/eventum-irc-bot] use 1.0.0 release

glen glen at pld-linux.org
Fri May 4 19:16:36 CEST 2018


commit e7ea9b7b2f3fa9af9c93efe6722e78ec65f8b26f
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri May 4 20:14:46 2018 +0300

    use 1.0.0 release
    
    - update log paths
    - use smartirc from vendor

 eventum-irc-bot.spec | 12 +++++++-----
 paths.patch          | 13 +++++++++++++
 2 files changed, 20 insertions(+), 5 deletions(-)
---
diff --git a/eventum-irc-bot.spec b/eventum-irc-bot.spec
index e19c88a..be0632f 100644
--- a/eventum-irc-bot.spec
+++ b/eventum-irc-bot.spec
@@ -3,17 +3,18 @@ Summary:	Eventum IRC Notification Bot
 Summary(pl.UTF-8):	IRC-owy bot powiadamiający dla Eventum
 Name:		eventum-irc-bot
 Version:	1.0.0
-Release:	0.2
+Release:	1
 License:	GPL v2+
 Group:		Networking/Utilities
-Source0:	https://github.com/eventum/irc-bot/archive/master/%{name}-%{version}-p2.tar.gz
-# Source0-md5:	a9bd2dcf229b6212b4ac2a417d10af4c
+Source0:	https://github.com/eventum/irc-bot/releases/download/v%{version}/irc-bot-v%{version}.tar.xz
+# Source0-md5:	dd8576789b42b8e37cd2dcd5cae83c99
 Source1:	eventum-irc.init
 Source2:	eventum-irc.sysconfig
+Patch0:		paths.patch
 URL:		https://github.com/eventum/scm
+BuildRequires:	tar >= 1:1.22
+BuildRequires:	xz
 Requires:	php(sockets)
-Requires:	php-pear-Net_SmartIRC >= 1.1.9
-Provides:	eventum-irc = 4.4.0
 Obsoletes:	eventum-irc < 4.4
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -49,6 +50,7 @@ kanał używany przez bota, trzeba ręcznie zmodyfikować skrypt bot.php .
 %setup -qc
 mv irc-bot-*/* .
 mv config/{config.dist.php,config.php}
+%patch0 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/paths.patch b/paths.patch
new file mode 100644
index 0000000..25606f0
--- /dev/null
+++ b/paths.patch
@@ -0,0 +1,13 @@
+--- eventum-irc-bot-1.0.0/config/config.php~	2018-05-03 20:34:58.000000000 +0300
++++ eventum-irc-bot-1.0.0/config/config.php	2018-05-03 20:38:20.760887288 +0300
+@@ -89,8 +89,8 @@
+ //    ,
+ 
+     // SmartIRC logger, defaults to stdout
+-//    'logging.smartirc' => 'irc_bot_smartirc.log',
++    'logging.smartirc' => '/var/log/eventum/irc_bot_smartirc.log',
+ 
+     // PHP error logs, defaults to php.ini defaults
+-//    'logging.errorlog' => 'irc_bot_error.log',
++    'logging.errorlog' => '/var/log/eventum/irc_bot_error.log',
+ ];
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/eventum-irc-bot.git/commitdiff/e7ea9b7b2f3fa9af9c93efe6722e78ec65f8b26f



More information about the pld-cvs-commit mailing list