From aef002ae8e59d597b8c6ef624946e6f8ab702eab Mon Sep 17 00:00:00 2001 From: Mark Huang Date: Thu, 8 Apr 2004 21:08:47 +0000 Subject: [PATCH] - get rid of possible URLs in Source and Patch tags --- Makerules | 8 +++++++- Rules.mk | 8 +++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/Makerules b/Makerules index 288f2d55..90cae128 100644 --- a/Makerules +++ b/Makerules @@ -32,7 +32,7 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $Id: Makerules,v 1.1.1.1 2004/04/07 21:13:51 mlh-pl_rpm Exp $ +# $Id: Makerules,v 1.2 2004/04/07 22:37:50 mlh-pl_rpm Exp $ # # Base cvsps and rpmbuild in the current directory @@ -68,6 +68,9 @@ include $(MK) # Generate tarball # +# Get rid of URL +Source0 := $(notdir $(Source0)) + # Add tarball to the list of sources SOURCES += SOURCES/$(Source0) @@ -102,6 +105,9 @@ ifeq ($$(origin Patch$(1)),undefined) Patch$(1) := $(1).patch.bz2 endif +# Get rid of URL +Patch$(1) := $(notdir $$(Patch$(1))) + # Add patch to the list of sources SOURCES += SOURCES/$$(Patch$(1)) diff --git a/Rules.mk b/Rules.mk index 288f2d55..90cae128 100644 --- a/Rules.mk +++ b/Rules.mk @@ -32,7 +32,7 @@ # NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # -# $Id: Makerules,v 1.1.1.1 2004/04/07 21:13:51 mlh-pl_rpm Exp $ +# $Id: Makerules,v 1.2 2004/04/07 22:37:50 mlh-pl_rpm Exp $ # # Base cvsps and rpmbuild in the current directory @@ -68,6 +68,9 @@ include $(MK) # Generate tarball # +# Get rid of URL +Source0 := $(notdir $(Source0)) + # Add tarball to the list of sources SOURCES += SOURCES/$(Source0) @@ -102,6 +105,9 @@ ifeq ($$(origin Patch$(1)),undefined) Patch$(1) := $(1).patch.bz2 endif +# Get rid of URL +Patch$(1) := $(notdir $$(Patch$(1))) + # Add patch to the list of sources SOURCES += SOURCES/$$(Patch$(1)) -- 2.47.0