LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libstrophe.spec of Package libstrophe (Project home:ced117)

#
# spec file for package libstrophe
#
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#

Name:           libstrophe0
Version:        0.8.7
Release:        0
License:        MIT
Summary:        An XMPP library for C
Url:            http://strophe.im/libstrophe/
Group:          Development/Libraries
Source0:        libstrophe-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  libxml2-devel
BuildRequires:  pkg-config
BuildRequires:  libopenssl-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%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
Group:          Development/Libraries

%description -n libstrophe-devel
Development files and headers for libstrophe

%prep
%setup -n libstrophe-%{version}

%build
mkdir m4
./bootstrap.sh
%configure --with-libxml2
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} %{?_smp_mflags}
rm %{buildroot}%{_libdir}/libstrophe.la

%post

%postun

%files
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/libstrophe.so.*

%files -n libstrophe-devel
%defattr(-,root,root)
%{_libdir}/libstrophe.so
%{_libdir}/libstrophe.a
%{_includedir}/strophe.h
%{_libdir}/pkgconfig/libstrophe.pc