]>
Commit | Line | Data |
---|---|---|
653fff1b JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # static library | |
4 | %bcond_without tests # testsuite build [switch broken in configure] | |
5 | # | |
6 | Summary: Single signon authentication library for GLib applications | |
7 | Summary(pl.UTF-8): Biblioteka pojedynczego uwierzytelniania dla aplikacji opartych na bibliotece GLib | |
8 | Name: libsignon-glib | |
9 | Version: 1.10 | |
c5d85cd6 | 10 | Release: 2 |
653fff1b JB |
11 | License: LGPL v2.1 |
12 | Group: Libraries | |
13 | #Source0Download: http://code.google.com/p/accounts-sso/downloads/list | |
14 | Source0: http://accounts-sso.googlecode.com/files/%{name}-%{version}.tar.gz | |
15 | # Source0-md5: 2d4726468726216975adbf74396de2b5 | |
16 | URL: http://code.google.com/p/accounts-sso/ | |
17 | %{?with_tests:BuildRequires: check-devel >= 0.9.4} | |
18 | BuildRequires: glib2-devel >= 1:2.36 | |
19 | BuildRequires: gobject-introspection-devel >= 1.30.0 | |
20 | BuildRequires: gtk-doc >= 1.14 | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: python-pygobject3-devel >= 3.0 | |
23 | BuildRequires: rpmbuild(macros) >= 1.219 | |
24 | BuildRequires: signon-devel >= 8.40 | |
25 | Requires: glib2 >= 1:2.36 | |
26 | Requires: signon-libs >= 8.40 | |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | This project is a library for managing single signon credentials which | |
31 | can be used from GLib applications. It is effectively a GLib binding | |
32 | for the D-Bus API provided by signond. It is part of the accounts-sso | |
33 | project. | |
34 | ||
35 | %description -l pl.UTF-8 | |
36 | Ten projekt to biblioteka do zarządzania danymi uwierzytelniającymi do | |
37 | pojedynczego logowania, z której można korzystać w aplikacjach | |
38 | opartych na bibliotece GLib. Jest to część projektu accounts-sso. | |
39 | ||
40 | %package devel | |
41 | Summary: Development files for libsignon-glib library | |
42 | Summary(pl.UTF-8): Pliki programistyczne biblioteki libsignon-glib | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: glib2-devel >= 1:2.36 | |
46 | Requires: signon-devel >= 8.40 | |
47 | ||
48 | %description devel | |
49 | Development files for libsignon-glib library. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki programistyczne biblioteki libsignon-glib. | |
53 | ||
54 | %package static | |
55 | Summary: Static libsignon-glib library | |
56 | Summary(pl.UTF-8): Statyczna biblioteka libsignon-glib | |
57 | Group: Development/Libraries | |
58 | Requires: %{name}-devel = %{version}-%{release} | |
59 | ||
60 | %description static | |
61 | Static libsignon-glib library. | |
62 | ||
63 | %description static -l pl.UTF-8 | |
64 | Statyczna biblioteka libsignon-glib. | |
65 | ||
66 | %package apidocs | |
67 | Summary: API documentation for libsignon-glib library | |
68 | Summary(pl.UTF-8): Dokumentacja API biblioteki libsignon-glib | |
69 | Group: Documentation | |
70 | ||
71 | %description apidocs | |
72 | API documentation for libsignon-glib library. | |
73 | ||
74 | %description apidocs -l pl.UTF-8 | |
75 | Dokumentacja API biblioteki libsignon-glib. | |
76 | ||
77 | %package -n python-libsignon-glib | |
78 | Summary: Python bindings for libsignon-glib | |
79 | Summary(pl.UTF-8): Wiązania Pythona do biblioteki libsignon-glib | |
80 | Group: Development/Languages/Python | |
81 | Requires: %{name} = %{version}-%{release} | |
82 | Requires: python-pygobject3 >= 3 | |
83 | ||
84 | %description -n python-libsignon-glib | |
85 | Python bindings for libsignon-glib. | |
86 | ||
87 | %description -n python-libsignon-glib -l pl.UTF-8 | |
88 | Wiązania Pythona do biblioteki libsignon-glib. | |
89 | ||
90 | %package -n vala-libsignon-glib | |
91 | Summary: Vala API for libsignon-glib | |
92 | Summary(pl.UTF-8): API języka Vala do biblioteki libsignon-glib | |
93 | Group: Development/Libraries | |
94 | Requires: %{name}-devel = %{version}-%{release} | |
95 | Requires: vala | |
96 | ||
97 | %description -n vala-libsignon-glib | |
98 | Vala API for libsignon-glib. | |
99 | ||
100 | %description -n vala-libsignon-glib -l pl.UTF-8 | |
101 | API języka Vala do biblioteki libsignon-glib. | |
102 | ||
103 | %prep | |
104 | %setup -q | |
105 | ||
106 | %build | |
107 | %configure \ | |
108 | --disable-silent-rules \ | |
109 | %{?with_static_libs:--enable-static} \ | |
110 | %{!?with_tests:--disable-tests} \ | |
111 | --with-html-dir=%{_gtkdocdir} | |
2258a64c | 112 | %{__make} -j1 |
653fff1b JB |
113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | %{__make} install \ | |
117 | DESTDIR=$RPM_BUILD_ROOT | |
118 | ||
119 | # obsoleted by pkg-config | |
120 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libsignon-glib.la | |
121 | ||
122 | %py_postclean | |
123 | ||
124 | %clean | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %post -p /sbin/ldconfig | |
128 | %postun -p /sbin/ldconfig | |
129 | ||
130 | %files | |
131 | %defattr(644,root,root,755) | |
132 | %doc AUTHORS ChangeLog NEWS README | |
133 | %attr(755,root,root) %{_libdir}/libsignon-glib.so.*.*.* | |
134 | %attr(755,root,root) %ghost %{_libdir}/libsignon-glib.so.1 | |
135 | %{_libdir}/girepository-1.0/Signon-1.0.typelib | |
136 | ||
137 | %files devel | |
138 | %defattr(644,root,root,755) | |
139 | %attr(755,root,root) %{_libdir}/libsignon-glib.so | |
140 | %{_datadir}/gir-1.0/Signon-1.0.gir | |
141 | %{_includedir}/libsignon-glib | |
142 | %{_pkgconfigdir}/libsignon-glib.pc | |
143 | ||
144 | %if %{with static_libs} | |
145 | %files static | |
146 | %defattr(644,root,root,755) | |
147 | %{_libdir}/libsignon-glib.a | |
148 | %endif | |
149 | ||
150 | %files apidocs | |
151 | %defattr(644,root,root,755) | |
152 | %{_gtkdocdir}/libsignon-glib | |
153 | ||
154 | %files -n python-libsignon-glib | |
155 | %defattr(644,root,root,755) | |
156 | %{py_sitedir}/gi/overrides/Signon.py[co] | |
157 | ||
158 | %files -n vala-libsignon-glib | |
159 | %defattr(644,root,root,755) | |
160 | %{_datadir}/vala/vapi/signon.vapi |