Browse Source

Merge remote-tracking branch 'qubesos/pr/86'

* qubesos/pr/86:
  spec.in: change to 'noarch' rpm package
  spec.in: add changelog placeholder
  Create .spec.in and Source0
Marek Marczykowski-Górecki 6 years ago
parent
commit
9f34e058d0
1 changed files with 9 additions and 5 deletions
  1. 9 5
      rpm_spec/qmgr.spec.in

+ 9 - 5
rpm_spec/qmgr.spec → rpm_spec/qmgr.spec.in

@@ -1,10 +1,8 @@
-%{!?version: %define version %(cat version)}
-
 Name:		qubes-manager
-Version:	%{version}
+Version:	@VERSION@
 Release:	1%{?dist}
 Summary:	The Graphical Qubes VM Manager.
-
+BuildArch:	noarch
 Group:		Qubes
 Vendor:		Invisible Things Lab
 License:	GPL
@@ -23,11 +21,14 @@ BuildRequires:	python3-devel
 BuildRequires:	qt-devel
 AutoReq:	0
 
-%define _builddir %(pwd)
+Source0: %{name}-%{version}.tar.gz
 
 %description
 The Graphical Qubes VM Manager.
 
+%prep
+%setup -q
+
 %build
 make ui res translations
 make python
@@ -120,3 +121,6 @@ rm -rf $RPM_BUILD_ROOT
 /usr/share/applications/qubes-backup.desktop
 /usr/share/applications/qubes-backup-restore.desktop
 /usr/share/applications/qubes-qube-manager.desktop
+
+%changelog
+@CHANGELOG@