File dee.spec of Package dee
#
# spec file for package dee
#
# Copyright (c) 2012 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/
#
%define soname 1_0-4
Name: dee
Version: 1.0.14
Release: 0
Summary: Library that uses DBus to provide objects
License: LGPL-3.0
Group: System/Libraries
Url: http://launchpad.net/dee
Source0: http://launchpad.net/dee/1.0/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: libicu-devel >= 4.6
BuildRequires: libtool
BuildRequires: vala
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libdee is a library that uses DBus to provide objects allowing you to create
Model-View-Controller type programs across DBus. It also consists of utility
objects which extend DBus allowing for peer-to-peer discoverability of known
objects without needing a central registrar.
%package -n libdee-%{soname}
Summary: Library that uses DBus to provide objects
Group: System/Libraries
%description -n libdee-%{soname}
Libdee is a library that uses DBus to provide objects allowing you to create
Model-View-Controller type programs across DBus. It also consists of utility
objects which extend DBus allowing for peer-to-peer discoverability of known
objects without needing a central registrar.
%package -n typelib-1_0-Dee-1_0
Summary: Library that uses DBus to provide objects - Introspection bindings
Group: System/Libraries
%description -n typelib-1_0-Dee-1_0
Libdee is a library that uses DBus to provide objects allowing you to create
Model-View-Controller type programs across DBus. It also consists of utility
objects which extend DBus allowing for peer-to-peer discoverability of known
objects without needing a central registrar.
This package provides the GObject Introspection bindings for libdee.
%package -n python-dee
Summary: Library that uses DBus to provide objects - Python bindings
Group: Development/Libraries/Other
Requires: libdee-%{soname} = %{version}
Requires: python-gobject
Supplements: packageand(libdee-%{soname}:python-gobject)
%description -n python-dee
Libdee is a library that uses DBus to provide objects allowing you to create
Model-View-Controller type programs across DBus. It also consists of utility
objects which extend DBus allowing for peer-to-peer discoverability of known
objects without needing a central registrar.
%package devel
Summary: Development files for dee
Group: Development/Libraries/Other
Requires: libdee-%{soname} = %{version}
Requires: typelib-1_0-Dee-1_0 = %{version}
%description devel
This package provides the development files for dee.
Libdee is a library that uses DBus to provide objects allowing you to create
Model-View-Controller type programs across DBus. It also consists of utility
objects which extend DBus allowing for peer-to-peer discoverability of known
objects without needing a central registrar.
%prep
%setup -q
%build
%configure \
--disable-static \
--enable-introspection=yes
make %{?_smp_mflags}
%install
%make_install
%fdupes %{buildroot}%{python_sitearch}
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%post -n libdee-%{soname} -p /sbin/ldconfig
%postun -n libdee-%{soname} -p /sbin/ldconfig
%files -n libdee-%{soname}
%defattr(-,root,root)
%doc ChangeLog README COPYING
%{_libdir}/libdee-1.0.so.*
%files -n typelib-1_0-Dee-1_0
%defattr(-, root, root)
%{_libdir}/girepository-1.0/Dee-1.0.typelib
%files -n python-dee
%defattr(-,root,root)
%dir %{python_sitearch}/gi/
%dir %{python_sitearch}/gi/overrides/
%{python_sitearch}/gi/overrides/*
%files devel
%defattr(-,root,root)
%{_bindir}/dee-tool
%{_includedir}/dee-1.0/
%{_libdir}/libdee-1.0.so
%{_libdir}/pkgconfig/dee-1.0.pc
%{_libdir}/pkgconfig/dee-icu-1.0.pc
%{_datadir}/gir-1.0/Dee-1.0.gir
%doc %{_datadir}/gtk-doc/html/dee-1.0/
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/dee-1.0.deps
%{_datadir}/vala/vapi/dee-1.0.vapi
%changelog