File irssi-ignore-oc.spec of Package irssi-ignore-oc

Name: irssi-ignore-oc
Version: 1.0
Release: 0
%if 0%{?debian_version} != 0 || 0%{?ubuntu_version} != 0
Packager: Irssi packaging team <>
BuildRequires: irssi-git-dev
BuildRequires: libglib2.0-dev
BuildRequires: pkg-config
Group: net
BuildRequires: irssi-git-devel
BuildRequires: glib2-devel
BuildRequires: pkgconfig
Group: Productivity/Networking/IRC
Requires: irssi-git
License: GPL-2.0+
Summary: Ignore users without common channels in Irssi

Module for Irssi to ignore private messages by people
not in a common channel with you.

%setup -n irssi-ignore_oc-%{version}

export IRSSI=%{_includedir}/irssi
%__cc ignore_oc.c -fPIC -Wall -g -o \
      -shared \
      -I$IRSSI -I$IRSSI/src -I$IRSSI/src/core -I$IRSSI/src/irc/core \
      `pkg-config --cflags glib-2.0` 

%__mkdir_p $RPM_BUILD_ROOT%{_libdir}/irssi/modules
install -m 0755 $RPM_BUILD_ROOT%{_libdir}/irssi/modules
%__mkdir_p $RPM_BUILD_ROOT%{_docdir}/irssi
install -m 0644 -T README $RPM_BUILD_ROOT%{_docdir}/irssi/README.ignore_oc

%doc %{_docdir}/irssi/README.ignore_oc