Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:worldcitizen
cgiirc
cgiirc.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cgiirc.spec of Package cgiirc
# # spec file for package cgiirc # # Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: cgiirc %if 0%{?suse_version} BuildRequires: apache2-devel Requires: apache2 Requires: perl %endif %if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version} BuildRequires: httpd-devel Requires: httpd Requires: perl %endif %if 0%{?mandriva_version} BuildRequires: apache-devel Requires: apache-base Requires: apache-conf Requires: perl %endif Version: 0.5.12 Release: 0 %if 0%{?suse_version} %define apxs /usr/sbin/apxs2 %else %define apxs /usr/sbin/apxs %endif License: GPL-2.0 Summary: CGI:IRC is a Perl/CGI program that lets you access IRC from a web browser %define apache_libexecdir %(%{apxs} -q LIBEXECDIR) %define apache_sysconfdir %(%{apxs} -q SYSCONFDIR) %define cgiirc_dir /srv/www/cgiirc Url: http://cgiirc.org/ Group: Productivity/Networking/Web/Utilities Source0: http://cgiirc.org/releases/%{name}-%{version}.tar.gz Source1: %{name}.conf.default Source2: %{name}.conf.vhost Source3: %{name}.conf.nonsuse BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %description CGI:IRC is a Perl/CGI program that lets you access IRC from a web browser, it is designed to be flexible and has many uses such as an IRC gateway for an IRC network, a chat-room for a website or to access IRC when stuck behind a restrictive firewall %prep %setup -q %build find . -type f -name "*.orig" -exec rm {} \; find . -type f -name "*.rej" -exec rm {} \; find . -type f -name "*.pl" -exec chmod 755 {} \; find . -type f -name "*.cgi" -exec chmod 755 {} \; %install %if 0%{?suse_version} mkdir -p %{buildroot}/%{apache_sysconfdir}/conf.d cp -avL %{SOURCE1} %{buildroot}/%{apache_sysconfdir}/conf.d/cgiirc.conf mkdir -p %{buildroot}/%{apache_sysconfdir}/vhosts.d/conf.d cp -avL %{SOURCE2} %{buildroot}/%{apache_sysconfdir}/vhosts.d/conf.d/cgiirc.conf %else mkdir -p %{buildroot}/%{apache_sysconfdir}/../conf.d cp -avL %{SOURCE3} %{buildroot}/%{apache_sysconfdir}/../conf.d/cgiirc.conf %endif mkdir -p %{buildroot}/%{cgiirc_dir} cp -avL * %{buildroot}/%{cgiirc_dir}/ find %{buildroot}%{cgiirc_dir} -name "* *"|while read file; do echo "$file"; mv "$file" "`echo "$file"| awk ' BEGIN {OFS="_"} $1=$1 '`"; done find %{buildroot}%{cgiirc_dir} -type d | \ sed "s@%{buildroot}@%dir @" > files.cgiirc find %{buildroot}%{cgiirc_dir} -type f | \ sed "s@%{buildroot}@@;/\/templates\/\|\.conf$/s@^@%config (noreplace) @" >> files.cgiirc cat files.cgiirc %files -f files.cgiirc %defattr(-,root,root) %config (noreplace) %{cgiirc_dir}/cgiirc.config %if 0%{?suse_version} %dir %{apache_sysconfdir}/conf.d %config (noreplace) %{apache_sysconfdir}/conf.d/cgiirc.conf %dir %{apache_sysconfdir}/vhosts.d/conf.d %config (noreplace) %{apache_sysconfdir}/vhosts.d/conf.d/cgiirc.conf %else %dir %{apache_sysconfdir}/../conf.d %config (noreplace) %{apache_sysconfdir}/../conf.d/cgiirc.conf %endif %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor