From 1bf5c3ff0475e617fafbdec91c256ffb2647b02e Mon Sep 17 00:00:00 2001 From: Markus Lehtonen Date: Thu, 26 Nov 2015 15:03:47 +0200 Subject: Add serialized test package repositories Direct import of the srcdata//... branches and tags of the main repository into serialized per-package repositories. Signed-off-by: Markus Lehtonen --- ...-alternative-spec-file-and-change-patch-p.patch | 100 +++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 gbp-test2.data/packaging-add-alternative-spec-file-and-change-patch-p.patch (limited to 'gbp-test2.data/packaging-add-alternative-spec-file-and-change-patch-p.patch') diff --git a/gbp-test2.data/packaging-add-alternative-spec-file-and-change-patch-p.patch b/gbp-test2.data/packaging-add-alternative-spec-file-and-change-patch-p.patch new file mode 100644 index 0000000..f148df5 --- /dev/null +++ b/gbp-test2.data/packaging-add-alternative-spec-file-and-change-patch-p.patch @@ -0,0 +1,100 @@ +From: Markus Lehtonen +Date: Wed, 9 Jan 2013 14:19:47 +0200 +Subject: [PATCH] packaging: add alternative spec file and change patch path + +Add a second spec file for testing import-srpm spec guessing. + +Change one patch filename to be full url for testing import-srpm patch +import functionality. + +Signed-off-by: Markus Lehtonen +--- + .gbp.conf | 1 + + packaging/gbp-test2-alt.spec | 48 ++++++++++++++++++++++++++++++++++++++++++++ + packaging/gbp-test2.spec | 3 ++- + 3 files changed, 51 insertions(+), 1 deletion(-) + create mode 100644 packaging/gbp-test2-alt.spec + +diff --git a/.gbp.conf b/.gbp.conf +index 601d792..885f9bb 100644 +--- a/.gbp.conf ++++ b/.gbp.conf +@@ -6,4 +6,5 @@ upstream-branch = srcdata/gbp-test2/upstream + upstream-tag = srcdata/gbp-test2/upstream/%(upstreamversion)s + packaging-dir = packaging + patch-export-ignore-path = ^(packaging/.*|\.gbp.conf) ++spec-file = packaging/gbp-test2.spec + +diff --git a/packaging/gbp-test2-alt.spec b/packaging/gbp-test2-alt.spec +new file mode 100644 +index 0000000..155ea43 +--- /dev/null ++++ b/packaging/gbp-test2-alt.spec +@@ -0,0 +1,48 @@ ++Name: gbp-test2-alt ++Summary: Test package 2 alternative for git-buildpackage ++Epoch: 1 ++Version: 2.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: 0 ++Patch: my.patch ++Patch10: http://example.com/patches/my2.patch ++Patch20: my3.patch ++Packager: Markus Lehtonen ++ ++%description ++Package for testing the RPM functionality of git-buildpackage. ++Version 2 which has packaging and development in the same ++git branch. Alternative spec file used. ++ ++ ++%prep ++%setup -T -n %{name}-%{version} -c -a 10 ++ ++%patch ++%patch -P 20 -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/gbp-test2.spec b/packaging/gbp-test2.spec +index 61aae33..eec5d26 100644 +--- a/packaging/gbp-test2.spec ++++ b/packaging/gbp-test2.spec +@@ -8,9 +8,10 @@ License: GPLv2 + Source10: ftp://ftp.host.com/%{name}-%{version}.tar.gz + Source: foo.txt + Source20: bar.tar.gz ++Source9999: gbp-test2-alt.spec + # Gbp-Ignore-Patches: 0 + Patch: my.patch +-Patch10: my2.patch ++Patch10: http://example.com/patches/my2.patch + Patch20: my3.patch + Packager: Markus Lehtonen + +-- +2.1.4 + -- cgit v1.2.3