From e64064eb67bbecaf625232a5556b0972bff74be44a60164d5665a06fac8fb046 Mon Sep 17 00:00:00 2001 From: Marcus Meissner Date: Tue, 15 Sep 2020 05:48:16 +0000 Subject: [PATCH] Accepting request 834353 from home:theMarix I want to maintain INIH in Factory and would like to use devel:libraries:c_c++ as the devel project. My primary motiviation that this library is a new dependency of Gamemode which is already in Factory. However, as it is an INI parser, there is nothing about it that's specific to games or game-related tools. Thus, I think it fits this project much better than games:tools in which Gamemode is maintained. This supersedes my previous request which, due to an oversight, provided a package that could not actually be installed. OBS-URL: https://build.opensuse.org/request/show/834353 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/inih?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++ .gitignore | 1 + inih-r51.tar.gz | 3 ++ inih.changes | 9 +++++ inih.spec | 92 +++++++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 128 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 inih-r51.tar.gz create mode 100644 inih.changes create mode 100644 inih.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/inih-r51.tar.gz b/inih-r51.tar.gz new file mode 100644 index 0000000..32dc622 --- /dev/null +++ b/inih-r51.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:132361da6d3172760a40319722b50244aee1b7ce7077a0dd8805881e6a8ea4aa +size 16258 diff --git a/inih.changes b/inih.changes new file mode 100644 index 0000000..9b7a661 --- /dev/null +++ b/inih.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Mon Sep 14 18:13:19 UTC 2020 - Matthias Bach + +- Fix broken requirement + +------------------------------------------------------------------- +Sat Sep 12 19:26:16 UTC 2020 - Matthias Bach - 51 + +- Initial package release diff --git a/inih.spec b/inih.spec new file mode 100644 index 0000000..f254974 --- /dev/null +++ b/inih.spec @@ -0,0 +1,92 @@ +# +# spec file for package inih +# +# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2020 Matthias Bach +# +# 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: inih +Version: 51 +Release: 0 +Summary: Simple .INI file parser in C, good for embedded systems +License: BSD-3-Clause +Group: Development/Libraries/C and C++ +Url: https://github.com/benhoyt/inih +Source: https://github.com/benhoyt/inih/archive/r51.tar.gz#/inih-r51.tar.gz +BuildRequires: gcc-c++ +BuildRequires: meson +BuildRequires: pkgconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +INI Not Invented Here is a simple parser for .INI files written in C and mostly +compatible with Python's ConfigParser. + +%package -n libinih49 +Summary: INIH dynamic libary files +Group: System/Libraries + +%description -n libinih49 +INI Not Invented Here is a simple parser for .INI files written in C and mostly +compatible with Python's ConfigParser. + +This package provides the library for use at runtime by applications using INIH. + +%package -n libinih-devel +Summary: Development files for INIH +Group: Development/Libraries/C and C++ +Requires: libinih49 = %{version} + +%description -n libinih-devel +INI Not Invented Here is a simple parser for .INI files written in C and mostly +compatible with Python's ConfigParser. + +This package provides the development headers for INIH including the C++ bindings. + +%prep +%setup -q -n %{name}-r%{version} + +%build +%meson -Ddefault_library=shared -Ddistro_install=true -Dwith_INIReader=true +%meson_build + +%check +%meson_test + +%install +%meson_install + +%post -n libinih49 -p /sbin/ldconfig +%postun -n libinih49 -p /sbin/ldconfig + +%files -n libinih49 +%defattr(-,root,root) +%{_libdir}/libinih.so.* +%{_libdir}/libINIReader.so.* +%license LICENSE.txt + +%files -n libinih-devel +%defattr(-,root,root) +%{_includedir}/ini.h +%{_includedir}/INIReader.h +%{_libdir}/libinih.so +%{_libdir}/libINIReader.so +%{_libdir}/pkgconfig/inih.pc +%{_libdir}/pkgconfig/INIReader.pc +%doc README.md +%license LICENSE.txt + +%changelog +