[packages/cxxopts] new

atler atler at pld-linux.org
Fri Mar 20 14:39:05 CET 2026


commit e9f5b72b8e3afec4f7f7ff6874460d0c5b7c168e
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Mar 20 14:38:35 2026 +0100

    new

 cxxopts.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/cxxopts.spec b/cxxopts.spec
new file mode 100644
index 0000000..53fa180
--- /dev/null
+++ b/cxxopts.spec
@@ -0,0 +1,51 @@
+Summary:	Lightweight C++ command line option parser
+Name:		cxxopts
+Version:	3.3.1
+Release:	1
+License:	MIT
+Group:		Libraries
+Source0:	https://github.com/jarro2783/cxxopts/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	47dcaab8ea57feed39d79abad56a3ae9
+URL:		https://github.com/jarro2783/cxxopts
+BuildRequires:	cmake >= 3.5
+BuildRequires:	libstdc++-devel >= 6:4.8.1
+BuildRequires:	rpm-build >= 4.6
+BuildRequires:	rpmbuild(macros) >= 1.605
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Lightweight C++ command line option parser.
+
+%package devel
+Summary:	Development files for cxxopts
+Group:		Development/Libraries
+BuildArch:	noarch
+
+%description devel
+This package contains the header files for developing applications
+that use cxxopts.
+
+%prep
+%setup -q
+
+%build
+install -d build
+cd build
+%cmake ..
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files devel
+%defattr(644,root,root,755)
+%doc CHANGELOG.md LICENSE README.md
+%{_includedir}/cxxopts.hpp
+%{_datadir}/cmake/cxxopts
+%{_npkgconfigdir}/cxxopts.pc
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cxxopts.git/commitdiff/e9f5b72b8e3afec4f7f7ff6874460d0c5b7c168e



More information about the pld-cvs-commit mailing list