Skip to content

Commit

Permalink
rpm: use rpkg for build
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed May 10, 2020
1 parent f39bd60 commit 4b525a7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,9 @@ $(TGZ):

tar: $(TGZ)

rpm: $(TGZ)
rpmbuild --define "debug_package %{nil}" -tb $(TGZ)
rpm: comcom32.spec.rpkg
git clean -fd
rpkg local

deb:
debuild -i -us -uc -b
14 changes: 8 additions & 6 deletions comcom32.spec → comcom32.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,33 @@
# spec file for package comcom32
#

Name: comcom32
Version: 0.1alpha1
Name: {{{ git_dir_name }}}
Version: {{{ git_dir_version }}}
Release: 1%{?dist}
Summary: 32-bit command.com

Group: System/Emulator

License: GPL-3.0+
URL: http://www.github.com/stsp/comcom32
Source0: %{name}-%{version}.tar.gz
VCS: {{{ git_dir_vcs }}}
Source: {{{ git_dir_archive }}}

BuildRequires: djcross-gcc
BuildRequires: git
BuildRequires: make

%description
comcom32 is a 32-bit command.com.

%prep
%setup -q
{{{ git_dir_setup_macro }}}

%build
make %{?_smp_mflags}

%check

%define debug_package %{nil}

%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install

Expand All @@ -37,3 +38,4 @@ make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
%{_datadir}/comcom32/command.com

%changelog
{{{ git_dir_changelog }}}

0 comments on commit 4b525a7

Please sign in to comment.