From 6acb07d81e0568bef4bdc4c03b563d358a8cdfcbe130f0108b5944e434357721 Mon Sep 17 00:00:00 2001 From: Vincent Untz Date: Fri, 6 Apr 2012 14:10:30 +0000 Subject: [PATCH] Accepting request 112131 from home:vuntz:branches:GNOME:Factory New package: will replace libgnome-keyring, not completely sure if we'll need it for 12.2 OBS-URL: https://build.opensuse.org/request/show/112131 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/libsecret?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + baselibs.conf | 1 + libsecret-0.1.tar.xz | 3 + libsecret.changes | 5 ++ libsecret.spec | 134 +++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 167 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 baselibs.conf create mode 100644 libsecret-0.1.tar.xz create mode 100644 libsecret.changes create mode 100644 libsecret.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..515f28b --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libsecret-0-0 diff --git a/libsecret-0.1.tar.xz b/libsecret-0.1.tar.xz new file mode 100644 index 0000000..46b0998 --- /dev/null +++ b/libsecret-0.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0e260c6ce7372f7d429d5ff870485854b809b989728abfd9b674171ada5206ea +size 418612 diff --git a/libsecret.changes b/libsecret.changes new file mode 100644 index 0000000..4beb908 --- /dev/null +++ b/libsecret.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Mon Apr 2 06:11:57 UTC 2012 - vuntz@opensuse.org + +- New package with 0.1 as initial version. + diff --git a/libsecret.spec b/libsecret.spec new file mode 100644 index 0000000..dede815 --- /dev/null +++ b/libsecret.spec @@ -0,0 +1,134 @@ +# +# spec file for package libsecret +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define have_lang 0 + +Name: libsecret +Version: 0.1 +Release: 0 +Url: http://www.gnome.org/ +Summary: Library for accessing the Secret Service API +License: LGPL-2.0+ +Group: System/Libraries +Source0: http://download.gnome.org/sources/libsecret/0.1/%{name}-%{version}.tar.xz +Source99: baselibs.conf +BuildRequires: fdupes +BuildRequires: gobject-introspection-devel >= 1.29 +BuildRequires: intltool +BuildRequires: libgcrypt-devel >= 1.2.2 +BuildRequires: translation-update-upstream +BuildRequires: pkgconfig(glib-2.0) >= 2.31.0 +BuildRequires: pkgconfig(gio-2.0) >= 2.31.0 +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +libsecret is a library for storing and retrieving passwords and other +secrets. It communicates with the "Secret Service" using DBus. + +%package -n libsecret-0-0 +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 + +%description -n libsecret-0-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-0 +Summary: Library for accessing the Secret Service API -- Introspection bindings +Group: System/Libraries + +%description -n typelib-1_0-Secret-0 +libsecret is a library for storing and retrieving passwords and other +secrets. It communicates with the "Secret Service" using DBus. + +This package provides the GObject Introspection bindings for libsecret. + +%package tools +Summary: Library for accessing the Secret Service API -- Tools +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 +Summary: Library for accessing the Secret Service API -- Development Files +Group: Development/Libraries/GNOME +Requires: libsecret-0-0 = %{version} +Requires: typelib-1_0-Secret-0 = %{version} + +%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 +%prep +%setup -q +translation-update-upstream + +%build +%configure \ + --disable-static +#make %{?_smp_mflags} V=1 +make V=1 + +%install +%make_install +find %{buildroot} -type f -name "*.la" -delete -print +%if %{have_lang} +%find_lang %{name} %{?no_lang_C} +%endif +%fdupes %{buildroot} + +%post -n libsecret-0-0 -p /sbin/ldconfig + +%postun -n libsecret-0-0 -p /sbin/ldconfig + +%files -n libsecret-0-0 +%defattr (-, root, root) +%doc AUTHORS ChangeLog COPYING NEWS README +%{_libdir}/libsecret-0.so.* + +%files -n typelib-1_0-Secret-0 +%defattr(-,root,root) +%{_libdir}/girepository-1.0/Secret-0.typelib + +%files tools +%defattr(-,root,root) +%{_bindir}/secret-tool + +%files devel +%defattr (-, root, root) +%{_libdir}/libsecret-0.so +%{_libdir}/pkgconfig/libsecret-0.pc +%{_includedir}/secret-0/ +%{_datadir}/gir-1.0/Secret-0.gir +%doc %{_datadir}/gtk-doc/html/libsecret-0/ + +%if %{have_lang} +%files lang -f %{name}.lang +%endif + +%changelog