]>
Commit | Line | Data |
---|---|---|
18a826ef JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library build | |
32c34cff | 4 | |
91209ac3 | 5 | Summary: Model to synchronize multiple instances over DBus |
18a826ef | 6 | Summary(pl.UTF-8): Model synchronizacji wielu instancji poprzez DBus |
91209ac3 | 7 | Name: dee |
dc0207bd | 8 | Version: 1.2.7 |
0ee9641e | 9 | Release: 14 |
91209ac3 ER |
10 | # GPLv3-licensed tests and examples are in the tarball, but not installed |
11 | License: LGPL v3 | |
12 | Group: Libraries | |
91209ac3 | 13 | Source0: http://launchpad.net/dee/1.0/%{version}/+download/%{name}-%{version}.tar.gz |
dc0207bd | 14 | # Source0-md5: b92f27f0a99cac24c2128880601bb7d7 |
1c38d6a4 | 15 | Patch0: no-Werror.patch |
ee5cfe7b | 16 | Patch1: vapi-skip-properties.patch |
3ce140b8 | 17 | Patch2: dee-1.2.7-fix-duplicates-vala-0.5X.patch |
18a826ef | 18 | URL: https://launchpad.net/dee |
dc0207bd | 19 | BuildRequires: glib2-devel >= 1:2.32 |
18a826ef JB |
20 | BuildRequires: gobject-introspection-devel >= 0.10.2 |
21 | BuildRequires: gtk-doc >= 1.8 | |
22 | BuildRequires: libicu-devel >= 4.6 | |
23 | BuildRequires: pkgconfig | |
23ecf9ad | 24 | BuildRequires: rpm-build >= 4.6 |
91209ac3 | 25 | BuildRequires: rpmbuild(macros) >= 1.219 |
18a826ef JB |
26 | # not needed for releases |
27 | #BuildRequires: vala | |
dc0207bd | 28 | Requires: glib2 >= 1:2.32 |
18a826ef | 29 | Requires: libicu >= 4.6 |
91209ac3 ER |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
31 | ||
32 | %description | |
33 | Libdee is a library that uses DBus to provide objects allowing you to | |
34 | create Model-View-Controller type programs across DBus. It also | |
35 | consists of utility objects which extend DBus allowing for | |
36 | peer-to-peer discoverability of known objects without needing a | |
37 | central registrar. | |
38 | ||
18a826ef JB |
39 | %description -l pl.UTF-8 |
40 | Libdee to biblioteka wykorzystująca DBus w celu zapewnienia obiektów | |
41 | pozwalających na tworzenie programów typu model-widok-kontroler | |
42 | poprzez DBus. Składa się z obiektów narzędziowych rozszerzających DBus | |
43 | o możliwość widzenia znanych obiektów w komunikacji peer-to-peer bez | |
44 | potrzeby centralnego rejestru. | |
45 | ||
18bd4007 | 46 | %package devel |
18a826ef JB |
47 | Summary: Development files for libdee |
48 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libdee | |
91209ac3 ER |
49 | Group: Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
dc0207bd | 51 | Requires: glib2-devel >= 1:2.32 |
18a826ef | 52 | Requires: libicu-devel >= 4.6 |
91209ac3 | 53 | |
18bd4007 | 54 | %description devel |
18a826ef JB |
55 | This package contains the header files for developing applications |
56 | that use libdee library. | |
57 | ||
58 | %description devel -l pl.UTF-8 | |
59 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
60 | wykorzystujących bibliotekę libdee. | |
61 | ||
62 | %package static | |
63 | Summary: Static libdee library | |
64 | Summary(pl.UTF-8): Biblioteka statyczna libdee | |
65 | Group: Development/Libraries | |
66 | Requires: %{name}-devel = %{version}-%{release} | |
67 | ||
68 | %description static | |
69 | Static libdee library. | |
70 | ||
71 | %description static -l pl.UTF-8 | |
72 | Biblioteka statyczna libdee. | |
91209ac3 ER |
73 | |
74 | %package apidocs | |
18a826ef JB |
75 | Summary: Libdee API documentation |
76 | Summary(pl.UTF-8): Dokumentacja API biblioteki libdee | |
91209ac3 | 77 | Group: Documentation |
32c34cff | 78 | BuildArch: noarch |
91209ac3 ER |
79 | |
80 | %description apidocs | |
18a826ef | 81 | API documentation for libdee library. |
91209ac3 ER |
82 | |
83 | %description apidocs -l pl.UTF-8 | |
18a826ef | 84 | Dokumentacja API biblioteki libdee. |
91209ac3 | 85 | |
9cef312f | 86 | %package -n python-dee |
18a826ef JB |
87 | Summary: Python bindings for libdee |
88 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libdee | |
9cef312f | 89 | Group: Development/Languages/Python |
38b71e33 | 90 | Requires: python-pygobject3 |
9cef312f ER |
91 | |
92 | %description -n python-dee | |
18a826ef JB |
93 | Python bindings for libdee. |
94 | ||
95 | %description -n python-dee -l pl.UTF-8 | |
96 | Wiązania Pythona do biblioteki libdee. | |
97 | ||
98 | %package -n vala-dee | |
99 | Summary: Libdee API for Vala language | |
100 | Summary(pl.UTF-8): API libdee dla języka Vala | |
101 | Group: Development/Libraries | |
102 | Requires: %{name}-devel = %{version}-%{release} | |
103 | Requires: vala | |
a7543b34 | 104 | BuildArch: noarch |
18a826ef JB |
105 | |
106 | %description -n vala-dee | |
107 | Libdee API for Vala language. | |
108 | ||
109 | %description -n vala-dee -l pl.UTF-8 | |
110 | API libdee dla języka Vala. | |
9cef312f | 111 | |
91209ac3 ER |
112 | %prep |
113 | %setup -q | |
1c38d6a4 | 114 | %patch0 -p1 |
ee5cfe7b | 115 | %patch1 -p1 |
3ce140b8 | 116 | %patch2 -p1 |
91209ac3 ER |
117 | |
118 | %build | |
1c38d6a4 JR |
119 | %{__aclocal} |
120 | %{__autoconf} | |
121 | %{__autoheader} | |
122 | %{__automake} | |
91209ac3 | 123 | %configure \ |
18a826ef JB |
124 | --disable-silent-rules \ |
125 | %{?with_static_libs:--enable-static} \ | |
fd961c27 | 126 | --with-html-dir=%{_gtkdocdir} |
91209ac3 ER |
127 | |
128 | %{__make} | |
129 | ||
130 | %install | |
131 | rm -rf $RPM_BUILD_ROOT | |
85f27eab JR |
132 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} |
133 | ||
91209ac3 ER |
134 | %{__make} install \ |
135 | DESTDIR=$RPM_BUILD_ROOT | |
136 | ||
137 | %py_postclean | |
138 | ||
139 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdee*.la | |
140 | ||
141 | %clean | |
142 | rm -rf $RPM_BUILD_ROOT | |
143 | ||
144 | %post -p /sbin/ldconfig | |
145 | %postun -p /sbin/ldconfig | |
146 | ||
147 | %files | |
148 | %defattr(644,root,root,755) | |
18a826ef | 149 | %doc AUTHORS |
91209ac3 | 150 | %attr(755,root,root) %{_bindir}/dee-tool |
18a826ef JB |
151 | %attr(755,root,root) %{_libdir}/libdee-1.0.so.*.*.* |
152 | %attr(755,root,root) %ghost %{_libdir}/libdee-1.0.so.4 | |
153 | %{_libdir}/girepository-1.0/Dee-1.0.typelib | |
91209ac3 | 154 | |
18a826ef | 155 | %files devel |
91209ac3 | 156 | %defattr(644,root,root,755) |
18a826ef | 157 | %attr(755,root,root) %{_libdir}/libdee-1.0.so |
91209ac3 | 158 | %{_includedir}/dee-1.0 |
18a826ef JB |
159 | %{_pkgconfigdir}/dee-1.0.pc |
160 | %{_pkgconfigdir}/dee-icu-1.0.pc | |
161 | %{_datadir}/gir-1.0/Dee-1.0.gir | |
162 | ||
163 | %if %{with static_libs} | |
164 | %files static | |
165 | %defattr(644,root,root,755) | |
166 | %{_libdir}/libdee-1.0.a | |
167 | %endif | |
91209ac3 ER |
168 | |
169 | %files apidocs | |
170 | %defattr(644,root,root,755) | |
85f27eab | 171 | %{_gtkdocdir}/dee-1.0 |
9cef312f ER |
172 | |
173 | %files -n python-dee | |
174 | %defattr(644,root,root,755) | |
175 | %{py_sitedir}/gi/overrides/Dee.py[co] | |
18a826ef JB |
176 | |
177 | %files -n vala-dee | |
178 | %defattr(644,root,root,755) | |
179 | %{_datadir}/vala/vapi/dee-1.0.vapi | |
180 | %{_datadir}/vala/vapi/dee-1.0.deps |