Sophie

Sophie

distrib > Mandriva > current > i586 > media > contrib-release-src > by-pkgid > 5e6e299ba95c79b7741f3cd370d1e7a5 > files > 2

bitlbee-1.2.7-1mdv2010.1.src.rpm

%define	name	bitlbee
%define	version	1.2.7
%define	rel	1
%define release %mkrel %{rel}
%define	Summary	IRC proxy to connect to ICQ, AOL, MSN and Jabber
%define	bitlbid	_bitlbee

# NOTE TO BACKPORTERS: You will need to remove ccp or include ccp in your
#			rpm repository

Summary:	%{Summary}
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPLv2+
Group:		Networking/Chat
URL:		http://bitlbee.org/
Source0:	http://get.bitlbee.org/src/%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Buildrequires:	glib2-devel libsoup-devel >= 1.99.23
Requires(post):	ccp
Requires(pre):	rpm-helper
Requires:	xinetd

# (misc) 11/2009 : seen this message when build on x86_64
#* Linking bitlbee
# /usr/bin/ld: i386 architecture of input file `/usr/lib/libresolv.a(res_data.o)' is incompatible with i386:x86-64 output
BuildConflicts: glibc-static-devel 

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

 - ICQ
 - AIM
 - MSN
 - YIM
 - Jabber (including Google talk)

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

%build
perl -pi -e "s#CFLAGS=-O3#CFLAGS=$RPM_OPT_FLAGS -O3#g" configure
./configure	--prefix=%{_prefix} \
		--etcdir=%{_sysconfdir}/%{name} \
		--libdir=%{_libdir}/%{name}

%make

%install
%{__rm} -rf %{buildroot}
%{makeinstall_std} install-etc


%{__install} -d   %{buildroot}%{_var}/lib/%{name}
%{__install} -d   %{buildroot}%{_sysconfdir}/xinetd.d/
%{__cat} << EOF > %{buildroot}%{_sysconfdir}/xinetd.d/%{name}
# default: on
# description: bitlbee IRC2IM-proxy.
service ircd
{
	disable			= no
	socket_type		= stream
	protocol		= tcp
	wait			= no
	user			= %{bitlbid}
	server			= %{_sbindir}/%{name}
	log_on_success		+= DURATION USERID HOST
	log_on_failure		+= USERID HOST ATTEMPT
	nice			= 10
	bind			= 127.0.0.1
}
EOF


%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 NoOprhans --oldfile %{_sysconfdir}/%{name}/%{name}.conf --newfile %{_sysconfdir}/%{name}/%{name}.conf.rpmnew
service xinetd condrestart
if ! pidof xinetd >/dev/null 2>/dev/null; then
   echo "Use the following command to start %{name}: /sbin/service xinetd start"
fi

%postun
%_postun_userdel %{bitlbid}
service xinetd condrestart

%clean
%{__rm} -rf %{buildroot}

%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/

%{_datadir}/%{name}/help.txt
%dir %{_datadir}/%{name}/
%{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/%{name}/motd.txt
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}

%defattr(0600,%{bitlbid},%{bitlbid},0700)
%{_var}/lib/%{name}


%changelog
* Mon May 17 2010 Adam Williamson <awilliamson@mandriva.org> 1.2.7-1mdv2010.1
+ Revision: 545062
- new release 1.2.7

* Tue Mar 23 2010 Adam Williamson <awilliamson@mandriva.org> 1.2.5-1mdv2010.1
+ Revision: 526947
- new release 1.2.5

* Sat Nov 21 2009 Michael Scherer <misc@mandriva.org> 1.2.3-3mdv2010.1
+ Revision: 467934
- remove glibc private symbol filtering, as this doesn't seem to be required anymore
- add a conflict with glibc-static-devel as the build fail on x86_64 cooker with
  a message on incompatible architecture

* Wed Sep 02 2009 Thierry Vignaud <tv@mandriva.org> 1.2.3-2mdv2010.0
+ Revision: 424634
- rebuild

