Skip to content

Commit 8c6951a

Browse files
Merge branch 'cmake_integration' of gitlab.mpi-magdeburg.mpg.de:software/slicot into cmake_integration
2 parents f2c6096 + 3bcd99e commit 8c6951a

File tree

8 files changed

+29
-9
lines changed

8 files changed

+29
-9
lines changed

.gitlab-ci.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ before_script:
77

88
stages:
99
- build
10+
- deploy
1011

1112

1213
linux:
@@ -78,3 +79,17 @@ compilers:
7879
- cmake --build build-dir --target install
7980
- (cd build-dir; OMP_NUM_THREADS=1 ctest --output-on-failure)
8081

82+
83+
dist-rpm:
84+
stage: deploy
85+
variables:
86+
OS: fedora
87+
OSVERSION: 42
88+
RPM_QUIET: 1
89+
image: ${CI_REGISTRY_IMAGE}/${OS}:${OSVERSION}
90+
needs: []
91+
script:
92+
- bash ./dist/make_rpm.sh
93+
- dnf install -y ~/rpmbuild/RPMS/$(uname -m)/*.rpm
94+
95+
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FROM fedora:40
22
RUN dnf update -y ; \
3-
dnf install -y bash mock git fedora-packager rpmdevtools gcc gcc-fortran ; \
4-
dnf install -y cmake flexiblas-devel git
3+
dnf install -y bash git rpmdevtools gcc gcc-fortran ; \
4+
dnf install -y cmake flexiblas-devel
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
FROM fedora:41
22
RUN dnf update -y ; \
3-
dnf install -y bash mock git fedora-packager rpmdevtools gcc gcc-fortran ; \
3+
dnf install -y bash rpmdevtools gcc gcc-fortran ; \
44
dnf install -y cmake flexiblas-devel git
55

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM fedora:42
22
RUN dnf update -y
33
RUN dnf upgrade -y
4-
RUN dnf install -y bash mock git fedora-packager rpmdevtools gcc gcc-fortran ; \
4+
RUN dnf install -y bash rpmdevtools gcc gcc-fortran ; \
55
dnf install -y cmake flexiblas-devel git
66

.gitlab/docker/fedora-image/Dockerfile.fcrawhide

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM fedora:rawhide
22

3-
RUN dnf install -y bash mock git fedora-packager rpmdevtools gcc gcc-fortran ; \
3+
RUN dnf install -y bash fedora-packager rpmdevtools gcc gcc-fortran ; \
44
dnf install -y cmake flexiblas-devel git
55

66
ENV CFLAGS='-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer '

dist/make_rpm.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
. ./.version
88

99
BUILDARG=${1:--ta}
10-
10+
if [ -n "$RPM_QUIET" ]; then
11+
QUIET="--quiet"
12+
else
13+
QUIET=""
14+
fi
1115
RPMSPEC_BASE=slicot.spec
1216
RPMSPEC=dist/rpm/${RPMSPEC_BASE}.in
1317

@@ -22,5 +26,5 @@ tar --exclude="build*" --exclude-vcs --exclude-vcs-ignores \
2226
-czf /tmp/slicot-${MAJOR}.${MINOR}.${PATCH}.tar.gz .
2327
rm "${RPMSPEC_BASE}"
2428

25-
rpmbuild ${BUILDARG} /tmp/slicot-${MAJOR}.${MINOR}.${PATCH}.tar.gz
29+
rpmbuild $QUIET ${BUILDARG} /tmp/slicot-${MAJOR}.${MINOR}.${PATCH}.tar.gz
2630

dist/rpm/slicot.spec.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
%global minor ##MINOR##
33
%global patch ##PATCH##
44

5+
56
Name: slicot
67
Version: %{major}.%{minor}.%{patch}
78
Release: 1%{?dist}
@@ -13,7 +14,8 @@ Source0: https://github.com/SLICOT/SLICOT-Reference/archive/v%{version}/%
1314

1415
BuildRequires: make, cmake >= 3.22
1516
BuildRequires: gcc, gcc-fortran
16-
BuildRequires: (flexiblas-devel or (blas-devel and lapack-devel))
17+
BuildRequires: flexiblas-devel
18+
# or (blas-devel and lapack-devel))
1719
%global _description %{expand:
1820
SLICOT is a general purpose basic mathematical library implemented
1921
in Fortran for control theoretical computations. The library provides

slicot.pc.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,4 @@ libdir=@CMAKE_INSTALL_FULL_LIBDIR@
66
Name: @SLICOT_NAME@
77
Description: The SLICOT library
88
Version: @PROJECT_VERSION@
9-
Requires: blas, lapack
109
Libs: -L${libdir} -l@SLICOT_NAME@

0 commit comments

Comments
 (0)