From d9e7630f25ad88e6ff03dd991f34fe1ff27ca19fa6da83d86f5c8e9d1456494b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Mon, 10 Mar 2025 12:44:55 +0100 Subject: [PATCH] Sync from SUSE:SLFO:Main patterns-devel-C-C++ revision d4fbf84e4bcbaf3a6acbaea10d16d0a7 --- .gitattributes | 23 +++++++++ patterns-devel-C-C++-rpmlintrc | 7 +++ patterns-devel-C-C++.changes | 33 +++++++++++++ patterns-devel-C-C++.spec | 90 ++++++++++++++++++++++++++++++++++ 4 files changed, 153 insertions(+) create mode 100644 .gitattributes create mode 100644 patterns-devel-C-C++-rpmlintrc create mode 100644 patterns-devel-C-C++.changes create mode 100644 patterns-devel-C-C++.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/patterns-devel-C-C++-rpmlintrc b/patterns-devel-C-C++-rpmlintrc new file mode 100644 index 0000000..9f39b30 --- /dev/null +++ b/patterns-devel-C-C++-rpmlintrc @@ -0,0 +1,7 @@ +# +# Safe to ignore Warnings/Errors +# + +addFilter("E: explicit-lib-dependency"); +addFilter("E: devel-dependency"); + diff --git a/patterns-devel-C-C++.changes b/patterns-devel-C-C++.changes new file mode 100644 index 0000000..99dec7e --- /dev/null +++ b/patterns-devel-C-C++.changes @@ -0,0 +1,33 @@ +------------------------------------------------------------------- +Mon Aug 22 02:40:15 UTC 2022 - Luciano Santos + +- Add gcc-c++ as a hard requirement to not rely only on the + devel_basis Pattern where it only recommends gcc-c++. This is to + ensure that users that disable recommended package installation + in Zypper's configuration file or pass the --no-recommended + option flag to the Zypper command won't ironically end up without + a C++ compiler. +- Add libstdc++-devel as a hard requirement for the same reason as + gcc-c++ above, to ensure it gets installed. +- Drop no longer needed BuildRoot tag due to its deprecation. +- Replace $RPM_BUILD_ROOT/usr/share/doc/packages with %{buildroot}\ + %{_defaultdocdir}, in the files section, following our best + practices. +- Build package as a "noarch" since it doesn't contain anything + architecture-specific. + +------------------------------------------------------------------- +Sun Sep 30 00:34:06 UTC 2018 - Stasiek Michalski + +- Change icon for C devel package. (boo#1039994) + +------------------------------------------------------------------- +Mon Jul 3 12:15:39 UTC 2017 - tchvatal@suse.com + +- Remove ddd as it didn't have release in last 10 years and thus + we should not really promote it + +------------------------------------------------------------------- +Thu Mar 16 06:15:40 UTC 2017 - sflees@suse.de + +- Create new package from old unified patterns package diff --git a/patterns-devel-C-C++.spec b/patterns-devel-C-C++.spec new file mode 100644 index 0000000..87bd9be --- /dev/null +++ b/patterns-devel-C-C++.spec @@ -0,0 +1,90 @@ +# +# spec file for package patterns-devel-C-C++ +# +# Copyright (c) 2022 SUSE LLC +# +# 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 https://bugs.opensuse.org/ +# + + +%bcond_with betatest + +Name: patterns-devel-C-C++ +Version: 20170319 +Release: 0 +Summary: Patterns for Installation (C/C++ devel pattern) +License: MIT +Group: Metapackages +URL: https://github.com/openSUSE/patterns +Source0: patterns-devel-C-C++-rpmlintrc + +BuildRequires: patterns-rpm-macros +BuildArch: noarch + +%description +This is an internal package that is used to create the patterns as part +of the installation source setup. Installation of this package does +not make sense. + +This particular package contains the C and C++ development patterns. + +################################################################################ + +%package devel_C_C++ +%pattern_development +Summary: C/C++ Development +Group: Metapackages +Provides: pattern() = devel_C_C++ +Provides: pattern-icon() = pattern-c-devel +Provides: pattern-order() = 3240 +Provides: pattern-visible() +Requires: pattern() = devel_basis + +# +# Ensure openSUSE users will have a functional development environment. +# Hard require gcc-c++ and libstdc++-devel as they are only soft required by +# devel_basis Pattern. +# +Requires: gcc-c++ +Requires: libstdc++-devel + +Recommends: boost-devel +Recommends: boost-jam +Recommends: glibc-info +Recommends: ltrace +Recommends: posix_cc +Recommends: swig +Recommends: valgrind +# 403368 +Suggests: dejagnu +Suggests: expect + +%description devel_C_C++ +Tools and libraries for software development using C/C++ and other derivative +of the C programming language. + +%files devel_C_C++ +%dir %{_defaultdocdir}/patterns/ +%{_defaultdocdir}/patterns/devel_C_C++.txt + +################################################################################ + +%prep + +%build + +%install +mkdir -p %{buildroot}%{_defaultdocdir}/patterns +echo 'This file marks the pattern devel_C_C++ to be installed.' \ + > %{buildroot}%{_defaultdocdir}/patterns/devel_C_C++.txt + +%changelog