-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathlibgul14.spec
More file actions
109 lines (90 loc) · 2.55 KB
/
libgul14.spec
File metadata and controls
109 lines (90 loc) · 2.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#
# This file is used to build RPMS for libgul14
#
# To use it do the following:
#
# 1) create a dist tarball
# $ meson build && ninja -C build dist
#
# 2) Prepare the rpm build environment
# $ pkcon install rpmdevtools
# $ rpmdev-setuptree
# $ cp build/meson-dist/gul14-<version>.tar.xz ~/rpmbuild/SOURCES
# $ cp libgul14.spec ~/rpmbuild/SPECS
#
# On RHEL7 we need a newer compiler
# $ pkcon install centos-release-scl-rh && pkcon refresh && pkcon install devtoolset-7
#
# 3) Build the package
# $ cd ~/rpmbuild
# $ rpmbuild -ba SPECS/libgul14.spec
# RHEL7 only
# $ scl enable devtoolset-7 'rpmbuild -ba SPECS/libgul14.spec'
#
# https://rpm-packaging-guide.github.io/
#
Name: libgul14
Version: v2.10
Release: 1%{?dist}
Summary: General Utility Library
License: LGPL-2.1+
URL: https://github.com/gul-cpp/gul14
Source0: gul14-%{version}.tar.xz
%if 0%{?rhel} < 8
BuildRequires: devtoolset-7-gcc-c++
# This is needed to fix an issue with the currently meson
# package, it might be obsolete as soon as a new meson
# package is rolled out.
BuildRequires: epel-rpm-macros
%endif
BuildRequires: gcc-c++
BuildRequires: meson
BuildRequires: ninja-build
# we actually use some git checks in meson
BuildRequires: git-core
%description
The general utility library for C++14 contains often-used
utility functions and types that form the foundation for
other libraries and programs.
%package devel
Summary: Development libraries and header files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
# We can use BuildRequire: pkgconfig(gul14)
# in using projects to automatically use either one:
##Requires: pkgconfig
##Requires: pkgconf-pkg-config
%description devel
%{summary}.
%package static
Summary: Static libraries for %{name}
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
%description static
%{summary}.
%ifarch %{arm} aarch64
# Disable the creation of debug packages on ARM
%global debug_package %{nil}
%endif
%prep
%setup -q -n gul14-%{version}
%build
%meson
%meson_build
%install
%meson_install
%check
%meson_test
%files
%{_libdir}/%{name}.so.*
%files devel
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/gul14/*
%files static
%{_libdir}/%{name}.a
%changelog
* Fri Feb 16 2024 Soeren Grunewald <soeren.grunewald@desy.de> - 2.10-1
- New upstream release
* Thu Oct 13 2022 Soeren Grunewald <soeren.grunewald@desy.de> - 2.7-1
- New upstream release
* Thu Aug 19 2021 Soeren Grunewald <soeren.grunewald@desy.de> - 2.6-1
- Initial release