Skip to content

Commit

Permalink
Fixes #171 the rpm spec file for securedrop-workstation
Browse files Browse the repository at this point in the history
Also updates the .gitignore file for adding spec files.
Before publishing the actual RPM, we will have to fix
#173
  • Loading branch information
kushaldas committed Oct 26, 2018
1 parent acbd2bc commit 6b4b257
Show file tree
Hide file tree
Showing 2 changed files with 51 additions and 1 deletion.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ wheels/
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
Expand Down
51 changes: 51 additions & 0 deletions rpm_spec/securedrop-workstation.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
Name: securedrop-workstation
Version: 0.0.1
Release: 1%{?dist}
Summary: SecurdDrop Workstation

Group: Library
License: GPLv3+
URL: https://github.com/freedomofpress/securedrop-workstation
Source0: securedrop-workstation-0.0.1.tar.gz

BuildArch: noarch
BuildRequires: python3-setuptools
BuildRequires: python3-devel

# This package installs all standard VMs in Qubes
Requires: qubes-mgmt-salt-dom0-virtual-machines

%description

This is the SecureDrop Workstation project.

%prep
%setup -q


%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}
install -m 755 -d %{buildroot}/srv
install -m 755 -d %{buildroot}/srv/salt/sd
install -m 755 -d %{buildroot}/srv/salt/sd/sd-svs
install -m 755 -d %{buildroot}/srv/salt/sd/sd-journalist
install -m 644 dom0/* %{buildroot}/srv/salt/
install sd-svs/* %{buildroot}/srv/salt/sd/sd-svs/
install sd-journalist/* %{buildroot}/srv/salt/sd/sd-journalist/

%files
%doc README.md LICENSE
%{python3_sitelib}/securedrop_workstation*
%{_datadir}/%{name}
/srv/salt/sd*
/srv/salt/fpf*



%changelog
* Fri Oct 26 2018 Kushal Das <[email protected]> - 0.0.1-1
- First release

0 comments on commit 6b4b257

Please sign in to comment.