Share Pastebin
Guest
Public paste!

bochao

By: a guest | Feb 6th, 2010 | Syntax: None | Size: 1.22 KB | Hits: 24 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. Name:           dehydra
  2. Version:        0.9
  3. Release:        3%{?dist}
  4. Summary:        Lightweight application that allows users to analyze C++ code
  5.  
  6. License:        GPLv2+
  7. Group:          Applications/Programming
  8. URL:            https://developer.mozilla.org/en/Dehydra
  9. Source0:        http://ftp.mozilla.org/pub/mozilla.org/static-analysis/dehydra/dehydra-%{version}.tar.gz
  10.  
  11. BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  12. BuildRequires: gcc-c++
  13. BuildRequires: mercurial
  14. BuildRequires: autoconf213
  15. BuildRequires: mpfr-devel
  16. BuildRequires: js-devel
  17. BuildRequires: js
  18.  
  19.  
  20. %description
  21. A lightweight, scriptable tool that analyzes C++ code
  22.  
  23. %prep
  24. %setup -q
  25.  
  26. %build
  27.  
  28. export CXX=/home/bchao/tools/gcc-dehydra/installed/bin/g++
  29.  
  30. cd %{_builddir}/%{name}-%{version}
  31.  
  32. %{configure} \
  33.  --js-libs=%{_libdir} \
  34.  --js-headers=%{_libdir} \
  35.  --gcc-build=/home/bchao/tools/gcc-dehydra/gcc-build/
  36.  
  37. make %{?_smp_mflags}
  38.  
  39. %install
  40. rm -rf %{buildroot}
  41. install -dT %{buildroot}/%{_libdir}/%{name}
  42. cp %{_builddir}/%{name}-%{version}/gcc_dehydra.so %{buildroot}/%{_libdir}/%{name}/
  43.  
  44. %clean
  45. rm -rf %{buildroot}
  46.  
  47. %files
  48. %defattr(-,root,root,-)
  49. %doc README COPYING
  50. %{_libdir}/%{name}/gcc_dehydra.so