]>
Commit | Line | Data |
---|---|---|
425d3724 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | %bcond_with gnome_cc # GNOME Control Center panel module (needs Ubuntu patch) | |
05f07d8b | 5 | |
425d3724 JB |
6 | Summary: Ubuntu Online Accounts configuration panel |
7 | Summary(pl.UTF-8): Panel konfiguracyjny Ubuntu Online Accounts | |
8 | Name: credentials-control-center | |
9 | Version: 0.1.5 | |
e85ec5b8 | 10 | Release: 4 |
425d3724 JB |
11 | License: LGPL v3 (libaccount-plugin), GPL v3 (panel) |
12 | Group: Libraries | |
13 | #Source0Download: https://launchpad.net/gnome-control-center-signon/ | |
14 | Source0: https://launchpad.net/gnome-control-center-signon/13.04/%{version}/+download/%{name}-%{version}.tar.xz | |
15 | # Source0-md5: deaa290c89dffee5198f3f0f6f2e1fe1 | |
e85ec5b8 | 16 | Patch0: %{name}-update.patch |
425d3724 JB |
17 | URL: https://launchpad.net/gnome-control-center-signon/ |
18 | BuildRequires: glib2-devel >= 1:2.30 | |
19 | %{?with_gnome_cc:BuildRequires: gnome-control-center-devel} | |
20 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
21 | BuildRequires: gtk+3-devel >= 3.0.0 | |
22 | BuildRequires: gtk-doc >= 1.14 | |
23 | BuildRequires: intltool >= 0.40.1 | |
24 | BuildRequires: libaccounts-glib-devel >= 1.8 | |
25 | BuildRequires: libsignon-glib-devel >= 1.8 | |
26 | BuildRequires: pkgconfig >= 1:0.24 | |
27 | BuildRequires: rpmbuild(macros) >= 1.219 | |
28 | BuildRequires: vala >= 2:0.15.1 | |
29 | BuildRequires: yelp-tools | |
30 | Requires: libaccount-plugin = %{version}-%{release} | |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
32 | ||
33 | %description | |
34 | This package is a configuration interface for the Ubuntu Online | |
35 | Accounts framework. It uses the patched GNOME Control Center in | |
36 | Ubuntu, with support for external configuration panels, to show Online | |
37 | Accounts settings in the Control Center. Alternatively, a standalone | |
38 | credentials-preferences binary can be built, which allows | |
39 | distributions without the patched GNOME Control Center to use the | |
40 | configuration UI. | |
41 | ||
42 | %description -l pl.UTF-8 | |
43 | Ten pakiet to interfejs konfiguracyjny do szkieletu Ubuntu Online | |
44 | Accounts. Wykorzystuje załataną wersję GNOME Control Center, z obsługą | |
45 | zewnętrznych paneli konfiguracyjnych, do wyświetlania ustawień Online | |
46 | Accounts w Centrum Sterowania. Alternatywnie dostępny jest samodzielny | |
47 | program do konfiguracji kont, który można używać jako graficzny | |
48 | interfejs konfiguracyjny bez załatanego GNOME Control Center. | |
49 | ||
50 | %package -n gnome-control-center-signon | |
51 | Summary: Ubuntu Online Accounts plugin for GNOME Control Center | |
52 | Summary(pl.UTF-8): Wtyczka Ubuntu Online Accounts dla GNOME Control Center | |
53 | Group: X11/Libraries | |
54 | Requires: %{name} = %{version}-%{release} | |
55 | ||
56 | %description -n gnome-control-center-signon | |
57 | Ubuntu Online Accounts credentials and settings plugin for GNOME | |
58 | Control Center. | |
59 | ||
60 | %description -n gnome-control-center-signon -l pl.UTF-8 | |
61 | Wtyczka konfiguracyjna danych uwierzytelniających i ustawień Ubuntu | |
62 | Online Accounts dla GNOME Control Center. | |
63 | ||
64 | %package -n libaccount-plugin | |
65 | Summary: Account plugins support library | |
66 | Summary(pl.UTF-8): Biblioteka obsługująca wtyczki dla kont | |
67 | Group: X11/Libraries | |
68 | Requires: glib2 >= 1:2.30 | |
69 | Requires: gtk+3 >= 3.0.0 | |
70 | Requires: libaccounts-glib >= 1.8 | |
71 | Requires: libsignon-glib >= 1.8 | |
72 | ||
73 | %description -n libaccount-plugin | |
74 | libaccount-plugin is an auxiliary library which provides support for | |
75 | account plugins. | |
76 | ||
e85ec5b8 JB |
77 | %description -n libaccount-plugin -l pl.UTF-8 |
78 | libaccount-plugin to biblioteka pomocnicza zapewniająca obsługę | |
79 | wtyczek dla kont. | |
80 | ||
425d3724 JB |
81 | %package -n libaccount-plugin-devel |
82 | Summary: Development files for account-plugin library | |
83 | Summary(pl.UTF-8): Pliki programistyczne biblioteki account-plugin | |
84 | Group: X11/Development/Libraries | |
85 | Requires: glib2-devel >= 1:2.30 | |
86 | Requires: gtk+3-devel >= 3.0.0 | |
87 | Requires: libaccount-plugin = %{version}-%{release} | |
88 | Requires: libaccounts-glib-devel >= 1.8 | |
89 | Requires: libsignon-glib-devel >= 1.8 | |
90 | ||
91 | %description -n libaccount-plugin-devel | |
92 | Development files for account-plugin library. | |
93 | ||
94 | %description -n libaccount-plugin-devel -l pl.UTF-8 | |
95 | Pliki programistyczne biblioteki account-plugin. | |
96 | ||
97 | %package -n libaccount-plugin-static | |
98 | Summary: Static credentials-control-center library | |
99 | Summary(pl.UTF-8): Statyczna biblioteka credentials-control-center | |
100 | Group: X11/Development/Libraries | |
101 | Requires: libaccount-plugin-devel = %{version}-%{release} | |
102 | ||
103 | %description -n libaccount-plugin-static | |
104 | Static credentials-control-center library. | |
105 | ||
106 | %description -n libaccount-plugin-static -l pl.UTF-8 | |
107 | Statyczna biblioteka credentials-control-center. | |
108 | ||
109 | %package -n libaccount-plugin-apidocs | |
110 | Summary: API documentation for account-plugin library | |
111 | Summary(pl.UTF-8): Dokumentacja API biblioteki account-plugin | |
112 | Group: Documentation | |
ccbd4791 | 113 | BuildArch: noarch |
425d3724 JB |
114 | |
115 | %description -n libaccount-plugin-apidocs | |
116 | API documentation for account-plugin library. | |
117 | ||
118 | %description -n libaccount-plugin-apidocs -l pl.UTF-8 | |
119 | Dokumentacja API biblioteki account-plugin. | |
120 | ||
121 | %package -n vala-libaccount-plugin | |
122 | Summary: Vala API for libaccount-plugin library | |
123 | Summary(pl.UTF-8): API języka Vala do biblioteki libaccount-plugin | |
124 | Group: X11/Development/Libraries | |
125 | Requires: libaccount-plugin-devel = %{version}-%{release} | |
126 | Requires: vala >= 2:0.15.1 | |
05f07d8b | 127 | BuildArch: noarch |
425d3724 JB |
128 | |
129 | %description -n vala-libaccount-plugin | |
130 | Vala API for libaccount-plugin library. | |
131 | ||
132 | %description -n vala-libaccount-plugin -l pl.UTF-8 | |
133 | API języka Vala do biblioteki libaccount-plugin. | |
134 | ||
135 | %prep | |
136 | %setup -q | |
e85ec5b8 | 137 | %patch0 -p1 |
425d3724 JB |
138 | |
139 | %build | |
140 | %configure \ | |
141 | --disable-silent-rules \ | |
142 | %{?with_static_libs:--enable-static} \ | |
143 | %{!?with_gnome_cc:--without-gnome-control-center} \ | |
144 | --with-html-dir=%{_gtkdocdir} | |
145 | %{__make} | |
146 | ||
147 | %install | |
148 | rm -rf $RPM_BUILD_ROOT | |
149 | install -d $RPM_BUILD_ROOT%{_libdir}/libaccount-plugin-1.0/{applications,providers} | |
150 | ||
151 | %{__make} install \ | |
152 | DESTDIR=$RPM_BUILD_ROOT | |
153 | ||
154 | # obsoleted by pkg-config | |
155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
156 | %if %{with gnome_cc} | |
157 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/control-center-1/panels/lib*.la | |
158 | %endif | |
159 | ||
160 | %find_lang web-credentials --with-gnome | |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | %post -n libaccount-plugin -p /sbin/ldconfig | |
166 | %postun -n libaccount-plugin -p /sbin/ldconfig | |
167 | ||
168 | %files -f web-credentials.lang | |
169 | %defattr(644,root,root,755) | |
170 | %doc AUTHORS ChangeLog NEWS README | |
171 | %attr(755,root,root) %{_bindir}/credentials-preferences | |
172 | %attr(755,root,root) %{_bindir}/online-accounts-preferences | |
173 | %attr(755,root,root) %{_libexecdir}/update-accounts | |
174 | %{_datadir}/dbus-1/services/com.canonical.webcredentials.capture.service | |
175 | %{_desktopdir}/credentials-preferences.desktop | |
176 | %{_desktopdir}/update-accounts.desktop | |
177 | %{_iconsdir}/hicolor/*x*/apps/credentials-add-account.png | |
178 | %{_iconsdir}/hicolor/*x*/apps/credentials-preferences.png | |
179 | ||
180 | %if %{with gnome_cc} | |
181 | %files -n gnome-control-center-signon | |
182 | %defattr(644,root,root,755) | |
183 | %attr(755,root,root) %{_libdir}/control-center-1/panels/libcredentials.so | |
184 | %{_desktopdir}/gnome-credentials-panel.desktop | |
185 | %endif | |
186 | ||
187 | %files -n libaccount-plugin | |
188 | %defattr(644,root,root,755) | |
189 | %attr(755,root,root) %{_libdir}/libaccount-plugin-1.0.so.*.*.* | |
190 | %attr(755,root,root) %ghost %{_libdir}/libaccount-plugin-1.0.so.0 | |
191 | %{_libdir}/girepository-1.0/AccountPlugin-1.0.typelib | |
192 | %dir %{_libdir}/libaccount-plugin-1.0 | |
193 | %dir %{_libdir}/libaccount-plugin-1.0/applications | |
194 | %dir %{_libdir}/libaccount-plugin-1.0/providers | |
195 | ||
196 | %files -n libaccount-plugin-devel | |
197 | %defattr(644,root,root,755) | |
198 | %attr(755,root,root) %{_libdir}/libaccount-plugin-1.0.so | |
199 | %{_datadir}/gir-1.0/AccountPlugin-1.0.gir | |
200 | %{_includedir}/libaccount-plugin | |
201 | %{_pkgconfigdir}/account-plugin.pc | |
202 | ||
203 | %if %{with static_libs} | |
204 | %files -n libaccount-plugin-static | |
205 | %defattr(644,root,root,755) | |
206 | %{_libdir}/libaccount-plugin-1.0.a | |
207 | %endif | |
208 | ||
209 | %files -n libaccount-plugin-apidocs | |
210 | %defattr(644,root,root,755) | |
211 | %{_gtkdocdir}/account-plugin | |
212 | ||
213 | %files -n vala-libaccount-plugin | |
214 | %defattr(644,root,root,755) | |
215 | %{_datadir}/vala/vapi/AccountPlugin.vapi |