File meanwhile.spec of Package meanwhile.23551

#
# spec file for package meanwhile
#
# 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/
#


%define lname	libmeanwhile1
Name:           meanwhile
Version:        1.0.2
Release:        0
Summary:        Lotus Sametime Community Client Library
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Url:            http://meanwhile.sf.net/
Source:         http://sourceforge.net/projects/meanwhile/files/meanwhile/%{version}/%{name}-%{version}.tar.gz
Patch0:         meanwhile-status.diff
Patch1:         meanwhile-glib-2.31.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  glib2-devel
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Library to establish instant messaging connections to the Lotus
Sametime IM server.

%package -n %{lname}
Summary:        Lotus Sametime Community Client Library
Group:          System/Libraries
# O/P added 2011-11-26
Obsoletes:      libmeanwhile < %{version}-%{release}
Provides:       libmeanwhile = %{version}-%{release}

%description -n %{lname}
Library to establish instant messaging connections to the Lotus
Sametime IM server.

%package devel
Summary:        Lotus Sametime Community Client library
Group:          Development/Libraries/C and C++
Requires:       %{lname} = %{version}, glib2-devel

%description devel
Library to establish instant messaging connections to the Lotus
Sametime IM server.

%package doc
Summary:        Lotus Sametime Community Client library
Group:          Development/Libraries/C and C++

%description doc
Library to establish instant messaging connections to the Lotus
Sametime IM server.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fiv
%configure \
  --disable-doxygen \
  --disable-static
make %{?_smp_mflags} \
	htmldocdir=%{_docdir}/%{name}/html\
	latexdocdir=%{_docdir}/%{name}/latex\
	sampledir=%{_docdir}/%{name}/samples

%install
make DESTDIR=%{buildroot} install %{?_smp_mflags}\
	htmldocdir=%{_docdir}/%{name}/html\
	latexdocdir=%{_docdir}/%{name}/latex\
	sampledir=%{_docdir}/%{name}/samples
# NEWS is empty
find %{buildroot} -type f -name "*.la" -delete -print

%post -n %{lname} -p /sbin/ldconfig

%postun -n %{lname} -p /sbin/ldconfig

%files -n %{lname}
%defattr(-,root,root)
%doc COPYING README
%{_libdir}/libmeanwhile.so.1*

%files devel
%defattr(-,root,root)
%doc TODO ChangeLog README
%{_includedir}/meanwhile
%{_libdir}/*.so
%{_libdir}/pkgconfig/meanwhile.pc

%files doc
%defattr(-,root,root)
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/samples

%changelog
openSUSE Build Service is sponsored by