mirror of
https://github.com/vicr123/the-libs.git
synced 2025-01-22 10:22:03 -05:00
Use rpkg to build on COPR
This commit is contained in:
parent
d185cc188b
commit
4eadc57129
4 changed files with 16 additions and 7 deletions
3
rpkg.conf
Normal file
3
rpkg.conf
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[rpkg]
|
||||||
|
user_macros = "${git_props:root}/rpkg.macros"
|
||||||
|
|
4
rpkg.macros
Normal file
4
rpkg.macros
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
function git_calculate_version {
|
||||||
|
version_string="$(git describe --tags)"
|
||||||
|
echo ${version_string#*v}
|
||||||
|
}
|
|
@ -1,13 +1,14 @@
|
||||||
Name: the-libs-blueprint
|
Name: the-libs-blueprint
|
||||||
Version: 4.0
|
Version: {{{ git_calculate_version }}}
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Common libraries for the* apps
|
Summary: Common libraries for the* apps
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/vicr123/the-libs
|
URL: https://github.com/vicr123/the-libs
|
||||||
Source0: https://github.com/vicr123/the-libs/archive/v%{version}.tar.gz
|
Source: {{{ git_dir_pack }}}
|
||||||
Conflicts: the-libs
|
Conflicts: the-libs
|
||||||
Provides: the-libs
|
Provides: the-libs
|
||||||
|
VCS: {{{ git_dir_vcs }}}
|
||||||
|
|
||||||
%if 0%{?fedora} == 32
|
%if 0%{?fedora} == 32
|
||||||
BuildRequires: make qt5-devel libunwind-devel gsettings-qt-devel
|
BuildRequires: make qt5-devel libunwind-devel gsettings-qt-devel
|
||||||
|
@ -37,7 +38,7 @@ developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
{{{ git_dir_setup_macro }}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
qmake-qt5
|
qmake-qt5
|
9
dist/the-libs.spec → the-libs.spec.rpkg
Executable file → Normal file
9
dist/the-libs.spec → the-libs.spec.rpkg
Executable file → Normal file
|
@ -1,11 +1,12 @@
|
||||||
Name: the-libs
|
Name: the-libs
|
||||||
Version: 4.0
|
Version: {{{ git_calculate_version }}}
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Common libraries for the* apps
|
Summary: Common libraries for the* apps
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://github.com/vicr123/the-libs
|
URL: https://github.com/vicr123/the-libs
|
||||||
Source0: https://github.com/vicr123/the-libs/archive/v%{version}.tar.gz
|
Source: {{{ git_dir_pack }}}
|
||||||
|
VCS: {{{ git_dir_vcs }}}
|
||||||
|
|
||||||
%if 0%{?fedora} == 32
|
%if 0%{?fedora} == 32
|
||||||
BuildRequires: make qt5-devel libunwind-devel gsettings-qt-devel
|
BuildRequires: make qt5-devel libunwind-devel gsettings-qt-devel
|
||||||
|
@ -33,7 +34,7 @@ developing applications that use %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup
|
{{{ git_dir_setup_macro }}}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
qmake-qt5
|
qmake-qt5
|
Loading…
Reference in a new issue