]> git.pld-linux.org Git - packages/bitlbee.git/blame - bitlbee.spec
- missing dir
[packages/bitlbee.git] / bitlbee.spec
CommitLineData
b8f37917
ER
1# TODO
2# - sync pl
3# - bilbee user
4#
5# Conditional build:
6%bcond_without otr # build without OTR
7
762288ea 8Summary: An IRC to other chat networks gateway
e2723aba 9Summary(pl.UTF-8): Bramka pomiędzy IRC-em i innymi sieciami komunikacyjnymi
762288ea 10Name: bitlbee
b8f37917 11Version: 3.0.5
b6b1ab7d 12Release: 0.2
b8f37917 13License: GPL v2+ and MIT
762288ea 14Group: Daemons
762288ea 15Source0: http://get.bitlbee.org/src/%{name}-%{version}.tar.gz
b8f37917 16# Source0-md5: 9ff97260a2a7f3a7d102db158a8d9887
1b994aca
JB
17URL: http://www.bitlbee.org/
18BuildRequires: gnutls-devel
b8f37917
ER
19%{?with_otr:BuildRequires: libotr-devel >= 3.2.0}
20BuildRequires: systemd-units
762288ea 21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%description
b8f37917
ER
24Bitlbee is an IRC to other chat networks gateway. Bitlbee can be used
25as an IRC server which forwards everything you say to people on other
26chat networks like ICQ/AIM, MSN, XMPP/Jabber (including Google Talk),
27Yahoo or Twitter!
762288ea 28
6b82b92d
JR
29%description -l pl.UTF-8
30Bramka pomiędzy IRC-em i innymi sieciami komunikacyjnymi. Ten program
31może być używany jako serwer IRC przekazujący wszystko co się mówi do
32ludzi korzystających z innych sieci komunikacyjnych, takich jak
1b994aca
JB
33MSN/ICQ/Jabber.
34
b8f37917
ER
35%package devel
36Summary: Development files for bitlbee
37Group: Development/Libraries
38Requires: %{name} = %{version}-%{release}
39
40%description devel
41The bitlbee-devel package includes header files necessary for building
42and developing programs and plugins which use bitlbee.
43
44%package otr
45Summary: OTR plugin for bitlbee
46Group: Daemons
47Requires: %{name} = %{version}-%{release}
48
49%description otr
50The bitlbee-otr package includes OTR plugin for bitlbee. Not
51completely stable and not 100% foolproof so use at your own risk.
52
762288ea 53%prep
54%setup -q
55
b8f37917
ER
56# fix wrong assumption with $DESTDIR
57%{__sed} -i -e 's,$(shell id -u),0,' Makefile
58
762288ea 59%build
b8f37917 60CFLAGS="%{rpmcflags}" \
762288ea 61./configure \
762288ea 62 --prefix=%{_prefix} \
b8f37917
ER
63 --bindir=%{_sbindir} \
64 --etcdir=%{_sysconfdir}/%{name} \
65 --mandir=%{_mandir} \
66 --datadir=%{_datadir}/%{name} \
67 --config=%{_localstatedir}/lib/%{name} \
68 --pcdir=%{_pkgconfigdir} \
69 --plugindir=%{_libdir}/%{name} \
70 --strip=0 \
71 --plugins=1 \
72 --ssl=gnutls \
73%if %{with otr}
74 --otr=plugin \
75%endif
f750a0e7
AG
76
77%{__make}
b8f37917 78
762288ea 79### FIXME: Documentation needs old sgmltools tool, deprecated.
80#%{__make} -C doc
81
82%install
83rm -rf $RPM_BUILD_ROOT
b8f37917 84install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}
b8f37917 85%{__make} install install-dev install-etc install-systemd \
1b994aca 86 DESTDIR=$RPM_BUILD_ROOT
762288ea 87
762288ea 88%clean
89rm -rf $RPM_BUILD_ROOT
90
91%files
92%defattr(644,root,root,755)
9cddc25a 93%doc doc/{AUTHORS,CHANGES,CREDITS,FAQ,README}
b6b1ab7d 94%dir %{_sysconfdir}/%{name}
b8f37917
ER
95%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/bitlbee.conf
96%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/motd.txt
97%attr(755,root,root) %{_sbindir}/bitlbee
98%{_mandir}/man5/bitlbee.conf.5*
99%{_mandir}/man8/bitlbee.8*
1b994aca
JB
100%{_datadir}/bitlbee
101%attr(700,root,root) %{_localstatedir}/lib/bitlbee
b8f37917
ER
102%{systemdunitdir}/bitlbee.service
103%{systemdunitdir}/bitlbee.socket
104%{systemdunitdir}/bitlbee@.service
105
106%files devel
107%defattr(644,root,root,755)
108%doc doc/example_plugin.c
109%{_includedir}/%{name}
110%{_pkgconfigdir}/%{name}.pc
111
112%if %{with otr}
113%files otr
114%defattr(644,root,root,755)
115%attr(755,root,root) %{_libdir}/%{name}/otr.so
116%endif
This page took 0.05229 seconds and 4 git commands to generate.