From: hpa Date: Wed, 16 Apr 2003 19:52:35 +0000 (+0000) Subject: Hack around RPM versioning issues for now X-Git-Tag: syslinux-3.11~560 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b126993550a63b16bb6a35dac3f1b82dba0775f1;p=profile%2Fivi%2Fsyslinux.git Hack around RPM versioning issues for now --- diff --git a/Makefile.private b/Makefile.private index 03186e3..b33863d 100644 --- a/Makefile.private +++ b/Makefile.private @@ -48,7 +48,7 @@ release: xargs -0rt rm -f find release/syslinux-$(VERSION) -name CVS -type d -print0 | \ xargs -0rt rm -rf - sed -e 's/@@VERSION@@/$(VERSION)/g' \ + sed -e 's/@@VERSION@@/$(VERSION)/g' -e 's/@@RPMVERSION@@/$(VERSION)/g' \ < release/syslinux-$(VERSION)/syslinux.spec.in \ > release/syslinux-$(VERSION)/syslinux.spec rm -f release/syslinux-$(VERSION)/syslinux.spec.in @@ -79,7 +79,8 @@ prerel: xargs -0rt rm -f find $(PRERELDIR)/$(PREREL) -name CVS -type d -print0 | \ xargs -0rt rm -rf - sed -e 's/@@VERSION@@/$(RPMPREREL)/g' \ + sed -e 's/@@VERSION@@/$(VERSION)-pre$(PRERELNO)/g' \ + -e 's/@@RPMVERSION@@/$(RPMPREREL)/g' \ < $(PRERELDIR)/$(PREREL)/syslinux.spec.in \ > $(PRERELDIR)/$(PREREL)/syslinux.spec rm -f $(PRERELDIR)/$(PREREL)/syslinux.spec.in diff --git a/syslinux.spec.in b/syslinux.spec.in index d8abc11..e83d845 100644 --- a/syslinux.spec.in +++ b/syslinux.spec.in @@ -1,14 +1,16 @@ # -*- rpm -*- +%define RPMVERSION @@RPMVERSION@@ +%define VERSION @@VERSION@@ Summary: Kernel loader which uses a FAT or iso9660 filesystem or a PXE network Name: syslinux -Version: @@VERSION@@ +Version: %{RPMVERSION} Release: 1 License: GPL Group: Applications/System -Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{version}.tar.gz +Source0: ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{VERSION}.tar.gz ExclusiveArch: i386 x86_64 Packager: H. Peter Anvin -Buildroot: %{_tmppath}/%{name}-%{version}-root +Buildroot: %{_tmppath}/%{name}-%{VERSION}-root BuildPrereq: nasm >= 0.98.35, perl Autoreq: 0 %ifarch i386 @@ -25,7 +27,7 @@ PXE bootloader during network boots (PXELINUX), or for booting from ISO 9660 CD-ROMs (ISOLINUX). %prep -%setup -q -n syslinux-%{version} +%setup -q -n syslinux-%{VERSION} %build make clean @@ -56,6 +58,12 @@ rm -rf %{buildroot} %{_prefix}/lib/libsyslinux.* %{_prefix}/include/syslinux.h +%postin +/sbin/ldconfig + +%postun +/sbin/ldconfig + %changelog * Wed Apr 16 2003 H. Peter Anvin 2.04-1 - 2.04 release