From 12dcbc3384901db5722a2210883a211e29e587eb81ac95bce83911701879965a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Wed, 4 Oct 2023 11:59:50 +0000 Subject: [PATCH] Accepting request 1115584 from GNOME:Next New dep for gtranslator OBS-URL: https://build.opensuse.org/request/show/1115584 OBS-URL: https://build.opensuse.org/package/show/GNOME:Apps/libspelling?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + libspelling-0.2.0.tar.xz | 3 ++ libspelling.changes | 4 ++ libspelling.spec | 100 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 131 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libspelling-0.2.0.tar.xz create mode 100644 libspelling.changes create mode 100644 libspelling.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/libspelling-0.2.0.tar.xz b/libspelling-0.2.0.tar.xz new file mode 100644 index 0000000..daf4fc6 --- /dev/null +++ b/libspelling-0.2.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:fdc5609e02818eca6fc172ff164caa8e52dba638d7590130af3dfb1f28b53421 +size 46108 diff --git a/libspelling.changes b/libspelling.changes new file mode 100644 index 0000000..16598b1 --- /dev/null +++ b/libspelling.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Sun Sep 17 07:34:45 UTC 2023 - Bjørn Lie + +- Initial packaging for openSUSE. diff --git a/libspelling.spec b/libspelling.spec new file mode 100644 index 0000000..48a2e25 --- /dev/null +++ b/libspelling.spec @@ -0,0 +1,100 @@ +# +# spec file for package libspelling +# +# Copyright (c) 2023 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 https://bugs.opensuse.org/ +# + + +Name: libspelling +Version: 0.2.0 +Release: 0 +Summary: A spellcheck library for GTK 4 +# main source is LGPL-2.1-or-later +# lib/egg-action-group.h is GPL-3.0-or-later +License: LGPL-2.1-or-later AND GPL-3.0-or-later +URL: https://gitlab.gnome.org/chergert/libspelling +Source: https://download.gnome.org/sources/libspelling/0.2/%{name}-%{version}.tar.xz + +BuildRequires: pkgconfig +BuildRequires: c_compiler +BuildRequires: meson +BuildRequires: pkgconfig(gio-2.0) +BuildRequires: pkgconfig(gtk4) +BuildRequires: pkgconfig(gtksourceview-5) +BuildRequires: pkgconfig(enchant-2) +BuildRequires: pkgconfig(icu-uc) +BuildRequires: pkgconfig(gobject-introspection-1.0) +BuildRequires: pkgconfig(vapigen) +BuildRequires: pkgconfig(gi-docgen) + +%description +A spellcheck library for GTK 4. +This library is heavily based upon GNOME Text Editor and GNOME +Builder's spellcheck implementation. However, it is licensed +LGPL-2.1-or-later + +%package -n libspelling1-1 +Summary: Shared libraries for %{name} + +%description -n libspelling1-1 +Shared libraries for %{name}. + +%package -n typelib-1_0-Spelling-1 +Summary: Introspection file for %{name} + +%description -n typelib-1_0-Spelling-1 +Introspection file for %{name}. + +%package devel +Summary: Development files for %{name} +Requires: libspelling1-1 = %{version} +Requires: typelib-1_0-Spelling-1 = %{version} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + +%prep +%autosetup + +%build +%meson +%meson_build + +%install +%meson_install + +%ldconfig_scriptlets -n libspelling1-1 + +%files -n libspelling1-1 +%license COPYING +%doc NEWS README.md +%{_libdir}/libspelling-1.so.1* + +%files -n typelib-1_0-Spelling-1 +%{_libdir}/girepository-1.0/Spelling-1.typelib + +%files devel +%doc %{_datadir}/doc/libspelling-1/ +%{_includedir}/libspelling-1 +%{_libdir}/libspelling-1.so +%{_libdir}/pkgconfig/libspelling-1.pc +%{_datadir}/gir-1.0/Spelling-1.gir +%dir %{_datadir}/vala +%dir %{_datadir}/vala/vapi +%{_datadir}/vala/vapi/libspelling-1.deps +%{_datadir}/vala/vapi/libspelling-1.vapi + +%changelog +