File meanwhile.spec of Package meanwhile

#
# spec file for package meanwhile
#
# Copyright (c) 2011 SUSE LINUX Products 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:           meanwhile
%define lname	libmeanwhile1
BuildRequires:  glib2-devel libtool
License:        LGPL-2.1+
Group:          Development/Libraries/C and C++
Version:        1.0.2
Release:        122
Summary:        Lotus Sametime Community Client Library
Url:            http://meanwhile.sf.net/
Source:         %{name}-%{version}.tar.bz2
Patch0:         meanwhile-status.diff
Patch1:         meanwhile-glib-2.31.patch
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
Group:          Development/Libraries/C and C++
Summary:        Lotus Sametime Community Client library
Requires:       %lname = %version, glib2-devel

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

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

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

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

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

%install
%makeinstall\
	htmldocdir=%{_docdir}/%{name}/html\
	latexdocdir=%{_docdir}/%{name}/latex\
	sampledir=%{_docdir}/%{name}/samples
# NEWS is empty
rm -rf %{buildroot}%{_libdir}/*.la

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

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

%files -n %lname
%defattr(-,root,root)
%doc COPYING LICENSE 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