File tree Expand file tree Collapse file tree 2 files changed +87
-0
lines changed
Expand file tree Collapse file tree 2 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ name : RPM build
3+
4+ on :
5+ pull_request :
6+ branches : ["master"]
7+
8+ jobs :
9+ rpm-build :
10+ name : Try a RPM Build
11+ runs-on : ubuntu-22.04
12+ strategy :
13+ fail-fast : false
14+ matrix :
15+ name : [fedora, centos10]
16+ include :
17+ - name : fedora
18+ container : fedora:latest
19+ - name : centos10
20+ container : quay.io/centos/centos:stream10
21+ container : ${{ matrix.container }}
22+ steps :
23+ - name : Install Dependencies
24+ run : |
25+ if [ "${{ matrix.name }}" = "centos10" ]; then
26+ dnf_opts="--enablerepo=crb"
27+ fi
28+ yes | dnf copr enable jjelen/vsmartcard
29+ dnf -y install $dnf_opts \
30+ git gcc pcsc-lite-devel autoconf automake libtool \
31+ libcacard-devel procps-ng rpm-build
32+
33+ - name : Checkout Repository
34+ uses : actions/checkout@v4
35+
36+ - name : Setup
37+ run : |
38+ ./autogen.sh
39+ ./configure
40+ make dist
41+
42+ - name : RPM Build
43+ run : |
44+ mkdir -p rpmbuild/SOURCES
45+ cp virt_cacard*.tar.gz rpmbuild/SOURCES/
46+ rpmbuild --define "_topdir $PWD/rpmbuild" -ba \
47+ packaging/virt_cacard.spec
48+
Original file line number Diff line number Diff line change 1+ Name: virt_cacard
2+ Version: 1.2.1
3+ Release: %autorelease
4+ Summary: Virtual CAC Card
5+
6+ License: GPLv3
7+ URL: https://github.com/Jakuje/virt_cacard/
8+ Source0: https://github.com/Jakuje/virt_cacard/releases/download/%{name }-%{version }/%{name }-%{version }.tar.gz
9+
10+ BuildRequires: pcsc-lite-devel
11+ BuildRequires: gcc
12+ BuildRequires: autoconf
13+ BuildRequires: automake
14+ BuildRequires: libtool
15+ BuildRequires: libcacard-devel
16+ # the call to pkill through system()
17+ Recommends: procps-ng
18+
19+ %description
20+ Simple application to emulate CAC Smart cards on PC/SC layer
21+
22+ %prep
23+ %autosetup -p1
24+
25+ %build
26+ ./autogen.sh
27+ %configure
28+ %make_build
29+
30+ %install
31+ %make_install
32+
33+ %files
34+ %license LICENSE
35+ %doc README.md
36+ %{_bindir }/virt_cacard
37+
38+ %changelog
39+ %autochangelog
You can’t perform that action at this time.
0 commit comments