2012-04-06 16:10:30 +02:00
|
|
|
#
|
|
|
|
# spec file for package libsecret
|
|
|
|
#
|
2020-01-15 13:34:07 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2012-04-06 16:10:30 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2019-01-03 11:51:48 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-04-06 16:10:30 +02:00
|
|
|
#
|
|
|
|
|
2012-09-21 21:22:37 +02:00
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
%define have_lang 1
|
2012-04-06 16:10:30 +02:00
|
|
|
Name: libsecret
|
2020-01-15 13:34:07 +01:00
|
|
|
Version: 0.20.0
|
2012-04-06 16:10:30 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for accessing the Secret Service API
|
2018-03-09 11:07:40 +01:00
|
|
|
License: LGPL-2.1-or-later
|
2018-03-13 09:52:36 +01:00
|
|
|
Group: Development/Libraries/GNOME
|
2018-04-03 12:37:33 +02:00
|
|
|
URL: https://wiki.gnome.org/Projects/Libsecret
|
2020-01-15 13:34:07 +01:00
|
|
|
Source0: https://download.gnome.org/sources/libsecret/0.20/%{name}-%{version}.tar.xz
|
2012-04-06 16:10:30 +02:00
|
|
|
Source99: baselibs.conf
|
2019-03-04 14:53:24 +01:00
|
|
|
|
2018-04-03 12:37:33 +02:00
|
|
|
## SLE-only patches start at 1000
|
2016-08-28 17:42:46 +02:00
|
|
|
# PATCH-FIX-SLE libsecret-bsc932232-use-libgcrypt-allocators.patch bsc#932232 hpj@suse.com -- use libgcrypt allocators for FIPS mode
|
2018-04-03 12:37:33 +02:00
|
|
|
Patch1000: libsecret-bsc932232-use-libgcrypt-allocators.patch
|
2019-03-04 14:53:24 +01:00
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
BuildRequires: docbook-xsl-stylesheets
|
2012-04-06 16:10:30 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: gobject-introspection-devel >= 1.29
|
2019-10-04 17:53:29 +02:00
|
|
|
BuildRequires: gtk-doc
|
2012-04-06 16:10:30 +02:00
|
|
|
BuildRequires: libgcrypt-devel >= 1.2.2
|
2019-10-04 17:53:29 +02:00
|
|
|
BuildRequires: meson >= 0.50
|
2018-03-09 11:07:40 +01:00
|
|
|
BuildRequires: pkgconfig
|
2012-04-06 16:10:30 +02:00
|
|
|
BuildRequires: translation-update-upstream
|
2012-09-21 21:22:37 +02:00
|
|
|
BuildRequires: vala >= 0.17.2.12
|
2012-09-07 17:24:59 +02:00
|
|
|
BuildRequires: xsltproc
|
2014-03-07 17:29:17 +01:00
|
|
|
BuildRequires: pkgconfig(gio-2.0)
|
2012-04-06 16:10:30 +02:00
|
|
|
BuildRequires: pkgconfig(gio-unix-2.0)
|
2019-03-04 14:53:24 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0) >= 2.44.0
|
2012-04-06 16:10:30 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
libsecret is a library for storing and retrieving passwords and other
|
|
|
|
secrets. It communicates with the "Secret Service" using DBus.
|
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
%package -n libsecret-1-0
|
2012-04-06 16:10:30 +02:00
|
|
|
Summary: Library for accessing the Secret Service API
|
|
|
|
Group: System/Libraries
|
|
|
|
%if %{have_lang}
|
|
|
|
Recommends: %{name}-lang
|
|
|
|
# To make the lang package happy
|
|
|
|
Provides: %{name} = %{version}
|
|
|
|
%endif
|
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
%description -n libsecret-1-0
|
|
|
|
libsecret is a library for storing and retrieving passwords and other
|
|
|
|
secrets. It communicates with the "Secret Service" using DBus.
|
|
|
|
|
|
|
|
%package -n typelib-1_0-Secret-1
|
2018-03-13 09:52:36 +01:00
|
|
|
Summary: Introspection bindings for the Secret Service API library
|
2012-09-07 17:24:59 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n typelib-1_0-Secret-1
|
2012-04-06 16:10:30 +02:00
|
|
|
libsecret is a library for storing and retrieving passwords and other
|
|
|
|
secrets. It communicates with the "Secret Service" using DBus.
|
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
This package provides the GObject Introspection bindings for libsecret.
|
|
|
|
|
2012-04-06 16:10:30 +02:00
|
|
|
%package tools
|
2018-03-13 09:52:36 +01:00
|
|
|
Summary: Tools from the Secret Service API library
|
2012-04-06 16:10:30 +02:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
libsecret is a library for storing and retrieving passwords and other
|
|
|
|
secrets. It communicates with the "Secret Service" using DBus.
|
|
|
|
|
|
|
|
%package devel
|
2018-03-13 09:52:36 +01:00
|
|
|
Summary: Development files for the Secret Service API library
|
2012-04-06 16:10:30 +02:00
|
|
|
Group: Development/Libraries/GNOME
|
2012-09-07 17:24:59 +02:00
|
|
|
Requires: libsecret-1-0 = %{version}
|
|
|
|
Requires: typelib-1_0-Secret-1 = %{version}
|
2012-04-06 16:10:30 +02:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
libsecret is a library for storing and retrieving passwords and other
|
|
|
|
secrets. It communicates with the "Secret Service" using DBus.
|
|
|
|
|
|
|
|
%if %{have_lang}
|
|
|
|
%lang_package
|
|
|
|
%endif
|
2018-03-09 11:07:40 +01:00
|
|
|
|
2012-04-06 16:10:30 +02:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2016-08-28 17:42:46 +02:00
|
|
|
%if !0%{?is_opensuse}
|
2018-04-03 12:37:33 +02:00
|
|
|
%patch1000 -p1
|
2016-08-28 17:42:46 +02:00
|
|
|
%endif
|
2012-04-06 16:10:30 +02:00
|
|
|
translation-update-upstream
|
|
|
|
|
|
|
|
%build
|
2019-10-04 17:53:29 +02:00
|
|
|
%meson \
|
|
|
|
%{nil}
|
|
|
|
%meson_build
|
2012-04-06 16:10:30 +02:00
|
|
|
|
|
|
|
%install
|
2019-10-04 17:53:29 +02:00
|
|
|
%meson_install
|
2012-04-06 16:10:30 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%if %{have_lang}
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
|
|
|
%endif
|
2018-03-13 09:52:36 +01:00
|
|
|
%fdupes %{buildroot}/%{_prefix}
|
2012-04-06 16:10:30 +02:00
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
%post -n libsecret-1-0 -p /sbin/ldconfig
|
|
|
|
%postun -n libsecret-1-0 -p /sbin/ldconfig
|
2012-04-06 16:10:30 +02:00
|
|
|
|
2012-09-07 17:24:59 +02:00
|
|
|
%files -n libsecret-1-0
|
2018-03-09 11:07:40 +01:00
|
|
|
%license COPYING
|
2018-04-03 12:37:33 +02:00
|
|
|
%doc NEWS README
|
2012-09-07 17:24:59 +02:00
|
|
|
%{_libdir}/libsecret-1.so.*
|
|
|
|
|
|
|
|
%files -n typelib-1_0-Secret-1
|
|
|
|
%{_libdir}/girepository-1.0/Secret-1.typelib
|
2012-04-06 16:10:30 +02:00
|
|
|
|
|
|
|
%files tools
|
|
|
|
%{_bindir}/secret-tool
|
2012-09-07 17:24:59 +02:00
|
|
|
%{_mandir}/man1/secret-tool.1%{?ext_man}
|
2012-04-06 16:10:30 +02:00
|
|
|
|
|
|
|
%files devel
|
2018-04-03 12:37:33 +02:00
|
|
|
%doc AUTHORS ChangeLog
|
2012-09-07 17:24:59 +02:00
|
|
|
%{_libdir}/libsecret-1.so
|
|
|
|
%{_libdir}/pkgconfig/libsecret-1.pc
|
|
|
|
%{_libdir}/pkgconfig/libsecret-unstable.pc
|
|
|
|
%{_includedir}/libsecret-1/
|
|
|
|
%{_datadir}/gir-1.0/Secret-1.gir
|
|
|
|
%doc %{_datadir}/gtk-doc/html/libsecret-1/
|
|
|
|
%dir %{_datadir}/vala/vapi
|
|
|
|
%{_datadir}/vala/vapi/libsecret-1.deps
|
|
|
|
%{_datadir}/vala/vapi/libsecret-1.vapi
|
2012-04-06 16:10:30 +02:00
|
|
|
|
|
|
|
%if %{have_lang}
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%changelog
|