+%include /usr/lib/rpm/macros.perl
Summary: The CGI:IRC, chat on irc through www
Summary(pl): CGI:IRC, rozmowy irc poprzez www
Name: cgiirc
-Version: 0.4.2
-Release: 1
-License: GPL
+Version: 0.5.3
+Release: 2
+License: GPL v2
Group: Applications/Networking
-Source0: ftp://ftp.sourceforge.net/pub/sourceforge/%{name}/%{name}-%{version}.tar.gz
+Source0: http://dl.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
+# Source0-md5: ed0be082c88b5760ba3818f33b3789e9
URL: http://cgiirc.sourceforge.net/doc.html
+BuildRequires: rpm-perlprov
Requires: webserver
-Requires: perl
Provides: wwwirc
Buildarch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
This package contains CGIIRC, a web based interface to irc, it allows
to bypass firewalls with blocked ports other then http, and use irc on
-machines without instaled client (i.e. internet cafes, offices where
+machines without installed client (i.e. internet cafes, offices where
you have no control of installed software etc.). All you need on the
client side is a www browser and internet connection.
%description -l pl
Pakitet ten zawiera CGIWEB, interfejs oparty na www do irca, pozwala
na obej¶cie zapór sieciowych blokuj±cych dostêp do portów innych ni¿
-http, i u¿ywanie irca na maszynach bez zaistalowanego klienta (np
+http, i u¿ywanie irca na maszynach bez zainstalowanego klienta (np
kafejkach, biurach gdzie nie ma siê wp³ywu na zainstalowane
oprogramowanie). Wszystko co jest wymagane po stronie klienta to
przegl±darka i pod³±czenie do internetu.
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT/home/httpd/{html/%{name},cgi-bin,cgi-bin/formats} \
- $RPM_BUILD_ROOT%{_datadir}/docs/%{name}
+install -d $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/
-install html/* $RPM_BUILD_ROOT/home/httpd/html/%{name}
-cp -avR cgi-bin/* $RPM_BUILD_ROOT/home/httpd/cgi-bin
+cp -avR {cgiirc.config,*.cgi,formats,images,interfaces,modules} $RPM_BUILD_ROOT/home/services/httpd/cgi-bin
+cp ipaccess.example $RPM_BUILD_ROOT/home/services/httpd/cgi-bin/ipaccess
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc AUTHORS COPYING CHANGES README TODO doc.html
+%doc README docs
%defattr(755,http,http,755)
-%config (noreplace) /home/httpd/cgi-bin/config
-%config (noreplace) /home/httpd/cgi-bin/ipaccess
-/home/httpd/html/%{name}
-/home/httpd/cgi-bin/*.cgi
+%config(noreplace) %verify(not size mtime md5) /home/services/httpd/cgi-bin/cgiirc.config
+%config(noreplace) %verify(not size mtime md5) /home/services/httpd/cgi-bin/ipaccess
+/home/services/httpd/cgi-bin/*