3 %bcond_without static_libs # static library build
5 Summary: Model to synchronize multiple instances over DBus
6 Summary(pl.UTF-8): Model synchronizacji wielu instancji poprzez DBus
10 # GPLv3-licensed tests and examples are in the tarball, but not installed
13 Source0: http://launchpad.net/dee/1.0/%{version}/+download/%{name}-%{version}.tar.gz
14 # Source0-md5: b92f27f0a99cac24c2128880601bb7d7
15 Patch0: no-Werror.patch
16 URL: https://launchpad.net/dee
17 BuildRequires: glib2-devel >= 1:2.32
18 BuildRequires: gobject-introspection-devel >= 0.10.2
19 BuildRequires: gtk-doc >= 1.8
20 BuildRequires: libicu-devel >= 4.6
21 BuildRequires: pkgconfig
22 BuildRequires: rpmbuild(macros) >= 1.219
23 # not needed for releases
25 Requires: glib2 >= 1:2.32
26 Requires: libicu >= 4.6
27 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 Libdee is a library that uses DBus to provide objects allowing you to
31 create Model-View-Controller type programs across DBus. It also
32 consists of utility objects which extend DBus allowing for
33 peer-to-peer discoverability of known objects without needing a
36 %description -l pl.UTF-8
37 Libdee to biblioteka wykorzystująca DBus w celu zapewnienia obiektów
38 pozwalających na tworzenie programów typu model-widok-kontroler
39 poprzez DBus. Składa się z obiektów narzędziowych rozszerzających DBus
40 o możliwość widzenia znanych obiektów w komunikacji peer-to-peer bez
41 potrzeby centralnego rejestru.
44 Summary: Development files for libdee
45 Summary(pl.UTF-8): Pliki programistyczne biblioteki libdee
46 Group: Development/Libraries
47 Requires: %{name} = %{version}-%{release}
48 Requires: glib2-devel >= 1:2.32
49 Requires: libicu-devel >= 4.6
52 This package contains the header files for developing applications
53 that use libdee library.
55 %description devel -l pl.UTF-8
56 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
57 wykorzystujących bibliotekę libdee.
60 Summary: Static libdee library
61 Summary(pl.UTF-8): Biblioteka statyczna libdee
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}-%{release}
66 Static libdee library.
68 %description static -l pl.UTF-8
69 Biblioteka statyczna libdee.
72 Summary: Libdee API documentation
73 Summary(pl.UTF-8): Dokumentacja API biblioteki libdee
75 %if "%{_rpmversion}" >= "5"
80 API documentation for libdee library.
82 %description apidocs -l pl.UTF-8
83 Dokumentacja API biblioteki libdee.
85 %package -n python-dee
86 Summary: Python bindings for libdee
87 Summary(pl.UTF-8): Wiązania Pythona do biblioteki libdee
88 Group: Development/Languages/Python
89 Requires: python-pygobject3
91 %description -n python-dee
92 Python bindings for libdee.
94 %description -n python-dee -l pl.UTF-8
95 Wiązania Pythona do biblioteki libdee.
98 Summary: Libdee API for Vala language
99 Summary(pl.UTF-8): API libdee dla języka Vala
100 Group: Development/Libraries
101 Requires: %{name}-devel = %{version}-%{release}
103 %if "%{_rpmversion}" >= "5"
107 %description -n vala-dee
108 Libdee API for Vala language.
110 %description -n vala-dee -l pl.UTF-8
111 API libdee dla języka Vala.
123 --disable-silent-rules \
124 %{?with_static_libs:--enable-static} \
125 --with-html-dir=%{_gtkdocdir}
130 rm -rf $RPM_BUILD_ROOT
131 install -d $RPM_BUILD_ROOT%{_gtkdocdir}
134 DESTDIR=$RPM_BUILD_ROOT
138 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdee*.la
141 rm -rf $RPM_BUILD_ROOT
143 %post -p /sbin/ldconfig
144 %postun -p /sbin/ldconfig
147 %defattr(644,root,root,755)
149 %attr(755,root,root) %{_bindir}/dee-tool
150 %attr(755,root,root) %{_libdir}/libdee-1.0.so.*.*.*
151 %attr(755,root,root) %ghost %{_libdir}/libdee-1.0.so.4
152 %{_libdir}/girepository-1.0/Dee-1.0.typelib
155 %defattr(644,root,root,755)
156 %attr(755,root,root) %{_libdir}/libdee-1.0.so
157 %{_includedir}/dee-1.0
158 %{_pkgconfigdir}/dee-1.0.pc
159 %{_pkgconfigdir}/dee-icu-1.0.pc
160 %{_datadir}/gir-1.0/Dee-1.0.gir
162 %if %{with static_libs}
164 %defattr(644,root,root,755)
165 %{_libdir}/libdee-1.0.a
169 %defattr(644,root,root,755)
170 %{_gtkdocdir}/dee-1.0
173 %defattr(644,root,root,755)
174 %{py_sitedir}/gi/overrides/Dee.py[co]
177 %defattr(644,root,root,755)
178 %{_datadir}/vala/vapi/dee-1.0.vapi
179 %{_datadir}/vala/vapi/dee-1.0.deps