2011-12-23 19:16:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package libircclient
|
|
|
|
#
|
2024-06-02 10:19:20 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2011-12-23 19:16:52 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-09-08 08:49:07 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2011-12-23 19:16:52 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%define soname 1
|
2018-08-28 15:57:47 +00:00
|
|
|
Name: libircclient
|
2020-09-08 08:49:07 +00:00
|
|
|
Version: 1.10
|
2011-12-24 09:06:36 +00:00
|
|
|
Release: 0
|
2011-12-23 19:16:52 +00:00
|
|
|
Summary: Library implementing client-server IRC protocol
|
2018-08-28 15:57:47 +00:00
|
|
|
License: LGPL-2.0-or-later
|
2012-02-16 12:18:06 +00:00
|
|
|
Group: System/Libraries
|
2018-08-28 15:57:47 +00:00
|
|
|
URL: http://libircclient.sourceforge.net/
|
2016-06-13 13:19:42 +00:00
|
|
|
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.gz
|
2016-06-13 12:24:11 +00:00
|
|
|
# PATCH-FIX-OPENSUSE libircclient-memory-overflow.diff
|
|
|
|
Patch0: libircclient-memory-overflow.diff
|
|
|
|
# PATCH-FIX-UPSTREAM libircclient-cipher-suite.patch bnc#857151
|
|
|
|
Patch1: libircclient-cipher-suite.diff
|
2012-02-16 12:18:06 +00:00
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libtool
|
2018-08-28 15:57:47 +00:00
|
|
|
BuildRequires: pkgconfig
|
|
|
|
%if 0%{?suse_version} > 1500
|
|
|
|
BuildRequires: python3-Sphinx
|
|
|
|
BuildRequires: python3-Sphinx-latex
|
|
|
|
%else
|
2016-06-13 11:58:15 +00:00
|
|
|
BuildRequires: python-Sphinx
|
2018-08-28 15:57:47 +00:00
|
|
|
BuildRequires: python-Sphinx-latex
|
|
|
|
%endif
|
|
|
|
BuildRequires: pkgconfig(libcrypto)
|
|
|
|
BuildRequires: pkgconfig(libssl)
|
2011-12-23 19:16:52 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
It is designed to be small, fast, portable and compatible to RFC standards and most IRC clients.
|
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%package -n %{name}%{soname}
|
2011-12-24 13:11:17 +00:00
|
|
|
Summary: Library implementing client-server IRC protocol
|
2012-02-16 12:18:06 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-12-24 13:11:17 +00:00
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%description -n %{name}%{soname}
|
2011-12-23 19:16:52 +00:00
|
|
|
It is designed to be small, fast, portable and compatible to RFC standards and most IRC clients.
|
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%package -n %{name}-devel
|
2011-12-24 13:11:17 +00:00
|
|
|
Summary: Header files and libraries for compiling against libircclient
|
2011-12-23 19:16:52 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-02-16 12:18:06 +00:00
|
|
|
Requires: %{name}%{soname} = %{version}
|
2011-12-23 19:16:52 +00:00
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%description -n %{name}-devel
|
|
|
|
It is designed to be small, fast, portable and compatible to RFC standards and most IRC clients.
|
|
|
|
|
|
|
|
%package -n %{name}-doc
|
|
|
|
Summary: Documentation for libircclient
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
|
|
|
|
%description -n %{name}-doc
|
2011-12-23 19:16:52 +00:00
|
|
|
It is designed to be small, fast, portable and compatible to RFC standards and most IRC clients.
|
|
|
|
|
|
|
|
%prep
|
2024-06-02 10:19:20 +00:00
|
|
|
%autosetup -p1
|
2011-12-23 19:16:52 +00:00
|
|
|
|
|
|
|
%build
|
2012-02-16 12:18:06 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2017-12-29 13:12:06 +00:00
|
|
|
export CXXFLAGS="$CFLAGS"
|
2012-02-16 12:18:06 +00:00
|
|
|
%configure --enable-ipv6 --enable-openssl --enable-shared
|
2011-12-24 09:06:36 +00:00
|
|
|
make %{?_smp_mflags}
|
2015-02-11 13:03:03 +00:00
|
|
|
cd doc
|
|
|
|
make html
|
2011-12-23 19:16:52 +00:00
|
|
|
|
|
|
|
%install
|
2018-08-28 15:57:47 +00:00
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2015-02-11 13:03:03 +00:00
|
|
|
mkdir -p "%{buildroot}/%{_mandir}/man1";
|
|
|
|
install -pm0644 man/libircclient.1 "%{buildroot}/%{_mandir}/man1/";
|
2011-12-23 19:16:52 +00:00
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%post -n %{name}%{soname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{name}%{soname} -p /sbin/ldconfig
|
2011-12-23 19:16:52 +00:00
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%files -n %{name}%{soname}
|
2018-08-28 15:57:47 +00:00
|
|
|
%doc Changelog README THANKS
|
|
|
|
%license LICENSE
|
2012-02-12 20:35:25 +00:00
|
|
|
%{_libdir}/libircclient.so.%{soname}
|
2011-12-23 19:16:52 +00:00
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%files -n %{name}-devel
|
2011-12-23 19:16:52 +00:00
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/libircclient.so
|
2015-02-11 13:03:03 +00:00
|
|
|
%{_mandir}/man1/*
|
2011-12-23 19:16:52 +00:00
|
|
|
|
2012-02-12 20:35:25 +00:00
|
|
|
%files -n %{name}-doc
|
2015-02-11 13:03:03 +00:00
|
|
|
%doc doc/_build/html examples/*.cpp examples/*.c
|
2012-02-12 20:35:25 +00:00
|
|
|
|
2011-12-23 19:16:52 +00:00
|
|
|
%changelog
|