Skip to content

Commit

Permalink
Refresh packaging, integrate with qubes-builder
Browse files Browse the repository at this point in the history
  • Loading branch information
marmarek committed Sep 23, 2019
1 parent 1b1023a commit d067f4d
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@ debian/source/local-options
debian/split-gpg2*.debhelper*
debian/split-gpg2/
debian/split-gpg2.substvars
pkgs/
debian/changelog.*
11 changes: 11 additions & 0 deletions Makefile.builder
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ifeq ($(PACKAGE_SET),dom0)
RPM_SPEC_FILES := rpm_spec/split-gpg2-dom0.spec
else ifeq ($(PACKAGE_SET),vm)
ifneq ($(filter $(DISTRIBUTION), debian qubuntu),)
DEBIAN_BUILD_DIRS := debian
endif

RPM_SPEC_FILES := rpm_spec/split-gpg2.spec
endif

# vim: filetype=make
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
Name: split-gpg2-dom0
Version: 0.1
Version: @VERSION@
Release: 1%{dist}
Summary: split-gpg2 Qubes RPC Policy for dom0
BuildArch: noarch

Group: Qubes
License: GPLv2+

Source: .

%define _builddir %(pwd)
Source0: split-gpg2-%{version}.tar.gz

%description
split-gpg2 allows you to run the gpg2 client in a different Qubes-Domain than
Expand All @@ -17,6 +16,7 @@ the gpg-agent.
This package contains the Qubes RPC policy for split-gpg2.

%prep
%setup -q -n split-gpg2-%{version}

%build

Expand All @@ -29,3 +29,6 @@ install -D qubes.Gpg2.policy $RPM_BUILD_ROOT/etc/qubes-rpc/policy/qubes.Gpg2

%files
%config(noreplace) %attr(0664,root,qubes) /etc/qubes-rpc/policy/qubes.Gpg2

%changelog
@CHANGELOG@
12 changes: 7 additions & 5 deletions rpm_spec/split-gpg2.spec → rpm_spec/split-gpg2.spec.in
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
Name: split-gpg2
Version: 0.1
Version: @VERSION@
Release: 1%{dist}
Summary: split-gpg2 for Qubes
BuildArch: noarch

Group: Qubes
License: GPLv2+

Source: .
Source0: %{name}-%{version}.tar.gz

BuildRequires: python3-rpm-macros
BuildRequires: python%{python3_pkgversion}-setuptools
Requires: socat
Requires: ruby >= 1.9
Requires: bash
#Requires: gnupg >= 2.1.0
Requires: systemd
Requires: zenity
Requires: libnotify

%define _builddir %(pwd)

%description
split-gpg2 allows you to run the gpg2 client in a different Qubes-Domain than
the gpg-agent.

%prep
%setup -q

%build
make PYTHON=%{__python3}
Expand All @@ -49,3 +48,6 @@ rm -rf $RPM_BUILD_ROOT
%{python3_sitelib}/splitgpg2-*.egg-info
/usr/share/split-gpg2/
/usr/share/doc/split-gpg2/

%changelog
@CHANGELOG@
1 change: 1 addition & 0 deletions version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.1

0 comments on commit d067f4d

Please sign in to comment.