|
|
c13e87 |
%{?scl:%scl_package dyninst}
|
|
|
c13e87 |
|
|
|
c13e87 |
Summary: An API for Run-time Code Generation
|
|
|
c13e87 |
License: LGPLv2+
|
|
|
c13e87 |
Name: %{?scl_prefix}dyninst
|
|
|
c13e87 |
Group: Development/Libraries
|
|
|
c13e87 |
Release: 1%{?dist}
|
|
|
c13e87 |
URL: http://www.dyninst.org
|
|
|
c13e87 |
Version: 8.2.0
|
|
|
c13e87 |
Exclusiveos: linux
|
|
|
c13e87 |
#dyninst only knows the following architectures
|
|
|
c13e87 |
ExclusiveArch: %{ix86} x86_64 ppc ppc64
|
|
|
c13e87 |
|
|
|
c13e87 |
# The source for this package was pulled from upstream's vcs. Use the
|
|
|
c13e87 |
# following commands to generate the tarball:
|
|
|
c13e87 |
# git clone http://git.dyninst.org/dyninst.git; cd dyninst
|
|
|
c13e87 |
# git archive --format=tar.gz --prefix=dyninst/ v8.2.0.1 > dyninst-8.2.0.1.tar.gz
|
|
|
c13e87 |
# git clone http://git.dyninst.org/docs.git; cd docs
|
|
|
c13e87 |
# git archive --format=tar.gz --prefix=docs/ v8.2.0.1 > dyninst-docs-8.2.0.1.tar.gz
|
|
|
c13e87 |
# git clone http://git.dyninst.org/testsuite.git; cd testsuite
|
|
|
c13e87 |
# git archive --format=tar.gz --prefix=testsuite/ v8.2.0.1 > dyninst-testsuite-8.2.0.1.tar.gz
|
|
|
c13e87 |
# Verify the commit ids with:
|
|
|
c13e87 |
# gunzip -c dyninst-8.2.0.1.tar.gz | git get-tar-commit-id
|
|
|
c13e87 |
# gunzip -c dyninst-docs-8.2.0.1.tar.gz | git get-tar-commit-id
|
|
|
c13e87 |
# gunzip -c dyninst-testsuite-8.2.0.1.tar.gz | git get-tar-commit-id
|
|
|
c13e87 |
Source0: dyninst-%{version}.1.tar.gz
|
|
|
c13e87 |
Source1: dyninst-docs-%{version}.1.tar.gz
|
|
|
c13e87 |
Source2: dyninst-testsuite-%{version}.1.tar.gz
|
|
|
c13e87 |
Source3: libdwarf-20140519.tar.gz
|
|
|
c13e87 |
# XXX: temporarily bundled
|
|
|
c13e87 |
# BuildRequires: %{scl_prefix}libdwarf-devel >= 20111030
|
|
|
c13e87 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
c13e87 |
BuildRequires: elfutils-libelf-devel
|
|
|
c13e87 |
BuildRequires: boost-devel
|
|
|
c13e87 |
BuildRequires: binutils-devel
|
|
|
c13e87 |
BuildRequires: cmake
|
|
|
c13e87 |
%{?scl:Requires: %scl_runtime}
|
|
|
c13e87 |
|
|
|
c13e87 |
# Extra requires just for the testsuite
|
|
|
c13e87 |
# NB, there's no separate libstdc++-static for <=el6
|
|
|
c13e87 |
%if 0%{?rhel} >= 7
|
|
|
c13e87 |
BuildRequires: libstdc++-static
|
|
|
c13e87 |
%endif
|
|
|
c13e87 |
BuildRequires: gcc-gfortran glibc-static nasm
|
|
|
c13e87 |
|
|
|
c13e87 |
# Testsuite files should not provide/require anything
|
|
|
c13e87 |
%{?filter_setup:
|
|
|
c13e87 |
%filter_provides_in %{_libdir}/dyninst/testsuite/
|
|
|
c13e87 |
%filter_requires_in %{_libdir}/dyninst/testsuite/
|
|
|
c13e87 |
%filter_setup
|
|
|
c13e87 |
}
|
|
|
c13e87 |
|
|
|
c13e87 |
%description
|
|
|
c13e87 |
|
|
|
c13e87 |
Dyninst is an Application Program Interface (API) to permit the insertion of
|
|
|
c13e87 |
code into a running program. The API also permits changing or removing
|
|
|
c13e87 |
subroutine calls from the application program. Run-time code changes are
|
|
|
c13e87 |
useful to support a variety of applications including debugging, performance
|
|
|
c13e87 |
monitoring, and to support composing applications out of existing packages.
|
|
|
c13e87 |
The goal of this API is to provide a machine independent interface to permit
|
|
|
c13e87 |
the creation of tools and applications that use run-time code patching.
|
|
|
c13e87 |
|
|
|
c13e87 |
%package doc
|
|
|
c13e87 |
Summary: Documentation for using the Dyninst API
|
|
|
c13e87 |
Group: Documentation
|
|
|
c13e87 |
%description doc
|
|
|
c13e87 |
dyninst-doc contains API documentation for the Dyninst libraries.
|
|
|
c13e87 |
|
|
|
c13e87 |
%package devel
|
|
|
c13e87 |
Summary: Header files for the compiling programs with Dyninst
|
|
|
c13e87 |
Group: Development/System
|
|
|
c13e87 |
Requires: %{?scl_prefix}dyninst = %{version}-%{release}
|
|
|
c13e87 |
Requires: boost-devel
|
|
|
c13e87 |
|
|
|
c13e87 |
%description devel
|
|
|
c13e87 |
dyninst-devel includes the C header files that specify the Dyninst user-space
|
|
|
c13e87 |
libraries and interfaces. This is required for rebuilding any program
|
|
|
c13e87 |
that uses Dyninst.
|
|
|
c13e87 |
|
|
|
c13e87 |
%package static
|
|
|
c13e87 |
Summary: Static libraries for the compiling programs with Dyninst
|
|
|
c13e87 |
Group: Development/System
|
|
|
c13e87 |
Requires: %{?scl_prefix}dyninst-devel = %{version}-%{release}
|
|
|
c13e87 |
%description static
|
|
|
c13e87 |
dyninst-static includes the static versions of the library files for
|
|
|
c13e87 |
the dyninst user-space libraries and interfaces.
|
|
|
c13e87 |
|
|
|
c13e87 |
%package testsuite
|
|
|
c13e87 |
Summary: Programs for testing Dyninst
|
|
|
c13e87 |
Group: Development/System
|
|
|
c13e87 |
Requires: %{?scl_prefix}dyninst = %{version}-%{release}
|
|
|
c13e87 |
Requires: %{?scl_prefix}dyninst-devel = %{version}-%{release}
|
|
|
c13e87 |
Requires: %{?scl_prefix}dyninst-static = %{version}-%{release}
|
|
|
c13e87 |
Requires: glibc-static
|
|
|
c13e87 |
%description testsuite
|
|
|
c13e87 |
dyninst-testsuite includes the test harness and target programs for
|
|
|
c13e87 |
making sure that dyninst works properly.
|
|
|
c13e87 |
|
|
|
c13e87 |
%prep
|
|
|
c13e87 |
%setup -q -n %{name}-%{version} -c
|
|
|
c13e87 |
%setup -q -T -D -a 1
|
|
|
c13e87 |
%setup -q -T -D -a 2
|
|
|
c13e87 |
|
|
|
c13e87 |
# XXX: bundled libdwarf
|
|
|
c13e87 |
%setup -q -T -D -b 3
|
|
|
c13e87 |
|
|
|
c13e87 |
%build
|
|
|
c13e87 |
|
|
|
c13e87 |
# bundled libdwarf build - assemble an .a archive, but built with -fPIC
|
|
|
c13e87 |
pushd ../dwarf-20140519/libdwarf
|
|
|
c13e87 |
libdwarf_builddir=`pwd`
|
|
|
c13e87 |
%configure --disable-shared
|
|
|
c13e87 |
make %{?_smp_mflags} dwfpic=-fPIC
|
|
|
c13e87 |
popd
|
|
|
c13e87 |
|
|
|
c13e87 |
cd dyninst
|
|
|
c13e87 |
|
|
|
c13e87 |
%cmake \
|
|
|
c13e87 |
-DCMAKE_BUILD_TYPE:STRING=None \
|
|
|
c13e87 |
-DINSTALL_LIB_DIR:PATH=%{_libdir}/dyninst \
|
|
|
c13e87 |
-DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \
|
|
|
c13e87 |
-DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \
|
|
|
c13e87 |
-DLIBDWARF_LIBRARIES:FILEPATH=$libdwarf_builddir/libdwarf.a \
|
|
|
c13e87 |
-DLIBDWARF_INCLUDE_DIR:PATH=$libdwarf_builddir \
|
|
|
c13e87 |
-DCMAKE_SKIP_RPATH:BOOL=YES
|
|
|
c13e87 |
make %{?_smp_mflags}
|
|
|
c13e87 |
|
|
|
c13e87 |
# Hack to install dyninst nearby, so the testsuite can use it
|
|
|
c13e87 |
make DESTDIR=../install install
|
|
|
c13e87 |
sed -i -e 's!%{_libdir}/dyninst!../install%{_libdir}/dyninst!' \
|
|
|
c13e87 |
../install%{_libdir}/cmake/Dyninst/*.cmake
|
|
|
c13e87 |
|
|
|
c13e87 |
cd ../testsuite
|
|
|
c13e87 |
%cmake \
|
|
|
c13e87 |
-DDyninst_DIR:PATH=../install%{_libdir}/cmake/Dyninst \
|
|
|
c13e87 |
-DINSTALL_DIR:PATH=%{_libdir}/dyninst/testsuite \
|
|
|
c13e87 |
-DCMAKE_BUILD_TYPE:STRING=Debug \
|
|
|
c13e87 |
-DCMAKE_SKIP_RPATH:BOOL=YES
|
|
|
c13e87 |
make %{?_smp_mflags}
|
|
|
c13e87 |
|
|
|
c13e87 |
%install
|
|
|
c13e87 |
|
|
|
c13e87 |
cd dyninst
|
|
|
c13e87 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
c13e87 |
|
|
|
c13e87 |
cd ../testsuite
|
|
|
c13e87 |
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
c13e87 |
|
|
|
c13e87 |
mkdir -p $RPM_BUILD_ROOT/etc/ld.so.conf.d
|
|
|
c13e87 |
echo "%{_libdir}/dyninst" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
|
|
c13e87 |
|
|
|
c13e87 |
# Ugly hack to fix permissions
|
|
|
c13e87 |
chmod 644 $RPM_BUILD_ROOT%{_includedir}/dyninst/*
|
|
|
c13e87 |
chmod 644 $RPM_BUILD_ROOT%{_libdir}/dyninst/*.a
|
|
|
c13e87 |
|
|
|
c13e87 |
# Uglier hack to mask testsuite files from debuginfo extraction. Running the
|
|
|
c13e87 |
# testsuite requires debuginfo, so extraction is useless. However, debuginfo
|
|
|
c13e87 |
# extraction is still nice for the main libraries, so we don't want to disable
|
|
|
c13e87 |
# it package-wide. The permissions are restored by attr(755,-,-) in files.
|
|
|
c13e87 |
chmod 644 $RPM_BUILD_ROOT%{_libdir}/dyninst/testsuite/*
|
|
|
c13e87 |
|
|
|
c13e87 |
%post -p /sbin/ldconfig
|
|
|
c13e87 |
%postun -p /sbin/ldconfig
|
|
|
c13e87 |
|
|
|
c13e87 |
%files
|
|
|
c13e87 |
%defattr(-,root,root,-)
|
|
|
c13e87 |
|
|
|
c13e87 |
%dir %{_libdir}/dyninst
|
|
|
c13e87 |
%{_libdir}/dyninst/*.so.*
|
|
|
c13e87 |
|
|
|
c13e87 |
%doc dyninst/COPYRIGHT
|
|
|
c13e87 |
%doc dyninst/LGPL
|
|
|
c13e87 |
|
|
|
c13e87 |
%config(noreplace) /etc/ld.so.conf.d/*
|
|
|
c13e87 |
|
|
|
c13e87 |
%files doc
|
|
|
c13e87 |
%defattr(-,root,root,-)
|
|
|
c13e87 |
%doc docs/dynC_API.pdf
|
|
|
c13e87 |
%doc docs/DyninstAPI.pdf
|
|
|
c13e87 |
%doc docs/dyninstAPI/examples/
|
|
|
c13e87 |
%doc docs/InstructionAPI.pdf
|
|
|
c13e87 |
%doc docs/ParseAPI.pdf
|
|
|
c13e87 |
%doc docs/PatchAPI.pdf
|
|
|
c13e87 |
%doc docs/ProcControlAPI.pdf
|
|
|
c13e87 |
%doc docs/StackwalkerAPI.pdf
|
|
|
c13e87 |
%doc docs/SymtabAPI.pdf
|
|
|
c13e87 |
|
|
|
c13e87 |
%files devel
|
|
|
c13e87 |
%defattr(-,root,root,-)
|
|
|
c13e87 |
%{_includedir}/dyninst
|
|
|
c13e87 |
%{_libdir}/dyninst/*.so
|
|
|
c13e87 |
%dir %{_libdir}/cmake
|
|
|
c13e87 |
%{_libdir}/cmake/Dyninst
|
|
|
c13e87 |
|
|
|
c13e87 |
%files static
|
|
|
c13e87 |
%defattr(-,root,root,-)
|
|
|
c13e87 |
%{_libdir}/dyninst/*.a
|
|
|
c13e87 |
|
|
|
c13e87 |
%files testsuite
|
|
|
c13e87 |
%defattr(-,root,root,-)
|
|
|
c13e87 |
#%{_bindir}/parseThat
|
|
|
c13e87 |
%dir %{_libdir}/dyninst/testsuite/
|
|
|
c13e87 |
# Restore the permissions that were hacked out above, during install.
|
|
|
c13e87 |
%attr(755,root,root) %{_libdir}/dyninst/testsuite/*
|
|
|
c13e87 |
|
|
|
c13e87 |
%changelog
|
|
|
c13e87 |
* Tue Aug 19 2014 Josh Stone <jistone@redhat.com> - 8.2.0-1
|
|
|
c13e87 |
- final rebase to 8.2.0, using upstream tag "v8.2.0.1"
|
|
|
c13e87 |
|
|
|
c13e87 |
* Thu Jul 24 2014 Josh Stone <jistone@redhat.com> - 8.2.0-0.440.gde280f74f40e
|
|
|
c13e87 |
- update to a newer pre-8.2.0 snapshot
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed May 21 2014 Josh Stone <jistone@redhat.com> - 8.2.0-0.374.g593fb2773a48
|
|
|
c13e87 |
- more libdyninstAPI_RT symbols, and add testsuite requires
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed May 21 2014 Josh Stone <jistone@redhat.com> - 8.2.0-0.373.geaba204a72a3
|
|
|
c13e87 |
- fix libdyninstAPI_RT.so symbol visibility
|
|
|
c13e87 |
|
|
|
c13e87 |
* Tue May 20 2014 Josh Stone <jistone@redhat.com> - 8.2.0-0.372.gdfd4a8842f4c
|
|
|
c13e87 |
- prerelease build of dyninst 8.2.0
|
|
|
c13e87 |
|
|
|
c13e87 |
* Tue Nov 26 2013 Josh Stone <jistone@redhat.com> 8.0-6dw
|
|
|
c13e87 |
- rhbz987096: backported upstream patches for mid-syscall PTRACE_EVENTs
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed Apr 17 2013 Josh Stone <jistone@redhat.com> 8.0-5dw
|
|
|
c13e87 |
- rhbz855981: backported upstream patch to remove missing-dwarf asserts
|
|
|
c13e87 |
|
|
|
c13e87 |
* Tue Feb 26 2013 Frank Ch. Eigler <fche@redhat.com> 8.0-4dw
|
|
|
c13e87 |
- fix %attr() of testsuite files
|
|
|
c13e87 |
|
|
|
c13e87 |
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-3dw
|
|
|
c13e87 |
- rhbz915820: Add a dyninst-testsuite package.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Thu Jan 31 2013 Frank Ch. Eigler <fche@redhat.com> - 8.0-2dw
|
|
|
c13e87 |
- convert to scl
|
|
|
c13e87 |
- bundle libdwarf temporarily
|
|
|
c13e87 |
|
|
|
c13e87 |
* Tue Nov 20 2012 Josh Stone <jistone@redhat.com>
|
|
|
c13e87 |
- Tweak the configure/make commands
|
|
|
c13e87 |
- Disable the testsuite via configure.
|
|
|
c13e87 |
- Set the private includedir and libdir via configure.
|
|
|
c13e87 |
- Set VERBOSE_COMPILATION for make.
|
|
|
c13e87 |
- Use DESTDIR for make install.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Mon Nov 19 2012 Josh Stone <jistone@redhat.com> 8.0-1
|
|
|
c13e87 |
- Update to release 8.0.
|
|
|
c13e87 |
- Updated "%files doc" to reflect renames.
|
|
|
c13e87 |
- Drop the unused BuildRequires libxml2-devel.
|
|
|
c13e87 |
- Drop the 7.99.x version-munging patch.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Fri Nov 09 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.29
|
|
|
c13e87 |
- Rebase to git e99d7070bbc39c76d6d528db530046c22681c17e
|
|
|
c13e87 |
|
|
|
c13e87 |
* Mon Oct 29 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.28
|
|
|
c13e87 |
- Bump to 7.99.2 per abi-compliance-checker results
|
|
|
c13e87 |
|
|
|
c13e87 |
* Fri Oct 26 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.27
|
|
|
c13e87 |
- Rebase to git dd8f40b7b4742ad97098613876efeef46d3d9e65
|
|
|
c13e87 |
- Use _smp_mflags to enable building in parallel.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed Oct 03 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.26
|
|
|
c13e87 |
- Rebase to git 557599ad7417610f179720ad88366c32a0557127
|
|
|
c13e87 |
|
|
|
c13e87 |
* Thu Sep 20 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.25
|
|
|
c13e87 |
- Rebase on newer git tree.
|
|
|
c13e87 |
- Bump the fake version to 7.99.1 to account for ABI differences.
|
|
|
c13e87 |
- Enforce the minimum libdwarf version.
|
|
|
c13e87 |
- Drop the upstreamed R_PPC_NUM patch.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed Aug 15 2012 Karsten Hopp <karsten@redhat.com> 7.99-0.24
|
|
|
c13e87 |
- check if R_PPC_NUM is defined before using it, similar to R_PPC64_NUM
|
|
|
c13e87 |
|
|
|
c13e87 |
* Mon Jul 30 2012 Josh Stone <jistone@redhat.com> 7.99-0.23
|
|
|
c13e87 |
- Rebase on newer git tree.
|
|
|
c13e87 |
- Update license files with upstream additions.
|
|
|
c13e87 |
- Split documentation into -doc subpackage.
|
|
|
c13e87 |
- Claim ownership of %{_libdir}/dyninst.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Fri Jul 27 2012 William Cohen <wcohen@redhat.com> - 7.99-0.22
|
|
|
c13e87 |
- Correct requires for dyninst-devel.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed Jul 25 2012 Josh Stone <jistone@redhat.com> - 7.99-0.21
|
|
|
c13e87 |
- Rebase on newer git tree
|
|
|
c13e87 |
- Update context in dyninst-git.patch
|
|
|
c13e87 |
- Drop dyninst-delete_array.patch
|
|
|
c13e87 |
- Drop dyninst-common-makefile.patch
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.99-0.20
|
|
|
c13e87 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
c13e87 |
|
|
|
c13e87 |
* Mon Jul 16 2012 William Cohen <wcohen@redhat.com> - 7.99-0.19
|
|
|
c13e87 |
- Patch common/i386-unknown-linux2.4/Makefile to build.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Fri Jul 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.18
|
|
|
c13e87 |
- Rebase on newer git tree the has a number of merges into it.
|
|
|
c13e87 |
- Adjust spec file to allow direct use of git patches
|
|
|
c13e87 |
- Fix to eliminate unused varables.
|
|
|
c13e87 |
- Proper delete for array.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.17
|
|
|
c13e87 |
- Rebase on newer git repo.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.16
|
|
|
c13e87 |
- Eliminate dynptr.h file use with rebase on newer git repo.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Mon Jun 25 2012 William Cohen <wcohen@redhat.com> - 7.99-0.14
|
|
|
c13e87 |
- Rebase on newer git repo.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Tue Jun 19 2012 William Cohen <wcohen@redhat.com> - 7.99-0.12
|
|
|
c13e87 |
- Fix static library and header file permissions.
|
|
|
c13e87 |
- Use sources from the dyninst git repositories.
|
|
|
c13e87 |
- Fix 32-bit library versioning for libdyninstAPI_RT_m32.so.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed Jun 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.11
|
|
|
c13e87 |
- Fix library versioning.
|
|
|
c13e87 |
- Move .so links to dyninst-devel.
|
|
|
c13e87 |
- Remove unneded clean section.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Fri May 11 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.9
|
|
|
c13e87 |
- Clean up Makefile rules.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Sat May 5 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.8
|
|
|
c13e87 |
- Clean up spec file.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Wed May 2 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.7
|
|
|
c13e87 |
- Use "make install" and do staged build.
|
|
|
c13e87 |
- Use rpm configure macro.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Thu Mar 15 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.5
|
|
|
c13e87 |
- Nuke the bundled boost files and use the boost-devel rpm instead.
|
|
|
c13e87 |
|
|
|
c13e87 |
* Mon Mar 12 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.4
|
|
|
c13e87 |
- Initial submission of dyninst spec file.
|