- Remove build scripts; they require the build directory to work
This commit is contained in:
parent
fc7190b55a
commit
719d6b03d2
@ -1,16 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
touch ../config.status 2>/dev/null
|
|
||||||
if [ $? != 0 ]; then
|
|
||||||
echo Make sure parent directory is writeable.
|
|
||||||
echo You can fix this by e.g.
|
|
||||||
echo (cd ../ && tar cf - examples) | (cd $HOME && tar xf -)
|
|
||||||
exit $?
|
|
||||||
else
|
|
||||||
chmod +x ../config.status
|
|
||||||
for f in Makefile.{common,config,rules}; do
|
|
||||||
ln -sf LIBDIR/llvm/build/$f ..
|
|
||||||
done
|
|
||||||
|
|
||||||
make $@
|
|
||||||
fi
|
|
||||||
|
|
19
llvm.spec
19
llvm.spec
@ -15,7 +15,7 @@
|
|||||||
|
|
||||||
Name: llvm
|
Name: llvm
|
||||||
Version: 2.5
|
Version: 2.5
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: The Low Level Virtual Machine
|
Summary: The Low Level Virtual Machine
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -25,7 +25,6 @@ Source0: http://llvm.org/releases/%{version}/llvm-%{version}.tar.gz
|
|||||||
%if %{?_with_gcc:1}%{!?_with_gcc:0}
|
%if %{?_with_gcc:1}%{!?_with_gcc:0}
|
||||||
Source1: http://llvm.org/releases/%{version}/llvm-gcc%{lgcc_version}-%{version}.source.tar.gz
|
Source1: http://llvm.org/releases/%{version}/llvm-gcc%{lgcc_version}-%{version}.source.tar.gz
|
||||||
%endif
|
%endif
|
||||||
Source2: llvm-build-examples.sh.in
|
|
||||||
Patch0: llvm-2.1-fix-sed.patch
|
Patch0: llvm-2.1-fix-sed.patch
|
||||||
Patch1: llvm-2.4-fix-ocaml.patch
|
Patch1: llvm-2.4-fix-ocaml.patch
|
||||||
# http://llvm.org/bugs/show_bug.cgi?id=3726
|
# http://llvm.org/bugs/show_bug.cgi?id=3726
|
||||||
@ -76,8 +75,7 @@ native programs that use the LLVM infrastructure.
|
|||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for LLVM
|
Summary: Documentation for LLVM
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
# depend on devel since the examples require build scripts
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: %{name}-devel = %{version}-%{release}
|
|
||||||
|
|
||||||
%description doc
|
%description doc
|
||||||
Documentation for the LLVM compiler infrastructure.
|
Documentation for the LLVM compiler infrastructure.
|
||||||
@ -235,13 +233,9 @@ sed -i 's,ABS_RUN_DIR/lib",ABS_RUN_DIR/%{_lib}/%{name}",' \
|
|||||||
|
|
||||||
chmod -x %{buildroot}%{_libdir}/%{name}/*.[oa]
|
chmod -x %{buildroot}%{_libdir}/%{name}/*.[oa]
|
||||||
|
|
||||||
# Install build scripts
|
# remove documentation makefiles:
|
||||||
mkdir -p %{buildroot}%{_libdir}/llvm/build
|
# they require the build directory to work
|
||||||
chmod -x Makefile{,.common}
|
find examples -name 'Makefile'
|
||||||
for f in Makefile.{common,config,rules}; do
|
|
||||||
cp -p $f %{buildroot}%{_libdir}/llvm/build/
|
|
||||||
done
|
|
||||||
cat %{SOURCE2} | sed -e "s|LIBDIR|%{_libdir}|g" > examples/build-examples.sh
|
|
||||||
|
|
||||||
%if %{?_with_gcc:1}%{!?_with_gcc:0}
|
%if %{?_with_gcc:1}%{!?_with_gcc:0}
|
||||||
# Install llvm-gcc.
|
# Install llvm-gcc.
|
||||||
@ -355,6 +349,9 @@ rm -rf %{buildroot}
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Mar 4 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-2
|
||||||
|
- Remove build scripts; they require the build directory to work
|
||||||
|
|
||||||
* Wed Mar 4 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-1
|
* Wed Mar 4 2009 Michel Salim <salimma@fedoraproject.org> - 2.5-1
|
||||||
- Update to 2.5
|
- Update to 2.5
|
||||||
- Package build scripts (bug #457881)
|
- Package build scripts (bug #457881)
|
||||||
|
Loading…
Reference in New Issue
Block a user