aboutsummaryrefslogtreecommitdiff
path: root/gbp-test-native2.data/Add-packaging-files.patch
blob: 0e7a77a705904ffd3a9abd1a072de56fb82e1b47 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Date: Thu, 8 Nov 2012 14:33:51 +0200
Subject: [PATCH] Add packaging files

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
---
 foo.txt               |  3 +++
 gbp-test-native2.spec | 35 +++++++++++++++++++++++++++++++++++
 2 files changed, 38 insertions(+)
 create mode 100644 foo.txt
 create mode 100644 gbp-test-native2.spec

diff --git a/foo.txt b/foo.txt
new file mode 100644
index 0000000..25ed442
--- /dev/null
+++ b/foo.txt
@@ -0,0 +1,3 @@
+FOO:
+
+file for testing rpm support of git-buildpackage.
diff --git a/gbp-test-native2.spec b/gbp-test-native2.spec
new file mode 100644
index 0000000..34fd33d
--- /dev/null
+++ b/gbp-test-native2.spec
@@ -0,0 +1,35 @@
+Name:       gbp-test-native2
+Summary:    Test package for git-buildpackage
+Version:    2.0
+Release:    0
+Group:      Development/Libraries
+License:    GPLv2
+Source:     foo.txt
+BuildRequires:  unzip
+
+%description
+Package for testing the RPM functionality of git-buildpackage.
+Mimics a "native" package that doesn't have any source tarball.
+
+
+%prep
+# Just create build dir
+%setup -T -c
+cp %{SOURCE0} .
+
+
+%build
+# Nothing to do
+
+
+%install
+rm -rf %{buildroot}
+mkdir -p %{buildroot}/%{_datadir}/%{name}
+cp -R * %{buildroot}/%{_datadir}/%{name}
+
+
+
+%files
+%defattr(-,root,root,-)
+%dir %{_datadir}/%{name}
+%{_datadir}/%{name}
-- 
2.1.4