* Sun Sep 07 2008 Frederik Himpe <fhimpe@mandriva.org> 1.2.3-1mdv2009.0
+ Revision: 282400
- update to new version 1.2.3

* Wed Aug 27 2008 Michael Scherer <misc@mandriva.org> 1.2.2-1mdv2009.0
+ Revision: 276480
- update to new version 1.2.2

* Wed Jul 02 2008 Michael Scherer <misc@mandriva.org> 1.2.1-1mdv2009.0
+ Revision: 230611
- update to new version 1.2.1

* Mon May 05 2008 Olivier Blin <oblin@mandriva.com> 1.2-1mdv2009.0
+ Revision: 201539
- filter GLIBC_PRIVATE requires for libresolv
- 1.2

* Thu Jan 24 2008 Funda Wang <fwang@mandriva.org> 1.1dev-2mdv2008.1
+ Revision: 157298
- rebuild

  + Thierry Vignaud <tv@mandriva.org>
    - make description clearer

* Thu Dec 20 2007 Olivier Blin <oblin@mandriva.com> 1.1dev-1mdv2008.1
+ Revision: 135829
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request


* Sun Mar 11 2007 Eskild Hustvedt <eskild@mandriva.org> 1.1dev-1mdv2007.1
+ Revision: 141424
- New version 1.1dev

* Thu Mar 01 2007 Gustavo De Nardin <gustavodn@mandriva.com> 1.0.3-2mdv2007.1
+ Revision: 130291
- changed location of bitlbee users data from /var/bitlbee/ to FHS compliant
  /var/lib/bitlbee/, handling package upgrade

* Mon Jun 26 2006 Eskild Hustvedt <eskild@mandriva.org> 1.0.3-1mdv
- New version 1.0.3

* Mon Apr 03 2006 Eskild Hustvedt <eskild@mandriva.org> 1.0.2-1mdk
- New version 1.0.2
- Comment p0: no longer applies

* Sat Mar 25 2006 Olivier Blin <oblin@mandriva.com> 1.0.1-3mdk
- Patch0: add more MSN features

* Sun Jan 15 2006 Eskild Hustvedt <eskild@mandriva.org> 1.0.1-2mdk
- Now uses ccp for automatic configuration upgrading when possible

* Sun Jan 15 2006 Eskild Hustvedt <eskild@mandriva.org> 1.0.1-1mdk
- New version 1.0.1

* Sun Dec 04 2005 Eskild Hustvedt <eskild@mandriva.org> 1.0-1mdk
- New version 1.0 !

* Sun Nov 20 2005 Eskild Hustvedt <eskild@mandriva.org> 0.99-1mdk
- New version 0.99
- Drop Patch10 (merged upstream)
- Drop userguide.html (outdated, read the included userguide or builtin help instead)
- Drop COPYING, it can be found at /usr/share/common-licenses/GPL

* Mon Sep 12 2005 Eskild Hustvedt <eskild@mandriva.org> 0.92-2mdk
- Patch10: Fix google talk support

* Thu Feb 24 2005 Lenny Cartier <lenny@mandrakesoft.com> 0.92-1mdk
- 0.92

* Wed Feb 02 2005 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.91-1mdk
- 0.91

* Thu Jul 01 2004 Per Øyvind Karlsen <peroyvind@linux-mandrake.com> 0.90a-1mdk
- compile with $RPM_OPT_FLAGS
- cosmetics
- from Eskild Hustvedt <eskild@goldenfiles.com>:
	o New release 0.91b
		- Fixes Yahoo support

* Sat May 15 2004 Michael Scherer <misc@mandrake.org> 0.85-1mdk
- New release 0.85
- fix [DIRM]

* Mon Apr 19 2004 Michael Scherer <misc@mandrake.org> 0.84-1mdk
- New release 0.84
- add doc
- rpmbuildupdate aware