Skip to content

Commit

Permalink
rpkg: switch to meson
Browse files Browse the repository at this point in the history
  • Loading branch information
stsp committed Dec 30, 2023
1 parent 4cfa6ff commit fd00c40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
10 changes: 6 additions & 4 deletions fdpp.spec.rpkg
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,10 @@ Group: System/Emulator
License: GPLv3+
URL: https://github.com/dosemu2/fdpp
VCS: {{{ git_dir_vcs }}}
Source0: {{{ git_dir_archive }}}
Source0: {{{ dir_pack }}}

BuildRequires: make
BuildRequires: meson
BuildRequires: ninja-build
BuildRequires: bison
BuildRequires: flex
BuildRequires: sed
Expand All @@ -38,12 +39,13 @@ It is based on a FreeDOS kernel ported to modern C++.
{{{ git_dir_setup_macro }}}

%build
make PREFIX=%{_prefix} LIBDIR=%{_libdir} %{?_smp_mflags}
./configure.meson build --prefix %{_prefix} --libdir %{_libdir}
meson compile --verbose -C build %{?_smp_mflags}

%check

%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir} install
meson install -C build --destdir %{buildroot}

%files
%defattr(-,root,root)
Expand Down
2 changes: 2 additions & 0 deletions rpkg.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[rpkg]
user_macros = "${git_props:root}/rpkg.macros"
6 changes: 6 additions & 0 deletions rpkg.macros
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function dir_pack {
rm -f `find . -name .gitignore`
git clean -fdq
tar zcf fdpp-git.tar.gz . --transform s,^\.[^\.],fdpp/,
echo fdpp-git.tar.gz
}

0 comments on commit fd00c40

Please sign in to comment.