Sophie

Sophie

distrib > Mageia > 8 > i586 > media > core-release-src > by-pkgid > 9a8ed70743f96839c636b94b89f4ca8c > files > 3

bitlbee-3.6-2.mga8.src.rpm

# disable default option "make V=1 VERBOSE=1"
%define _make_verbose %nil

%define	bitlbid	bitlbee

Summary:	IRC proxy to connect to ICQ, AOL, MSN and Jabber
Name:		bitlbee
Version:	3.6
Release:	%mkrel 2
License:	GPLv2+
Group:		Networking/Instant messaging
URL:		http://bitlbee.org/
Source0:	http://get.bitlbee.org/src/%{name}-%{version}.tar.gz
Patch3:		bitlbee-forkdaemon.patch
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(libotr)
BuildRequires:	pkgconfig(python3)
# Documentation (user-guide.html)
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl

Requires(post):	ccp
Requires(pre):	rpm-helper
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
%{name} is a proxy which accepts connections from any irc-client
and allows you to communicate using following instant messaging
protocols:

 - ICQ
 - AIM
 - YIM
 - Jabber (including Google Talk and Facebook)
 - Twitter

%prep
%setup -q
%autopatch -p1
# Use the nick "bitlbee" instead of "root"
%{__sed} -i 's/ROOT_NICK "root"/ROOT_NICK "bitlbee"/' bitlbee.h

%build
%set_build_flags
export PYTHON="%{__python3}"
./configure	--prefix=%{_prefix} \
		--etcdir=%{_sysconfdir}/%{name} \
		--libdir=%{_libdir}/%{name} \
		--strip=0 \
		--jabber=1 \
		--purple=1 \
		--otr=1

%make_build

(cd doc/user-guide/ && make user-guide.html)

%install
%make_install install-etc install-systemd

%{__install} -d   %{buildroot}%{_var}/lib/%{name}

%triggerpostun -- bitlbee < 3.0.6
[ -d %{_var}/lib/%{name} ] && chown -R %{bitlbid}:%{bitlbid} %{_var}/lib/%{name}
%_postun_userdel %{bitlbid}

%pre
%_pre_useradd %{bitlbid} %{_var}/%{name} /bin/true
# in post it is harder to know if the new empty dir already exists
if [ $1 = 2 -a -d "%{_var}/%{name}" -a ! -d "%{_var}/lib/%{name}" ]; then
   echo -n " NOTE: new location of bitlbee users data: "
   mv -v "%{_var}/%{name}" "%{_var}/lib/%{name}"
fi

%post
ccp --delete --ifexists --set NoOrphans --oldfile %{_sysconfdir}/%{name}/%{name}.conf --newfile %{_sysconfdir}/%{name}/%{name}.conf.rpmnew
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{bitlbid}

%files
%defattr(0750,root,%{bitlbid},0755)
%{_sbindir}/%{name}
%defattr(0644,root,root,0755)
%doc doc/AUTHORS doc/README doc/FAQ
%doc doc/CHANGES doc/CREDITS
%doc doc/user-guide/user-guide.html

%{_datadir}/%{name}/help.txt
%dir %{_datadir}/%{name}/
%{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/%{name}/motd.txt
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_unitdir}/%{name}*
%defattr(0600,%{bitlbid},%{bitlbid},0700)
%{_var}/lib/%{name}


%changelog
* Tue Feb 18 2020 umeabot <umeabot> 3.6-2.mga8
+ Revision: 1539045
- Mageia 8 Mass Rebuild
+ wally <wally>
- replace deprecated %%setup_compile_flags
+ daviddavid <daviddavid>
- turn off default verbose build with appropriate macro

* Fri Nov 29 2019 daviddavid <daviddavid> 3.6-1.mga8
+ Revision: 1463682
- new version: 3.6

* Fri Sep 21 2018 umeabot <umeabot> 3.5.1-2.mga7
+ Revision: 1295473
- Mageia 7 Mass Rebuild

* Sun Feb 26 2017 blino <blino> 3.5.1-1.mga6
+ Revision: 1087879
- 3.5.1

* Mon Jan 11 2016 luigiwalser <luigiwalser> 3.4.1-3.mga6
+ Revision: 921796
- rebuild for gnutls

