Skip to content

Commit 18df6de

Browse files
committed
Update spec to work with new version of rpkg
Lack of auto_pack is the problem. https://docs.pagure.org/copr.copr/rpkg_util_2_vs_3.html#rpkg-util-v3
1 parent f898827 commit 18df6de

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packaging/tg-timer.in.spec

+8
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,11 @@ Summary: Mechanical watch movement timegrapher
3737
License: GPL2
3838
Group: Misc
3939
URL: https://github.com/vacaboja/tg
40+
%if %{have_rpkg}
41+
Source: {{{ git_repo_pack }}}
42+
%else
4043
Source: %name-%version.tar.gz
44+
%endif
4145
Packager: Trent Piepho <[email protected]>
4246
BuildRequires: gcc, gtk3-devel, portaudio-devel, fftw-devel
4347
BuildRequires: desktop-file-utils, autoconf, automake
@@ -50,7 +54,11 @@ produces real-time readings of the rate (or accuracy) and various other
5054
operational parameters.
5155

5256
%prep
57+
%if %{have_rpkg}
58+
{{{ git_repo_setup_macro }}}
59+
%else
5360
%setup -q
61+
%endif
5462

5563
%build
5664
autoreconf -fi

0 commit comments

Comments
 (0)