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