[packages/semgrep] Initial

arekm arekm at pld-linux.org
Sun Mar 15 17:24:13 CET 2026


commit 920604663fb3c5078a1af2e605059f4e35d0e941
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sun Mar 15 17:23:58 2026 +0100

    Initial

 semgrep.spec | 123 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 123 insertions(+)
---
diff --git a/semgrep.spec b/semgrep.spec
new file mode 100644
index 0000000..6f208cf
--- /dev/null
+++ b/semgrep.spec
@@ -0,0 +1,123 @@
+#
+# Conditional build:
+%bcond_without	tests	# unit tests
+
+Summary:	Lightweight static analysis for many languages
+Summary(pl.UTF-8):	Lekka analiza statyczna dla wielu języków
+Name:		semgrep
+Version:	1.155.0
+Release:	1
+License:	LGPL v2.1+
+Group:		Development/Tools
+#Source0Download: https://pypi.org/simple/semgrep/
+Source0:	https://files.pythonhosted.org/packages/source/s/semgrep/%{name}-%{version}.tar.gz
+# Source0-md5:	18483511342e94d429389bb69ef9e6e9
+URL:		https://semgrep.dev
+BuildRequires:	python3-build
+BuildRequires:	python3-installer
+BuildRequires:	python3-modules >= 1:3.10
+BuildRequires:	python3-setuptools
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 2.044
+%if %{with tests}
+BuildRequires:	python3-attrs >= 21.3
+BuildRequires:	python3-boltons >= 21.0
+BuildRequires:	python3-click >= 8.1.8
+BuildRequires:	python3-click-option-group >= 0.5
+BuildRequires:	python3-colorama >= 0.4.0
+BuildRequires:	python3-exceptiongroup >= 1.2.0
+BuildRequires:	python3-glom >= 23.3
+BuildRequires:	python3-jsonschema >= 4.25.1
+BuildRequires:	python3-mcp >= 1.23.3
+BuildRequires:	python3-opentelemetry-api >= 1.37.0
+BuildRequires:	python3-opentelemetry-exporter-otlp-proto-http >= 1.37.0
+BuildRequires:	python3-opentelemetry-instrumentation-requests >= 0.58
+BuildRequires:	python3-opentelemetry-instrumentation-threading >= 0.58
+BuildRequires:	python3-opentelemetry-sdk >= 1.37.0
+BuildRequires:	python3-packaging >= 21.0
+BuildRequires:	python3-peewee >= 3.14
+BuildRequires:	python3-pyjwt >= 2.4
+BuildRequires:	python3-pytest
+BuildRequires:	python3-requests >= 2.22
+BuildRequires:	python3-rich >= 13.5.2
+BuildRequires:	python3-ruamel.yaml >= 0.18.15
+BuildRequires:	python3-semantic-version >= 2.10.0
+BuildRequires:	python3-tomli >= 2.0.1
+BuildRequires:	python3-typing_extensions >= 4.2
+BuildRequires:	python3-urllib3 >= 2.0
+BuildRequires:	python3-wcmatch >= 8.3
+%endif
+Requires:	python3-attrs >= 21.3
+Requires:	python3-boltons >= 21.0
+Requires:	python3-click >= 8.1.8
+Requires:	python3-click-option-group >= 0.5
+Requires:	python3-colorama >= 0.4.0
+Requires:	python3-exceptiongroup >= 1.2.0
+Requires:	python3-glom >= 23.3
+Requires:	python3-jsonschema >= 4.25.1
+Requires:	python3-mcp >= 1.23.3
+Requires:	python3-modules >= 1:3.10
+Requires:	python3-opentelemetry-api >= 1.37.0
+Requires:	python3-opentelemetry-exporter-otlp-proto-http >= 1.37.0
+Requires:	python3-opentelemetry-instrumentation-requests >= 0.58
+Requires:	python3-opentelemetry-instrumentation-threading >= 0.58
+Requires:	python3-opentelemetry-sdk >= 1.37.0
+Requires:	python3-packaging >= 21.0
+Requires:	python3-peewee >= 3.14
+Requires:	python3-pyjwt >= 2.4
+Requires:	python3-requests >= 2.22
+Requires:	python3-rich >= 13.5.2
+Requires:	python3-ruamel.yaml >= 0.18.15
+Requires:	python3-semantic-version >= 2.10.0
+Requires:	python3-tomli >= 2.0.1
+Requires:	python3-typing_extensions >= 4.2
+Requires:	python3-urllib3 >= 2.0
+Requires:	python3-wcmatch >= 8.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Semgrep is a lightweight static analysis tool for many languages. Find
+bug variants with patterns that look like source code. It supports
+over 30 languages including Python, JavaScript, TypeScript, Java, Go,
+C, C++, Ruby, and more. Semgrep can be used for security auditing,
+bug finding, and enforcing code standards.
+
+%description -l pl.UTF-8
+Semgrep to lekkie narzędzie do analizy statycznej dla wielu języków
+programowania. Pozwala znajdować warianty błędów przy użyciu wzorców
+wyglądających jak kod źródłowy. Obsługuje ponad 30 języków, w tym
+Python, JavaScript, TypeScript, Java, Go, C, C++, Ruby i inne.
+Semgrep można używać do audytów bezpieczeństwa, wyszukiwania błędów
+i egzekwowania standardów kodowania.
+
+%prep
+%setup -q
+
+# Don't mark wheel as platform-specific - no binary blobs in RPM build
+%{__sed} -i 's/self.root_is_pure = False/self.root_is_pure = True/' setup.py
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md
+%attr(755,root,root) %{_bindir}/semgrep
+%attr(755,root,root) %{_bindir}/pysemgrep
+%{py3_sitescriptdir}/semdep
+%{py3_sitescriptdir}/semgrep
+%{py3_sitescriptdir}/semgrep-%{version}.dist-info
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/semgrep.git/commitdiff/920604663fb3c5078a1af2e605059f4e35d0e941



More information about the pld-cvs-commit mailing list