Compare commits

...

10 Commits

Author SHA256 Message Date
0f7098557f Accepting request 1285839 from home:MaxxedSUSE:Compiler-Tools
- Update to version 5.28.1
 * Change Copyright format to default

OBS-URL: https://build.opensuse.org/request/show/1285839
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c++utilities?expand=0&rev=4
2025-06-25 13:03:52 +00:00
547645677e - Update to version 5.28.1
* Change Copyright format to default

OBS-URL: https://build.opensuse.org/package/show/home:MaxxedSUSE:Compiler-Tools/c++utilities?expand=0&rev=6
2025-06-14 23:46:00 +00:00
9de17c50c2 - Update to version 5.28.1
OBS-URL: https://build.opensuse.org/package/show/home:MaxxedSUSE:Compiler-Tools/c++utilities?expand=0&rev=5
2025-06-14 23:38:36 +00:00
87dc0be23d Accepting request 1285837 from home:MaxxedSUSE:Compiler-Tools
- fix error: %patchN is obsolete

OBS-URL: https://build.opensuse.org/request/show/1285837
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c++utilities?expand=0&rev=3
2025-06-14 22:16:31 +00:00
dcf6babd23 - Update to version 5.28.1
- Update to version 5.28.1 
- Fix file conflicts

OBS-URL: https://build.opensuse.org/package/show/home:MaxxedSUSE:Compiler-Tools/c++utilities?expand=0&rev=3
2025-06-14 21:31:15 +00:00
307253012e - fix error: %patchN is obsolete
OBS-URL: https://build.opensuse.org/package/show/home:MaxxedSUSE:Compiler-Tools/c++utilities?expand=0&rev=2
2025-06-14 21:16:50 +00:00
96431ccb1f OBS-URL: https://build.opensuse.org/package/show/home:MaxxedSUSE:Compiler-Tools/c++utilities?expand=0&rev=1 2025-06-14 21:14:52 +00:00
8175fe779d Accepting request 664960 from home:alois:branches:devel:libraries:c_c++
- Update to version 4.16.0
 * Rename META_REQUIRED_FEATURES
   Because those features are actually not required.
 * Fix compilation with GCC 8
 * Use src dir as fallback unless arg *and* env var specified
 * Allow providing a special include dir for build
- Added fix_ppc64be_tests.patch
- Spec cleanup

OBS-URL: https://build.opensuse.org/request/show/664960
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c++utilities?expand=0&rev=2
2019-01-12 14:08:32 +00:00
fb9e39854d Accepting request 561469 from home:mkittler
- Fix file conflicts 
- Update to 4.11.0
- Update to 4.10.0

OBS-URL: https://build.opensuse.org/request/show/561469
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/c++utilities?expand=0&rev=1
2018-01-09 08:09:17 +00:00
2dcadadf76 Fix file conflicts
OBS-URL: https://build.opensuse.org/package/show/home:mkittler/c++utilities?expand=0&rev=26
2017-11-16 13:19:11 +00:00
6 changed files with 174 additions and 82 deletions

45
c++utilities.changes Normal file
View File

@@ -0,0 +1,45 @@
-------------------------------------------------------------------
Sat Jun 14 23:43:00 UTC 2025 - Jonatas Gonçalves <jonatas.sgoncalves@gmail.com>
- Update to version 5.28.1
* Change Copyright format to default
-------------------------------------------------------------------
Sat Jun 14 21:30:26 UTC 2025 - Jonatas Gonçalves <jonatas.sgoncalves@gmail.com>
- Update to version 5.28.1
-------------------------------------------------------------------
Sat Jun 14 20:07:22 UTC 2025 - Jonatas Gonçalves <jonatas.sgoncalves@gmail.com>
- Update to version 5.28.1
-------------------------------------------------------------------
Sat Dec 29 21:44:15 UTC 2018 - aloisio@gmx.com
- Update to version 4.16.0
* Rename META_REQUIRED_FEATURES
Because those features are actually not required.
* Fix compilation with GCC 8
* Use src dir as fallback unless arg *and* env var specified
* Allow providing a special include dir for build
- Added fix_ppc64be_tests.patch
- Spec cleanup
-------------------------------------------------------------------
Thu Nov 16 13:12:46 UTC 2017 - marius.kittler@suse.com
- Fix file conflicts
-------------------------------------------------------------------
Tue Nov 7 11:41:10 UTC 2017 - marius.kittler@suse.com
- Update to 4.11.0
-------------------------------------------------------------------
Mon Oct 9 10:42:10 UTC 2017 - marius.kittler@suse.com
- Update to 4.10.0

126
c++utilities.spec Normal file
View File

