aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/data/rpm/specs/gbp-test2-reference2.spec
blob: d41f45037aa180dbe9adffec12f95cc9c4390cc3 (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
66
67
68
Name:       gbp-test2
Summary:    Test package 2 for git-buildpackage
Epoch:      2
Version:    3.0
Release:    0
Group:      Development/Libraries
License:    GPLv2
Source10:   ftp://ftp.host.com/%{name}-%{version}.tar.gz
Source:     foo.txt
Source20:   bar.tar.gz
# Gbp-Ignore-Patches: -1
Patch:      my.patch
# Patches auto-generated by git-buildpackage:
Patch0:     1.patch
Patch1:     2.patch
Packager:   Markus Lehtonen <markus.lehtonen@linux.intel.com>
VCS:        myvcstag

%description
Package for testing the RPM functionality of git-buildpackage.

%package empty
Summary:    Empty subpackage

%description empty
Empty subpackage for the %{name} test package.


%prep
%setup -T -n %{name}-%{version} -c -a 10

%patch

echo "Do things"

# Gbp-Patch-Macros
# 1.patch
%if true
%patch0 -p1
%endif
# 2.patch
%ifarch %ix86
%patch1 -p1
%endif

%build
make


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -R * %{buildroot}/%{_datadir}/%{name}
install %{SOURCE0} %{buildroot}/%{_datadir}/%{name}


%changelog
* Tue Feb 04 2014 Name <email> 1
- My change


%files
%defattr(-,root,root,-)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}

%files empty
%defattr(-,root,root,-)