summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCoprDistGit <copr-devel@lists.fedorahosted.org>2023-12-30 20:50:05 +0000
committerCoprDistGit <copr-devel@lists.fedorahosted.org>2023-12-30 20:50:05 +0000
commitdb48c02d221e8a86edd403ca44eb3982cee1a274 (patch)
tree3acc2c54cf03e677e88d15c3200c0939c1d6027b
parentc728a8af341616f1242e10916d6b1dd3c89d024d (diff)
automatic import of simpleiniHEADmasterf39f38
-rw-r--r--.gitignore1
-rw-r--r--simpleini.spec58
-rw-r--r--sources1
3 files changed, 60 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..105e0a2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/simpleini-4.22.tar.gz
diff --git a/simpleini.spec b/simpleini.spec
new file mode 100644
index 0000000..b6ce5a9
--- /dev/null
+++ b/simpleini.spec
@@ -0,0 +1,58 @@
+# header-only library
+%global debug_package %{nil}
+
+%global forgeurl https://github.com/brofield/simpleini
+Version: 4.22
+%forgemeta
+
+Name: simpleini
+Release: %autorelease
+Summary: Cross-platform C++ library to read and write INI-style configuration files
+License: MIT
+URL: %{forgeurl}
+Source0: %{forgesource}
+
+BuildRequires: gcc-c++
+BuildRequires: cmake
+BuildRequires: ninja-build
+
+%description
+simpleini is a cross-platform library that provides a simple API to read and
+write INI-style configuration files. It supports data files in ASCII, MBCS and
+Unicode. It is designed explicitly to be portable to any platform and has been
+tested on Windows, WinCE and Linux. Released as open-source and free using the
+MIT licence.
+
+%package devel
+Summary: Development files for %{name}
+Provides: %{name}-static = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains development files for %{name}.
+
+%prep
+%forgeautosetup -p1
+
+%build
+%cmake \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DSIMPLEINI_USE_SYSTEM_GTEST=ON
+
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+%ctest
+
+%files devel
+%license LICENCE.txt
+%doc README.md
+%dir %{_includedir}/SimpleIni
+%{_includedir}/SimpleIni/SimpleIni.h
+%{_datadir}/cmake/SimpleIni/
+
+%changelog
+%autochangelog
diff --git a/sources b/sources
new file mode 100644
index 0000000..fcb54c1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+440bd308bbc5e1c39ab0ac3db14971f1 simpleini-4.22.tar.gz