Эх сурвалжийг харах

Create .spec.in and Source0

Frédéric Pierret 6 жил өмнө
parent
commit
ac83f0a82f
1 өөрчлөгдсөн 5 нэмэгдсэн , 4 устгасан
  1. 5 4
      rpm_spec/qmgr.spec.in

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

@@ -1,7 +1,5 @@
-%{!?version: %define version %(cat version)}
-
 Name:		qubes-manager
-Version:	%{version}
+Version:	@VERSION@
 Release:	1%{?dist}
 Summary:	The Graphical Qubes VM Manager.
 
@@ -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