From: Markus Lehtonen Date: Tue, 13 Nov 2012 13:35:52 +0200 Subject: [PATCH] Add packaging files Signed-off-by: Markus Lehtonen --- packaging/bar.tar.gz | Bin 0 -> 177 bytes packaging/foo.txt | 3 +++ packaging/gbp-test2.spec | 48 +++++++++++++++++++++++++++++++++++++++++++++++ packaging/my.patch | 9 +++++++++ packaging/my2.patch | 7 +++++++ packaging/my3.patch | 7 +++++++ 6 files changed, 74 insertions(+) create mode 100644 packaging/bar.tar.gz create mode 100644 packaging/foo.txt create mode 100644 packaging/gbp-test2.spec create mode 100644 packaging/my.patch create mode 100644 packaging/my2.patch create mode 100644 packaging/my3.patch diff --git a/packaging/bar.tar.gz b/packaging/bar.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..f5dae8035202d6206a72803f35b756e8fbcb1d6c GIT binary patch literal 177 zcmb2|=3oe$-XFlg{Pvt9Uz34I%foe+M|U?Y3Ej|XZQEqNf@_H&tG8#*a`B^EtqUIh zSJl^_d?txcZ^=iwt5d!t%uQXNpR?}%&7R7Xtw!E+*RF}oOukZJw%zN?lGS#<^mZvM z($l+B_5a5uZ71{N3o74k`|Uev%09g%IZa0vb^nX<%+SB|HTQOlhOg$-{%+^@uY+Ir arH6}VetLbE0U3OFKX1) + +%description +Package for testing the RPM functionality of git-buildpackage. +Version 2 which has packaging and development in the same +git branch. + + +%prep +%setup -T -n %{name}-%{version} -c -a 10 + +%patch +%patch -P 10 -p1 + +echo "Do things" + +# Gbp-Patch-Macros + +%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} diff --git a/packaging/my.patch b/packaging/my.patch new file mode 100644 index 0000000..aa4eb5c --- /dev/null +++ b/packaging/my.patch @@ -0,0 +1,9 @@ +diff --git a/dummy.sh b/dummy.sh +index 8c33db6..6f04268 100755 +--- dummy.sh ++++ dummy.sh +@@ -1,3 +1,3 @@ + #!/bin/sh + +-echo "Hello world 2.0" ++echo "Hello GBP 2.0" diff --git a/packaging/my2.patch b/packaging/my2.patch new file mode 100644 index 0000000..ad5ca2d --- /dev/null +++ b/packaging/my2.patch @@ -0,0 +1,7 @@ +diff --git a/mydir/myfile.txt b/mydir/myfile.txt +new file mode 100644 +index 0000000..2cdad29 +--- /dev/null ++++ b/mydir/myfile.txt +@@ -0,0 +1 @@ ++Dummy diff --git a/packaging/my3.patch b/packaging/my3.patch new file mode 100644 index 0000000..9fee859 --- /dev/null +++ b/packaging/my3.patch @@ -0,0 +1,7 @@ +diff --git a/README b/README +index a1311cb..a59f1b9 100644 +--- a/README ++++ b/README +@@ -1 +1 @@ +-Just for testing git-buildpackage. ++Just for testing GBP. -- 2.1.4