* Mon Sep 14 2015 fwang <fwang> 3.4.1-2.mga6
+ Revision: 879087
- rebuild for new libgcrypt

* Fri Jun 26 2015 blino <blino> 3.4.1-1.mga6
+ Revision: 844412
- 3.4.1
- drop upstream patches

* Mon Nov 24 2014 blino <blino> 3.2.2-4.mga5
+ Revision: 798841
- merge MSN fixes from upstream (including application id update)

* Wed Oct 15 2014 umeabot <umeabot> 3.2.2-3.mga5
+ Revision: 743569
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 3.2.2-2.mga5
+ Revision: 678163
- Mageia 5 Mass Rebuild

* Sat Aug 23 2014 blino <blino> 3.2.2-1.mga5
+ Revision: 666946
- enable purple support but keep msn/jabber/oscar/yahoo builtin
- enable otr now that bitlbee is compatible with libotr 4.0
- use install-systemd make target and Fedora patch to install systemd service
- drop Fedora patch on systemd service to disable forkdaemon mode, this is only needed for SELinux
- 3.2.2

* Sat Jan 04 2014 blino <blino> 3.2.1-1.mga4
+ Revision: 564595
- 3.2.1 (to fix auth with twitter)
- restart/stop service in post/preun scriptlets

* Sat Oct 19 2013 umeabot <umeabot> 3.2-4.mga4
+ Revision: 523439
- Mageia 4 Mass Rebuild

* Tue Apr 23 2013 blino <blino> 3.2-3.mga3
+ Revision: 410980
- 3.2

* Fri Jan 11 2013 umeabot <umeabot> 3.0.6-3.mga3
+ Revision: 346909
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Fri Oct 26 2012 malo <malo> 3.0.6-2.mga3
+ Revision: 310339
- update RPM group

* Thu Oct 18 2012 blino <blino> 3.0.6-1.mga3
+ Revision: 308043
- use bitlbee instead of _bitlbee as user name (and chown previous files), to match upstream and Fedora
- drop sbindir hack now that upstream Makefile is fixed
- 3.06
- drop merged patches
- remove spurious fi in post scriptlet
- use /usr/sbin as bindir (like Fedora) to get correct path in systemd files

* Thu Oct 11 2012 fwang <fwang> 3.0.5-4.mga3
+ Revision: 304593
- sync with fedora packages
- disable otr build as it is not compatible with otr 4.0

* Sun Apr 08 2012 blino <blino> 3.0.5-4.mga2
+ Revision: 229780
- in postun, restart xinetd only if package removed (it is already restarted on post otherwise)

* Sat Apr 07 2012 blino <blino> 3.0.5-3.mga2
+ Revision: 229427
- better fix for upstream ticket #938

* Fri Apr 06 2012 blino <blino> 3.0.5-2.mga2
+ Revision: 229036
- fix segfault with MSN account and gnutls 3.0.18 (reported as upstream ticket #938)
- really build debug package

* Wed Feb 29 2012 blino <blino> 3.0.5-1.mga2
+ Revision: 215957
- use again gnutls since timeout issues have been fixed upstream
- 3.0.5
- remove upstream msn contacts patch

* Mon Nov 14 2011 blino <blino> 3.0.3-5.mga2
+ Revision: 167385
- fix getting MSN contacts (from upstream bzr)

* Sun Oct 02 2011 blino <blino> 3.0.3-4.mga2
+ Revision: 151114
- use openssl to avoid jabber login issues (bitlbee #779, archlinux #23678)
+ fwang <fwang>
- rebuild for new gnutls

* Wed Jun 15 2011 blino <blino> 3.0.3-2.mga2
+ Revision: 106588
- fix typo in ccp post script

* Wed Jun 15 2011 blino <blino> 3.0.3-1.mga2
+ Revision: 106584
- 3.0.3
- buildrequire gnutls-devel

* Wed Apr 20 2011 misc <misc> 3.0.2-1.mga1
+ Revision: 89086
- new version

* Mon Jan 24 2011 blino <blino> 3.0.1-1.mga1
+ Revision: 35730
- imported package bitlbee