Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Factory:Rebuild
bitlbee
bitlbee.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File bitlbee.spec of Package bitlbee
# # spec file for package bitlbee # # Copyright (c) 2024 SUSE LLC # Copyright (c) 2012 Pascal Bleser <pascal.bleser@opensuse.org> # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define daemon_piddir /run/%{name} Name: bitlbee Version: 3.6 Release: 0 Summary: IRC to other Chat Networks Gateway License: GPL-2.0-only Group: Productivity/Networking/IRC URL: https://www.bitlbee.org/ Source: http://get.bitlbee.org/src/bitlbee-%{version}.tar.gz Source2: %{name}.service-suse.in Source3: bitlbee-user.conf Patch0: harden_bitlbee.service.patch BuildRequires: glibc-devel BuildRequires: gnutls-devel BuildRequires: libgcrypt-devel BuildRequires: lzo-devel BuildRequires: pkgconfig BuildRequires: sysuser-tools BuildRequires: util-linux-systemd BuildRequires: w3m BuildRequires: xmlto BuildRequires: pkgconfig(glib-2.0) BuildRequires: pkgconfig(libotr) >= 4.0.0 BuildRequires: pkgconfig(purple) BuildRequires: pkgconfig(systemd) BuildRequires: pkgconfig(zlib) Requires: logrotate Requires(pre): shadow %if 0%{?suse_version} >= 1500 BuildRequires: python3-base %endif %description BitlBee is a gateway between instant messaging and an IRC client. With it, one's IRC client program can be reused and no extra IM program will need to run. This package comes with support for MSN, Jabber, Oscar and Yahoo, as well as enabled flood protection. %package doc Summary: IRC to other Chat Networks Gateway (User Guide) Group: Productivity/Networking/IRC Requires: %{name} = %{version} %description doc BitlBee is a gateway between instant messaging and an IRC client. With it, one's IRC client program can be reused and no extra IM program will need to run. This package contains the user guide: %{_docdir}/%{name}/user-guide %package -n system-user-bitlbee Summary: System user and group bitlbee %sysusers_requires %description -n system-user-bitlbee System user for use by the bitlbee service %package devel Summary: IRC to other Chat Networks Gateway (Devel files) Group: Development/Libraries/C and C++ Requires: %{name} = %{version} %description devel BitlBee is a gateway between instant messaging and an IRC client. With it, one's IRC client program can be reused and no extra IM program will need to run. This package contains development files for external plugins. %prep %autosetup -p1 # make it verbose! find . -name Makefile -exec sed -i.orig 's|@$(CC)|$(CC)|;s|@$(LD)|$(LD)|' {} + %build # not autoconf - cannot use %%configure %if 0%{?suse_version} >= 1500 PYTHON=python3 \ %endif CFLAGS="%{optflags} -fno-strict-aliasing" \ CXXFLAGS="%{optflags} -fno-strict-aliasing" \ ./configure \ --prefix="%{_prefix}" \ --bindir="%{_sbindir}" \ --etcdir="%{_sysconfdir}/%{name}" \ --mandir="%{_mandir}" \ --pcdir="%{_libdir}/pkgconfig" \ --datadir="%{_datadir}/%{name}" \ --plugindir="%{_libdir}/%{name}" \ --pidfile="%{daemon_piddir}/%{name}.pid" \ --config="%{_localstatedir}/lib/%{name}" \ --ipcsocket="%{daemon_piddir}/%{name}.sock" \ --verbose=1 \ --purple=1 \ --otr=1 \ --msn=1 \ --jabber=1 \ --twitter=1 \ --oscar=1 \ --yahoo=1 \ --sipe=1 \ --debug=0 \ --strip=0 \ --gcov=0 \ --flood=0 \ --plugins=1 \ --ssl=gnutls # Don't use %%make_build, it breaks everything! make -O -j V=1 %sysusers_generate_pre %{SOURCE3} bitlbee system-user-bitlbee.conf %install install -d "%{buildroot}%{_mandir}/man1" install -d "%{buildroot}%{_mandir}/man8" install -d "%{buildroot}%{_sysconfdir}/bitlbee" install -d "%{buildroot}%{_localstatedir}/lib/bitlbee" make DESTDIR=%{buildroot} -C doc make DESTDIR=%{buildroot} install install-etc make DESTDIR=%{buildroot} install-dev install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service ln -s %{_sbindir}/service %{buildroot}/%{_sbindir}/rc%{name} install -d "%{buildroot}%{_docdir}/%{name}" LM="$PWD/%{name}.lang" echo -n > "$LM" for f in COPYING doc/AUTHORS doc/CHANGES doc/CREDITS doc/FAQ doc/README; do b="${f##*/}" install -m0644 "$f" "%{buildroot}%{_docdir}/%{name}/$b" echo "%doc %{_docdir}/%{name}/$b" >>"$LM" done pushd doc/user-guide make user-guide.html user-guide.txt popd install -d "%{buildroot}%{_docdir}/%{name}/user-guide" cp -a doc/user-guide/*.{txt,html} "%{buildroot}%{_docdir}/%{name}/user-guide/" install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/system-user-bitlbee.conf %pre -n system-user-bitlbee -f bitlbee.pre %pre %service_add_pre %{name}.service %post %service_add_post %{name}.service %preun %service_del_preun %{name}.service %postun %service_del_postun %{name}.service %files -f %{name}.lang %doc %dir %{_docdir}/%{name} %attr(0750,root,bitlbee) %dir %{_sysconfdir}/bitlbee %{_unitdir}/%{name}.service %{_sbindir}/rc%{name} %config(noreplace) %attr(0640,root,bitlbee) %{_sysconfdir}/bitlbee/bitlbee.conf %config(noreplace) %attr(0640,root,bitlbee) %{_sysconfdir}/bitlbee/motd.txt %{_sbindir}/bitlbee %{_datadir}/bitlbee %{_mandir}/man5/bitlbee.conf.5%{?ext_man} %{_mandir}/man8/bitlbee.8%{?ext_man} %attr(0750,bitlbee,bitlbee) %dir %{_localstatedir}/lib/bitlbee %files doc %doc %dir %{_docdir}/%{name} %{_docdir}/%{name}/user-guide %files devel %{_includedir}/bitlbee/ %{_libdir}/pkgconfig/bitlbee.pc %files -n system-user-bitlbee %{_sysusersdir}/system-user-bitlbee.conf %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor