2015-07-02 20:47:13 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package libstrophe
|
|
|
|
|
#
|
2024-02-01 08:54:13 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2015-07-02 20:47:13 +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.
|
|
|
|
|
|
2019-10-12 20:42:09 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-07-02 20:47:13 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%define c_lib libstrophe0
|
|
|
|
|
Name: libstrophe
|
2024-02-21 14:14:18 +00:00
|
|
|
Version: 0.13.1
|
2015-07-02 20:47:13 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: A XMPP library for C
|
2018-02-26 22:25:05 +00:00
|
|
|
License: GPL-3.0-or-later OR MIT
|
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-09-16 17:37:33 +00:00
|
|
|
URL: http://strophe.im/libstrophe/
|
2022-07-05 04:32:23 +00:00
|
|
|
Source0: https://github.com/strophe/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
|
2015-07-02 20:47:13 +00:00
|
|
|
BuildRequires: autoconf
|
|
|
|
|
BuildRequires: automake
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
|
BuildRequires: libtool
|
|
|
|
|
BuildRequires: libxml2-devel
|
|
|
|
|
BuildRequires: make
|
2018-02-26 22:25:05 +00:00
|
|
|
BuildRequires: pkgconfig
|
2015-07-02 20:47:13 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Strophe is a collection of libraries for speaking the XMPP protocol.
|
|
|
|
|
|
|
|
|
|
While most XMPP libraries and implementations are focused on chat-based applications,
|
|
|
|
|
Strophe takes a grander view.
|
|
|
|
|
|
|
|
|
|
It has been used to implement real-time games, notification systems, search engines,
|
|
|
|
|
as well as traditional instant messaging.
|
|
|
|
|
|
|
|
|
|
The implementations are production ready, well documented,
|
|
|
|
|
easy to use, and easy to extend.
|
|
|
|
|
|
|
|
|
|
%package -n libstrophe-devel
|
|
|
|
|
Summary: Development files for libstrophe
|
2022-07-05 04:32:23 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2015-07-02 20:47:13 +00:00
|
|
|
Requires: libstrophe0 = %{version}
|
|
|
|
|
|
|
|
|
|
%description -n libstrophe-devel
|
|
|
|
|
Development files and headers for libstrophe
|
|
|
|
|
|
|
|
|
|
%package -n %{c_lib}
|
|
|
|
|
Summary: A XMPP library for C
|
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
|
|
%description -n %{c_lib}
|
|
|
|
|
The libstrophe library is a XMPP library written in C.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
./bootstrap.sh
|
2022-03-04 19:17:06 +00:00
|
|
|
%configure --with-libxml2
|
2015-07-02 20:47:13 +00:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
|
|
%install
|
2018-02-26 22:25:05 +00:00
|
|
|
%make_install
|
2022-03-04 19:17:06 +00:00
|
|
|
rm %{buildroot}%{_libdir}/libstrophe.{a,la}
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make check
|
2015-07-02 20:47:13 +00:00
|
|
|
|
|
|
|
|
%post -n libstrophe0 -p /sbin/ldconfig
|
|
|
|
|
%postun -n libstrophe0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
%files -n libstrophe0
|
2018-02-26 22:25:05 +00:00
|
|
|
%license COPYING
|
|
|
|
|
%doc ChangeLog README
|
2015-07-02 20:47:13 +00:00
|
|
|
%{_libdir}/libstrophe.so.*
|
|
|
|
|
|
|
|
|
|
%files -n libstrophe-devel
|
|
|
|
|
%{_libdir}/libstrophe.so
|
|
|
|
|
%{_includedir}/strophe.h
|
|
|
|
|
%{_libdir}/pkgconfig/libstrophe.pc
|
|
|
|
|
|
2016-05-19 10:15:25 +00:00
|
|
|
%changelog
|