summaryrefslogtreecommitdiff
path: root/tests/data/rpm/rpmbuild/SPECS/gbp-test.spec
blob: c46a734ebe7ae9c39de33f7d6884abe179623657 (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
Name:       gbp-test
Summary:    Test package for git-buildpackage
Version:    1.0
Release:    1
Group:      Development/Libraries
License:    GPLv2
Source:     %{name}-%{version}.tar.bz2
Source1:    foo.txt
Source20:   bar.tar.gz
# Gbp-Ignore-Patches: 0
Patch0:     my.patch
Patch10:    my2.patch
Patch20:    my3.patch


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


%prep
%setup -n %{name} -a 20

%patch0
%patch10 -p1


%build
make


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



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