From: Markus Lehtonen Date: Thu, 8 Nov 2012 14:33:51 +0200 Subject: [PATCH] Add packaging files Signed-off-by: Markus Lehtonen 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}