commit e7c678a62eaad690b71ba36dc5779dd811963244942d0a3c7aa5b5d04ad3c1db Author: Marcus Meissner Date: Sun Apr 19 12:57:42 2020 +0000 Accepting request 794136 from home:gary_lin:branches:Base:System libjcat is required by fwupd 1.4.0. OBS-URL: https://build.opensuse.org/request/show/794136 OBS-URL: https://build.opensuse.org/package/show/Base:System/libjcat?expand=0&rev=1 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/_service b/_service new file mode 100644 index 0000000..4077a75 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + https://github.com/hughsie/libjcat.git + git + @PARENT_TAG@ + enable + refs/tags/0.1.1 + + + *.tar + xz + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..77481cf --- /dev/null +++ b/_servicedata @@ -0,0 +1,4 @@ + + + https://github.com/hughsie/libjcat.git + 4a3c835c18f95f590e434538b761a78943c26cb1 \ No newline at end of file diff --git a/libjcat-0.1.1.tar.xz b/libjcat-0.1.1.tar.xz new file mode 100644 index 0000000..277bc5d --- /dev/null +++ b/libjcat-0.1.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b6f2ee0b4baa44b1f02e6600fa55280904d7196c29ffb209f934e53ca3e6dddc +size 52932 diff --git a/libjcat.changes b/libjcat.changes new file mode 100644 index 0000000..86fd1bd --- /dev/null +++ b/libjcat.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Wed Apr 15 07:18:51 UTC 2020 - Gary Ching-Pang Lin + +- Initial import 0.1.1 diff --git a/libjcat.spec b/libjcat.spec new file mode 100644 index 0000000..de590aa --- /dev/null +++ b/libjcat.spec @@ -0,0 +1,119 @@ +# +# spec file for package libjcat +# +# Copyright (c) 2020 SUSE LLC +# +# 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 sover 1 + +Name: libjcat +Version: 0.1.1 +Release: 0 +Summary: Library for reading and writing gzip-compressed JSON catalog files +License: LGPL-2.1-or-later +Url: https://github.com/hughsie/libjcat +Source: %{name}-%{version}.tar.xz +# for certtool +BuildRequires: gnutls +BuildRequires: gpgme-devel +BuildRequires: gtk-doc +BuildRequires: gobject-introspection +BuildRequires: help2man +BuildRequires: meson >= 0.47.0 +BuildRequires: python3-setuptools +BuildRequires: vala +BuildRequires: pkgconfig(gio-2.0) >= 2.45.8 +BuildRequires: pkgconfig(gio-unix-2.0) +BuildRequires: pkgconfig(gnutls) +BuildRequires: pkgconfig(json-glib-1.0) >= 1.1.1 + +%description +This library allows reading and writing gzip-compressed JSON +catalog files, which can be used to store GPG, PKCS-7 and +SHA-256 checksums for each file. This provides equivalent +functionality to the catalog files supported in Microsoft Windows. + +%package -n %{name}%{sover} +Summary: Library for reading and writing gzip-compressed JSON catalog files +Group: System/Libraries + +%description -n %{name}%{sover} +This package provides the shared library for %{name}. + +%package -n typelib-1_0-Jcat-1_0 +Summary: Introspection bindings for %{name} +Group: System/Libraries + +%description -n typelib-1_0-Jcat-1_0 +This package provides the GObject Introspection bindings for +%{name}. + +%package -n jcat-tool +Summary: Optional tool for %{name} +Group: Development/Libraries/Other + +%description -n jcat-tool +This package provides the optional jcat-tool for %{name}. + +%package devel +Summary: Development package for %{name} +Group: Development/Libraries/Other +Requires: %{name}%{sover} = %{version} +Requires: jcat-tool = %{version} + +%description devel +Files for development with %{name}. + +%prep +%autosetup -p1 + +%build +%meson \ + -Dgtkdoc=true \ + -Dintrospection=true \ + -Dtests=true \ + %{nil} +%meson_build + +%install +%meson_install + +%post -n %{name}%{sover} -p /sbin/ldconfig +%postun -n %{name}%{sover} -p /sbin/ldconfig + +%files -n %{name}%{sover} +%license LICENSE +%{_libdir}/%{name}.so.%{sover}* + +%files -n typelib-1_0-Jcat-1_0 +%{_libdir}/girepository-1.0/*.typelib + +%files -n jcat-tool +%doc NEWS README.md +%{_bindir}/jcat-tool +%{_mandir}/man1/jcat-tool.1.gz +%{_libexecdir}/installed-tests/ +%{_datadir}/installed-tests/ + +%files devel +%doc %{_datadir}/gtk-doc/html/%{name} +%{_datadir}/gir-1.0/*.gir +%dir %{_datadir}/vala/vapi/ +%{_datadir}/vala/vapi/jcat.* +%{_includedir}/%{name}-%{sover}/ +%{_libdir}/%{name}.so +%{_libdir}/pkgconfig/jcat.pc + +%changelog