File libepc.spec of Package libepc

#
# spec file for package libepc
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
#
# 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:           libepc
Summary:        Easy Publish and Consume Library
License:        LGPL-2.1+
Group:          Development/Libraries/GNOME
Version:        0.4.4
Release:        0
Url:            http://live.gnome.org/libepc/
Source:         http://download.gnome.org/sources/libepc/0.4/%{name}-%{version}.tar.xz
BuildRequires:  gdbm-devel
BuildRequires:  intltool
BuildRequires:  libgnutls-devel
BuildRequires:  pkg-config
BuildRequires:  translation-update-upstream
%if 0%{?suse_version} <= 1210
# Only needed for openSUSE <= 12.1; later it is pulled in by rpm-build.
BuildRequires:  xz
%endif
BuildRequires:  pkgconfig(avahi-ui-gtk3)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gnutls)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(uuid)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The Easy Publish and Consume library provides an easy method to:

    * publish data using HTTPS: EpcPublisher
    * announce that information via DNS-SD: EpcDispatcher
    * find that information: EpcConsumer
    * and finally consume it

You can use this library as a key/value store published to the network,
using encryption, authentication and service discovery.


%package 1_0-2
Summary:        Easy Publish and Consume Library
Group:          System/Libraries
Recommends:     %{name}-lang = %{version}
# For lang package to be installable:
Provides:       %{name} = %{version}

%description 1_0-2
The Easy Publish and Consume library provides an easy method to:

    * publish data using HTTPS: EpcPublisher
    * announce that information via DNS-SD: EpcDispatcher
    * find that information: EpcConsumer
    * and finally consume it

You can use this library as a key/value store published to the network,
using encryption, authentication and service discovery.

%package devel
Summary:        Easy Publish and Consume Library
Group:          Development/Libraries/GNOME
Requires:       %{name}-1_0-2 = %{version}
Requires:       libavahi-devel
Requires:       libavahi-glib-devel
Requires:       libsoup-devel
Requires:       gtk2-devel

%description devel
Development headers for libepc.

The Easy Publish and Consume library provides an easy method to:

    * publish data using HTTPS: EpcPublisher
    * announce that information via DNS-SD: EpcDispatcher
    * find that information: EpcConsumer
    * and finally consume it

You can use this library as a key/value store published to the network,
using encryption, authentication and service discovery.


%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure --disable-static
%__make %{?jobs:-j%jobs}

%install
%makeinstall
find %{buildroot} -type f -name *.la -exec rm {} \;
%find_lang %{name}

%clean
rm -rf %{buildroot}

%post 1_0-2 -p /sbin/ldconfig

%postun 1_0-2 -p /sbin/ldconfig

%files 1_0-2
%defattr(-,root,root)
%{_libdir}/%{name}*.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/%{name}-1.0
%{_includedir}/%{name}-ui-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/libepc*.pc
%{_datadir}/gtk-doc/html/%{name}-1.0
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by