1919
2020# Tutorial for .spec files is available at https://rpm-packaging-guide.github.io
2121
22- # This .spec file uses `rpkg ` (https://pagure.io/rpkg-util ) to provide
22+ # This .spec file uses `packit ` (https://packit.dev/docs/cli/srpm/ ) to provide
2323# pleasant user experience to developers.
24- # rpkg-util v3 is required, v2 will fail to recognize some macros in this file.
2524#
26- # Command Description
27- # `rpkg srpm` Creates a *.src.rpm file in /tmp/rpkg (exact path is printed)
28- # `rpkg local --nocheck ` Builds a *.rpm for your system in /tmp/rpkg (exact path is printed)
25+ # Command Description
26+ # `packit srpm` Creates a *.src.rpm file in the local directory (exact path is printed)
27+ # `packit build locally ` Builds a *.rpm for your system in the local directory (exact path is printed)
2928#
30- # See `man rpkg ` for more commands. See `man rpkg-macros` for explanation of the triple-{ macros .
29+ # See `man packit ` for more commands. See https://packit.dev/docs/actions/#fix-spec-file for explanation of "actions" .
3130
3231# not undefine, that would break COPR, https://pagure.io/rpkg-util/issue/44
3332%define _disable_source_fetch 0
4544%global libunwind_minimum_version 1.3.1
4645
4746Name: skupper-router
48- Version: {{{ git_dir_version }}}
49- Release: 2.0.0 %{?dist}
47+ Version: 2.x.y
48+ Release: 1 %{?dist }
5049Summary: The skrouterd router daemon for Skupper.io
5150License: ASL 2.0
5251URL: https://skupper.io
53- VCS: {{{ git_dir_vcs }}}
5452
5553Requires: python3
5654Requires: skupper-router-common == %{version }
@@ -75,21 +73,22 @@ BuildRequires: asciidoc
7573BuildRequires: python3-qpid-proton >= %{proton_minimum_version }
7674# check ctest
7775BuildRequires: cyrus-sasl-plain
76+ BuildRequires: openssl
7877
7978# proton-c requirements
8079BuildRequires: openssl-devel
8180BuildRequires: cyrus-sasl-devel
8281
8382# skupper-router sources
84- Source0: {{{ git_dir_pack }}}
83+ Source0: packit-placeholder-value.tar.gz
8584# vendored qpid-proton
8685Source1: https://www.apache.org/dist/qpid/proton/%{proton_vendored_version }/qpid-proton-%{proton_vendored_version }.tar.gz
8786
8887%description
8988A lightweight message router, written in C and built on Qpid Proton, that provides flexible and scalable interconnect backend for Skupper.io Level 7 Virtual Application Network.
9089
9190%prep
92- {{{ git_dir_setup_macro }}}
91+ %setup -T -b 0 -q -n skupper-router
9392%setup -q -D -b 1 -n qpid-proton-%{proton_vendored_version }
9493
9594%build
@@ -103,12 +102,12 @@ cd %{_builddir}/qpid-proton-%{proton_vendored_version}
103102 -DBUILD_BINDINGS=OFF \
104103 -DBUILD_TLS=ON -DSSL_IMPL=openssl \
105104 -DBUILD_STATIC_LIBS=ON \
106- -DCMAKE_POLICY_DEFAULT_CMP0069=NEW - DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
105+ -DCMAKE_INTERPROCEDURAL_OPTIMIZATION= ON \
107106 -DCMAKE_INSTALL_PREFIX= %{proton_install_prefix }
108107%__cmake --build "%{__cmake_builddir}" %{?_smp_mflags } --verbose
109108%__cmake --install "%{__cmake_builddir}"
110109
111- cd %{_builddir}/skupper-router
110+ cd %{_builddir }/skupper-router-%{ version }
112111%cmake \
113112 -DVERSION= "%{version }" \
114113 -DPython_EXECUTABLE= %{python3 } \
@@ -118,11 +117,11 @@ cd %{_builddir}/skupper-router
118117%cmake_build --target all --target man
119118
120119%install
121- cd %{_builddir}/skupper-router
120+ cd %{_builddir }/skupper-router-%{ version }
122121%cmake_install
123122
124123%check
125- cd %{_builddir}/skupper-router
124+ cd %{_builddir }/skupper-router-%{ version }
126125%ctest
127126
128127%files
@@ -131,10 +130,7 @@ cd %{_builddir}/skupper-router
131130%config /etc/skupper-router/skrouterd.conf
132131%config /etc/sasl2/skrouterd.conf
133132
134- %{python3_sitelib}/skupper_router/
135- %{python3_sitelib}/skupper_router_site.py
136- %{python3_sitelib}/__pycache__/skupper_router_site.*.pyc
137- %{python3_sitelib}/skupper_router-*.egg-info
133+ %{python3_sitelib }/
138134
139135/usr/share/man/man5/skrouterd.conf.5.gz
140136/usr/share/man/man8/skrouterd.8.gz
@@ -200,4 +196,4 @@ BuildArch: noarch
200196%license /usr/share/doc/skupper-router/LICENSE
201197
202198%changelog
203- {{{ git_dir_changelog }}}
199+ %autochangelog
0 commit comments