File obby.spec of Package obby

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

# norootforbuild


Name:           obby
BuildRequires:  fdupes gcc-c++ gmp-devel libavahi-devel net6-devel pkg-config
License:        GPL-2.0+
Group:          Productivity/Networking/Other
AutoReqProv:    on
Version:        0.4.8
Release:        1
Summary:        Synced document buffers
Source:         http://releases.0x539.de/obby/%{name}-%{version}.tar.gz
Url:            http://gobby.0x539.de/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       %{name}-lang = %{version}
Requires:       libobby-0_4-1 = %{version}

%description
obby is a library which provides synced document buffers. It supports
multiple documents in one session and is portable to both Windows and
Unix-like platforms.



Authors:
--------
    Armin Burgmeier <armin@0x539.de>
    Philipp Kern <phil@0x539.de>

%package -n libobby-0_4-1
License:        GPL-2.0+
Summary:        Synced document buffers
Group:          Productivity/Networking/Other
Requires:       %{name} = %{version}

%description -n libobby-0_4-1
obby is a library which provides synced document buffers. It supports
multiple documents in one session and is portable to both Windows and
Unix-like platforms.



Authors:
--------
    Armin Burgmeier <armin@0x539.de>
    Philipp Kern <phil@0x539.de>

%package devel
License:        GPL-2.0+
Summary:        Synced document buffers
Group:          Productivity/Networking/Other
Requires:       %{name} = %{version} net6-devel libavahi-devel libsigc++2-devel

%description devel
obby is a library which provides synced document buffers. It supports
multiple documents in one session and is portable to both Windows and
Unix-like platforms.



Authors:
--------
    Armin Burgmeier <armin@0x539.de>
    Philipp Kern <phil@0x539.de>

%lang_package
%prep
%setup -q

%build
%configure \
	--enable-ipv6 \
	--with-zeroconf \
	--with-pic \
	--disable-static
%{__make} %{?jobs:-j%jobs}

%install
%makeinstall
%find_lang %{name}
#warning found pointless la file
%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/libobby.la
%fdupes $RPM_BUILD_ROOT

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%post -n libobby-0_4-1 -p /sbin/ldconfig

%postun -n libobby-0_4-1 -p /sbin/ldconfig

%files 
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README

%files -n libobby-0_4-1
%defattr(-, root, root)
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_includedir}/obby
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by