summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomasz Pala2003-08-18 17:15:20 (GMT)
committercvs2git2012-06-24 12:13:13 (GMT)
commit29fc95bd3537676600c5e8e3a22793f3f874d037 (patch)
tree0a791916046442d86f3e14c2b15e0dfb7fd9c3bd
parentd8d62eb198c4c3cbaf63fd7afb0aeadf9e504822 (diff)
downloadprelink-29fc95bd3537676600c5e8e3a22793f3f874d037.zip
prelink-29fc95bd3537676600c5e8e3a22793f3f874d037.tar.gz
- updated to 20030522,
- added _without_static bcond, - added glibc231 patch, - use ac/am macros, - use new %configure. Changed files: prelink.spec -> 1.9
-rw-r--r--prelink.spec23
1 files changed, 19 insertions, 4 deletions
diff --git a/prelink.spec b/prelink.spec
index 0b46c5c..bc862fe 100644
--- a/prelink.spec
+++ b/prelink.spec
@@ -1,13 +1,19 @@
+#
+# Conditional build:
+# _without_static - build dynamically linked binary
+
Summary: Tool to optimize relocations in object files
Summary(pl): Narzędzie optymalizujące relokacje w plikach objektów
Name: prelink
-Version: 20021002
-Release: 3
+Version: 20030522
+Release: 1
License: GPL
Group: Development/Tools
Source0: ftp://people.redhat.com/jakub/prelink/%{name}-%{version}.tar.bz2
-# Source0-md5: f6c8692c309009838ba45c6da38c8684
+# Source0-md5: 07de27b8e677f787193592847296581f
+Patch0: http://csociety-ftp.ecn.purdue.edu/pub/gentoo-portage/sys-devel/prelink/files/prelink-20030505-glibc231.patch
BuildRequires: glibc-devel >= 2.3
+%{!?_without_static:BuildRequires: glibc-static >= 2.3}
BuildRequires: elfutils-static
BuildRequires: libstdc++-devel
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -22,9 +28,18 @@ Dzięki temu program jest szybciej linkowany w momencie uruchomienia.
%prep
%setup -q -n %{name}
+%patch0 -p1
%build
-%configure2_13
+%if 0%{!?_without_static:1}
+rm -f missing
+%{__libtoolize}
+%{__aclocal} -I m4
+%endif
+%{__autoconf}
+%{__autoheader}
+%{!?_without_static:%{__automake}}
+%configure
%{__make}
%install