@@ -0,0 +1,126 @@
#
# spec file for package c++utilities
#
# Copyright (c) 2025 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/
#
%define reponame c++utilities
%define soname 5
Name: %{reponame}
Version: 5.28.1
Release: 0
Summary: Common C++ classes and routines
License: GPL-2.0-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/Martchus/cpp-utilities
Source: https://github.com/Martchus/cpp-utilities/archive/v%{version}/cpp-utilities-%{version}.tar.gz
BuildRequires: cmake >= 3.17
%if 0%{?fedora}
%else
BuildRequires: ninja
%endif
BuildRequires: cppunit-devel >= 1.14.0
%if 0%{?sle_version} && 0%{?sle_version} < 160000
BuildRequires: gcc9-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: pkgconfig
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Common C++ classes and routines such as argument parser, IO and conversion utilities.
%package -n lib%{reponame}%{soname}
Summary: Common C++ classes and routines
Group: System/Libraries
%description -n lib%{reponame}%{soname}
Common C++ classes and routines such as argument parser, IO and conversion utilities.
%package devel
Summary: Devel files for %{reponame}
Group: Development/Libraries/C and C++
Requires: cmake >= 3.9
Requires: glibc-devel
Requires: lib%{reponame}%{soname} = %{version}
Requires: libstdc++-devel
Requires: doxygen
Requires: pkg-config
%description devel
Development files for %{reponame}
%prep
%setup -q -n cpp-utilities-%{version}
%build
%if 0%{?sle_version} && 0%{?sle_version} < 160000
export CC=gcc-9
export CXX=g++-9
%endif
%if 0%{?fedora}
%else
%define __builder ninja
%endif
%cmake \
-DBUILD_SHARED_LIBS:BOOL=ON
%if 0%{?fedora} && 0%{?fedora_version} < 33
make %{?_smp_mflags}
%else
%cmake_build
%endif
%check
%if 0%{?fedora}
%if 0%{?fedora_version} < 33
make %{?_smp_mflags} check
%else
export LD_LIBRARY_PATH="$PWD/%{__cmake_builddir}:$LD_LIBRARY_PATH"
%cmake_build --target check
%endif
%else
%if (0%{?sle_version} == 150200 || 0%{?sle_version} == 150300) && 0%{?is_opensuse}
# FIXME: fix tests under Leap 15.2 which fail at some point with "1/1 Test #1: ...........***Exception: SegFault 0.02 sec"
%else
cd "%{__builddir}"
export LD_LIBRARY_PATH="$PWD:$LD_LIBRARY_PATH"
%cmake_build check
%endif
%endif
%install
%if 0%{?fedora} && 0%{?fedora_version} < 33
DESTDIR=%{buildroot} make %{?_smp_mflags} install
%else
%cmake_install
%endif
%post -n lib%{reponame}%{soname} -p /sbin/ldconfig
%postun -n lib%{reponame}%{soname} -p /sbin/ldconfig
%files -n lib%{reponame}%{soname}
%license LICENSE
%{_libdir}/lib%{reponame}.so.%{soname}*
%files devel
%doc README.md
%{_includedir}/%{reponame}
%{_datadir}/%{reponame}
%{_libdir}/pkgconfig/%{reponame}.pc
%{_libdir}/lib%{reponame}.so
%changelog

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9397a5e5f1d53065a42faa6c3df99fb4865334669ddcd6994e58458773dfd46e
size 122095

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b5c0dab7ea0ca6bf016ae156877a9c1f238172b09765f499a5b6e174ffe6fc6a
size 207552

View File

@@ -1,10 +0,0 @@
-------------------------------------------------------------------
Tue Nov 7 11:41:10 UTC 2017 - marius.kittler@suse.com
- Update to 4.11.0
-------------------------------------------------------------------
Mon Oct 9 10:42:10 UTC 2017 - marius.kittler@suse.com
- Update to 4.10.0

View File

@@ -1,69 +0,0 @@
%define reponame c++utilities
Name: lib%{reponame}4
Version: 4.11.0
Release: 1
License: GPL-2.0+
Summary: Common C++ classes and routines
Url: https://github.com/Martchus/cpp-utilities
Group: System/Packages
Source: https://github.com/Martchus/cpp-utilities/archive/v%{version}/cpp-utilities-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: pkgconfig
BuildRequires: gcc-c++ >= 5
BuildRequires: cppunit-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Common C++ classes and routines such as argument parser, IO and conversion utilities.
%package devel
Summary: Devel files for %{reponame}
Group: Development/Libraries/C and C++
Requires: %{name} = %{version}
Requires: glibc-devel
Requires: libstdc++-devel
Requires: cmake
Requires: pkg-config
%description devel
Development files for %{reponame}
%prep
%setup -q -n cpp-utilities-%{version}
%build
mkdir -p build
cd build
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_VERBOSE_MAKEFILE=TRUE \
-DCMAKE_C_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
-DCMAKE_CXX_FLAGS_RELEASE:STRING="$RPM_OPT_FLAGS" \
-DCMAKE_BUILD_TYPE=Release \
-DLIB_SUFFIX_64="64" \
..
make %{?_smp_mflags}
%check
cd build
make check %{?_smp_mflags}
%install
cd build
make install DESTDIR=%{buildroot} %{?_smp_mflags}
%post
ldconfig
%postun
ldconfig
%files
%defattr(-,root,root)
%{_libdir}/lib%{reponame}.so*
%files devel
%defattr(-,root,root)
%{_includedir}/%{reponame}
%{_datadir}/%{reponame}
%{_libdir}/pkgconfig/%{reponame}.pc