From 00d98c1a92210f2086d8f37252f3cc82816536d041c35c40703f5aa2ec0515c6 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Thu, 15 Dec 2022 21:22:27 +0000 Subject: [PATCH] Accepting request 1043141 from home:jengelh:dev OBS-URL: https://build.opensuse.org/request/show/1043141 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c-utf8?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++++ .gitignore | 1 + c-utf8.changes | 4 +++ c-utf8.spec | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++ v1.0.0.tar.gz | 3 +++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 c-utf8.changes create mode 100644 c-utf8.spec create mode 100644 v1.0.0.tar.gz 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/c-utf8.changes b/c-utf8.changes new file mode 100644 index 0000000..a92a9c2 --- /dev/null +++ b/c-utf8.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Dec 13 10:31:11 UTC 2022 - Jan Engelhardt + +- Initial package (version 1.0.0) for build.opensuse.org diff --git a/c-utf8.spec b/c-utf8.spec new file mode 100644 index 0000000..86ab354 --- /dev/null +++ b/c-utf8.spec @@ -0,0 +1,70 @@ +# +# spec file for package c-utf8 +# +# Copyright (c) 2022 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/ +# + + +Name: c-utf8 +%define lname libcutf8-1-0 +Version: 1.0.0 +Release: 0 +Summary: UTF-8 handling in standard ISO C11 +License: Apache-2.0 OR LGPL-2.1-or-later +URL: https://github.com/c-util/c-utf8 +Source: https://github.com/c-util/c-utf8/archive/refs/tags/v%version.tar.gz +BuildRequires: meson >= 0.60 +BuildRequires: pkg-config >= 0.29 +BuildRequires: pkgconfig(libcstdaux-1) >= 1.3 + +%description +c-utf8 implements utility functions around handling UTF-8 in standard ISO C11. + +%package -n %lname +Summary: UTF-8 handling in standard ISO C11 + +%description -n %lname +c-utf8 implements utility functions around handling UTF-8 in standard ISO C11. + +%package devel +Summary: Header files for the c-utf8 library +Requires: %lname = %version + +%description devel +c-utf8 implements utility functions around handling UTF-8 in standard ISO C11. + +%prep +%autosetup + +%build +%meson --includedir="%_includedir/%name" +%meson_build + +%install +%meson_install +rm -v "%buildroot/%_libdir"/*.a + +%post -n %lname -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%_libdir/*.so.* + +%files devel +%_includedir/%name/ +%_libdir/*.so +%_libdir/pkgconfig/*.pc +%license AUTHORS + +%changelog diff --git a/v1.0.0.tar.gz b/v1.0.0.tar.gz new file mode 100644 index 0000000..f2d5d58 --- /dev/null +++ b/v1.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0b100e6f19810638b901e8f60c0fe82346a19927b0c03641a5016a6fc697e7c7 +size 9372