diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-12-30 20:50:05 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2023-12-30 20:50:05 +0000 |
commit | db48c02d221e8a86edd403ca44eb3982cee1a274 (patch) | |
tree | 3acc2c54cf03e677e88d15c3200c0939c1d6027b | |
parent | c728a8af341616f1242e10916d6b1dd3c89d024d (diff) |
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | simpleini.spec | 58 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 60 insertions, 0 deletions
@@ -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 @@ -0,0 +1 @@ +440bd308bbc5e1c39ab0ac3db14971f1 simpleini-4.22.tar.gz |