Compare commits
10 Commits
b26eedfd6f
...
0f7098557f
Author | SHA256 | Date | |
---|---|---|---|
0f7098557f | |||
547645677e | |||
9de17c50c2 | |||
87dc0be23d | |||
dcf6babd23 | |||
307253012e | |||
96431ccb1f | |||
8175fe779d | |||
fb9e39854d | |||
2dcadadf76 |
45
c++utilities.changes
Normal file
45
c++utilities.changes
Normal 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
126
c++utilities.spec
Normal 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
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:9397a5e5f1d53065a42faa6c3df99fb4865334669ddcd6994e58458773dfd46e
|
||||
size 122095
|
3
cpp-utilities-5.28.1.tar.gz
Normal file
3
cpp-utilities-5.28.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b5c0dab7ea0ca6bf016ae156877a9c1f238172b09765f499a5b6e174ffe6fc6a
|
||||
size 207552
|
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user