Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37399053
en ru br
ALT Linux repos
S:3.6-alt1
3.0: 0.92-alt1

Group :: Networking/IRC
RPM: bitlbee

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Name: bitlbee
Version: 3.6
Release: alt1
Group: Networking/IRC
License: GPLv2
Url: http://www.bitlbee.org
Summary: IRC gateway to IM chat networks
Source: %name-%version.tar.gz
Source1: %name.alt.init

# Automatically added by buildreq on Thu Mar 26 2020

# optimized out: glib2-devel glibc-kernheaders-generic glibc-kernheaders-x86 libdbus-glib libgcrypt-devel libgpg-error libgpg-error-devel libgst-plugins1.0 libp11-kit pkg-config python-modules python2-base python3 python3-base sh4
BuildRequires: libgnutls-devel libotr-devel libpurple-devel

%description
BitlBee brings IM (instant messaging) to IRC clients. It's a great
solution for people who have an IRC client running all the time and
don't want to run an additional MSN/AIM/whatever client.

BitlBee currently supports the following IM networks/protocols:
XMPP/Jabber (including Google Talk), MSN Messenger, Yahoo! Messenger,
AIM and ICQ, and the Twitter microblogging network (plus all other
Twitter API compatible services like identi.ca and status.net).

%package devel
Group: Development/C
Summary: Development environment for %name, %summary
%description devel
%summary

%package otr
Group: Networking/Instant messaging
Summary: Off-the-record (OTR) plugin for %name
%description otr
%summary

%prep
%setup
# Hack BITLBEE_VERSION into pkgconfig
sed -i 's/\Version: $BITLBEE_VERSION/Version: %version/' configure
# Hack out root check from systemd files installer
sed -i 's/\$(shell id -u),0/0,0/' Makefile

#patch -p1


%build
PYTHON=/usr/bin/python3 ./configure \
       --prefix=%prefix \
       --bindir=%_sbindir \
       --etcdir=%_sysconfdir/%name \
       --mandir=%_mandir \
       --datadir=%_datadir/%name \
       --config=%_localstatedir/%name \
       --pcdir=%_libdir/pkgconfig \
       --plugindir=%_libdir/%name \
--systemdsystemunitdir=%_unitdir \
       --strip=0 \
       --plugins=1 \
--purple=1 \
--msn=1 --jabber=1 --oscar=1 --twitter=1 --skype=0 \
--otr=plugin
# TODO unhack trail slashes in Makefile.settings generated by configure
%make_build

# Make a reasonable config

sed -i '/^[# ]*DaemonInterface *=/aDaemonInterface = 127.0.0.1
/[^# ]*User *=/aUser = %name
' bitlbee.conf

%install
%makeinstall DESTDIR=%buildroot ETCDIR=%_sysconfdir/%name install-dev install-etc install-systemd
mkdir -p %buildroot%_localstatedir/%name
install -m 755 -D %SOURCE1  %buildroot%_initdir/%name

%pre
/usr/sbin/useradd -r -d %_localstatedir/%name -s /dev/null %name || :

%post
%post_service %name

%postun
%preun_service %name
%files
%doc doc/{AUTHORS,CHANGES,CREDITS,FAQ,README}
%doc doc/user-guide/*.xml doc/user-guide/*.txt
%doc utils
%_sbindir/%name
%_datadir/%name/
%_mandir/man?/%{name}*
%dir %_sysconfdir/%name
%config(noreplace) %_sysconfdir/%name/*
%attr(0700,bitlbee,bitlbee) %dir %_localstatedir/%name
%_unitdir/%{name}*
%_initdir/%name

%files otr
%_libdir/%name/*otr*

%files devel
%doc doc/example_plugin.c
%_includedir/%name/
%_libdir/pkgconfig/%name.pc

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin