]>
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 |
ee5cfe7b | 9 | Release: 9 |
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 |
18a826ef | 17 | URL: https://launchpad.net/dee |
dc0207bd | 18 | BuildRequires: glib2-devel >= 1:2.32 |
18a826ef JB |
19 | BuildRequires: gobject-introspection-devel >= 0.10.2 |
20 | BuildRequires: gtk-doc >= 1.8 | |
21 | BuildRequires: libicu-devel >= 4.6 | |
22 | BuildRequires: pkgconfig | |
91209ac3 | 23 | BuildRequires: rpmbuild(macros) >= 1.219 |
18a826ef JB |
24 | # not needed for releases |
25 | #BuildRequires: vala | |
dc0207bd | 26 | Requires: glib2 >= 1:2.32 |
18a826ef | 27 | Requires: libicu >= 4.6 |
91209ac3 ER |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | Libdee is a library that uses DBus to provide objects allowing you to | |
32 | create Model-View-Controller type programs across DBus. It also | |
33 | consists of utility objects which extend DBus allowing for | |
34 | peer-to-peer discoverability of known objects without needing a | |
35 | central registrar. | |
36 | ||
18a826ef JB |
37 | %description -l pl.UTF-8 |
38 | Libdee to biblioteka wykorzystująca DBus w celu zapewnienia obiektów | |
39 | pozwalających na tworzenie programów typu model-widok-kontroler | |
40 | poprzez DBus. Składa się z obiektów narzędziowych rozszerzających DBus | |
41 | o możliwość widzenia znanych obiektów w komunikacji peer-to-peer bez | |
42 | potrzeby centralnego rejestru. | |
43 | ||
18bd4007 | 44 | %package devel |
18a826ef JB |
45 | Summary: Development files for libdee |
46 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libdee | |
91209ac3 ER |
47 | Group: Development/Libraries |
48 | Requires: %{name} = %{version}-%{release} | |
dc0207bd | 49 | Requires: glib2-devel >= 1:2.32 |
18a826ef | 50 | Requires: libicu-devel >= 4.6 |
91209ac3 | 51 | |
18bd4007 | 52 | %description devel |
18a826ef JB |
53 | This package contains the header files for developing applications |
54 | that use libdee library. | |
55 | ||
56 | %description devel -l pl.UTF-8 | |
57 | Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji | |
58 | wykorzystujących bibliotekę libdee. | |
59 | ||
60 | %package static | |
61 | Summary: Static libdee library | |
62 | Summary(pl.UTF-8): Biblioteka statyczna libdee | |
63 | Group: Development/Libraries | |
64 | Requires: %{name}-devel = %{version}-%{release} | |
65 | ||
66 | %description static | |
67 | Static libdee library. | |
68 | ||
69 | %description static -l pl.UTF-8 | |
70 | Biblioteka statyczna libdee. | |
91209ac3 ER |
71 | |
72 | %package apidocs | |
18a826ef JB |
73 | Summary: Libdee API documentation |
74 | Summary(pl.UTF-8): Dokumentacja API biblioteki libdee | |
91209ac3 | 75 | Group: Documentation |
32c34cff ER |
76 | %if "%{_rpmversion}" >= "5" |
77 | BuildArch: noarch | |
78 | %endif | |
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 ER |
104 | %if "%{_rpmversion}" >= "5" |
105 | BuildArch: noarch | |
106 | %endif | |
18a826ef JB |
107 | |
108 | %description -n vala-dee | |
109 | Libdee API for Vala language. | |
110 | ||
111 | %description -n vala-dee -l pl.UTF-8 | |
112 | API libdee dla języka Vala. | |
9cef312f | 113 | |
91209ac3 ER |
114 | %prep |
115 | %setup -q | |
1c38d6a4 | 116 | %patch0 -p1 |
ee5cfe7b | 117 | %patch1 -p1 |
91209ac3 ER |
118 | |
119 | %build | |
1c38d6a4 JR |
120 | %{__aclocal} |
121 | %{__autoconf} | |
122 | %{__autoheader} | |
123 | %{__automake} | |
91209ac3 | 124 | %configure \ |
18a826ef JB |
125 | --disable-silent-rules \ |
126 | %{?with_static_libs:--enable-static} \ | |
fd961c27 | 127 | --with-html-dir=%{_gtkdocdir} |
91209ac3 ER |
128 | |
129 | %{__make} | |
130 | ||
131 | %install | |
132 | rm -rf $RPM_BUILD_ROOT | |
85f27eab JR |
133 | install -d $RPM_BUILD_ROOT%{_gtkdocdir} |
134 | ||
91209ac3 ER |
135 | %{__make} install \ |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | ||
138 | %py_postclean | |
139 | ||
140 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdee*.la | |
141 | ||
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post -p /sbin/ldconfig | |
146 | %postun -p /sbin/ldconfig | |
147 | ||
148 | %files | |
149 | %defattr(644,root,root,755) | |
18a826ef | 150 | %doc AUTHORS |
91209ac3 | 151 | %attr(755,root,root) %{_bindir}/dee-tool |
18a826ef JB |
152 | %attr(755,root,root) %{_libdir}/libdee-1.0.so.*.*.* |
153 | %attr(755,root,root) %ghost %{_libdir}/libdee-1.0.so.4 | |
154 | %{_libdir}/girepository-1.0/Dee-1.0.typelib | |
91209ac3 | 155 | |
18a826ef | 156 | %files devel |
91209ac3 | 157 | %defattr(644,root,root,755) |
18a826ef | 158 | %attr(755,root,root) %{_libdir}/libdee-1.0.so |
91209ac3 | 159 | %{_includedir}/dee-1.0 |
18a826ef JB |
160 | %{_pkgconfigdir}/dee-1.0.pc |
161 | %{_pkgconfigdir}/dee-icu-1.0.pc | |
162 | %{_datadir}/gir-1.0/Dee-1.0.gir | |
163 | ||
164 | %if %{with static_libs} | |
165 | %files static | |
166 | %defattr(644,root,root,755) | |
167 | %{_libdir}/libdee-1.0.a | |
168 | %endif | |
91209ac3 ER |
169 | |
170 | %files apidocs | |
171 | %defattr(644,root,root,755) | |
85f27eab | 172 | %{_gtkdocdir}/dee-1.0 |
9cef312f ER |
173 | |
174 | %files -n python-dee | |
175 | %defattr(644,root,root,755) | |
176 | %{py_sitedir}/gi/overrides/Dee.py[co] | |
18a826ef JB |
177 | |
178 | %files -n vala-dee | |
179 | %defattr(644,root,root,755) | |
180 | %{_datadir}/vala/vapi/dee-1.0.vapi | |
181 | %{_datadir}/vala/vapi/dee-1.0.deps |