William Cohen b93756
Summary: An API for Run-time Code Generation
William Cohen b93756
License: LGPLv2+
William Cohen b93756
Name: dyninst
William Cohen b93756
Group: Development/Libraries
Peter Robinson b89322
Release: 11%{?dist}
William Cohen b93756
URL: http://www.dyninst.org
Josh Stone 55f25f
Version: 8.1.2
William Cohen b93756
Exclusiveos: linux
Josh Stone 873b19
#dyninst only knows the following architectures
Josh Stone 873b19
ExclusiveArch: %{ix86} x86_64 ppc ppc64
William Cohen b93756
William Cohen b93756
# The source for this package was pulled from upstream's vcs.  Use the
William Cohen b93756
# following commands to generate the tarball:
William Cohen b93756
#  git clone http://git.dyninst.org/dyninst.git; cd dyninst
Josh Stone 55f25f
#  git archive --format=tar.gz --prefix=dyninst/ v8.1.2 > dyninst-8.1.2.tar.gz
William Cohen b93756
#  git clone http://git.dyninst.org/docs.git; cd docs
Josh Stone ddf1ba
#  git archive --format=tar.gz v8.1.1 > dyninst-docs-8.1.1.tar.gz
Josh Stone e983e5
# Verify the commit ids with:
Josh Stone 55f25f
#  gunzip -c dyninst-8.1.2.tar.gz | git get-tar-commit-id
Josh Stone ddf1ba
#  gunzip -c dyninst-docs-8.1.1.tar.gz | git get-tar-commit-id
William Cohen b93756
Source0: %{name}-%{version}.tar.gz
Josh Stone 55f25f
Source1: %{name}-docs-8.1.1.tar.gz
Josh Stone 0892d3
Patch1: dyninst-rpm-build-flags.patch
Josh Stone 4d44e8
Patch2: dyninst-install-testsuite.patch
William Cohen 9a7f0c
Patch3: dyninst-pokeuser.patch
Josh Stone 26f669
Patch4: dyninst-Werror-format-security.patch
Josh Stone 8570b1
Patch5: dyninst-8.1.2-testsuite-opt.patch
Josh Stone 8742d2
BuildRequires: libdwarf-devel >= 20111030
William Cohen b93756
BuildRequires: elfutils-libelf-devel
William Cohen b93756
BuildRequires: boost-devel
William Cohen b93756
Josh Stone 4d44e8
# Extra requires just for the testsuite
Josh Stone 4d44e8
BuildRequires: gcc-gfortran glibc-static libstdc++-static nasm
Josh Stone 4d44e8
Josh Stone 4d44e8
# Testsuite files should not provide/require anything
Josh Stone 4d44e8
%{?filter_setup:
Josh Stone 4d44e8
%filter_provides_in %{_libdir}/dyninst/testsuite/
Josh Stone 4d44e8
%filter_requires_in %{_libdir}/dyninst/testsuite/
Josh Stone 4d44e8
%filter_setup
Josh Stone 4d44e8
}
Josh Stone 4d44e8
William Cohen b93756
%description
William Cohen b93756
William Cohen b93756
Dyninst is an Application Program Interface (API) to permit the insertion of
William Cohen b93756
code into a running program. The API also permits changing or removing
William Cohen b93756
subroutine calls from the application program. Run-time code changes are
William Cohen b93756
useful to support a variety of applications including debugging, performance
William Cohen b93756
monitoring, and to support composing applications out of existing packages.
William Cohen b93756
The goal of this API is to provide a machine independent interface to permit
William Cohen b93756
the creation of tools and applications that use run-time code patching.
William Cohen b93756
Josh Stone 3ce346
%package doc
Josh Stone 3ce346
Summary: Documentation for using the Dyninst API
Josh Stone 3ce346
Group: Documentation
Josh Stone 3ce346
%description doc
Josh Stone 3ce346
dyninst-doc contains API documentation for the Dyninst libraries.
Josh Stone 3ce346
William Cohen b93756
%package devel
William Cohen b93756
Summary: Header files for the compiling programs with Dyninst
William Cohen b93756
Group: Development/System
William Cohen b93756
Requires: dyninst = %{version}-%{release}
William Cohen 7b19db
Requires: boost-devel
William Cohen b93756
%description devel
Josh Stone 3ce346
dyninst-devel includes the C header files that specify the Dyninst user-space
William Cohen b93756
libraries and interfaces. This is required for rebuilding any program
William Cohen b93756
that uses Dyninst.
William Cohen b93756
William Cohen b93756
%package static
William Cohen b93756
Summary: Static libraries for the compiling programs with Dyninst
William Cohen b93756
Group: Development/System
Josh Stone 4d44e8
Requires: dyninst-devel = %{version}-%{release}
William Cohen b93756
%description static
William Cohen b93756
dyninst-static includes the static versions of the library files for
William Cohen b93756
the dyninst user-space libraries and interfaces.
William Cohen b93756
Josh Stone 4d44e8
%package testsuite
Josh Stone 4d44e8
Summary: Programs for testing Dyninst
Josh Stone 4d44e8
Group: Development/System
Josh Stone 7c432c
Requires: dyninst-devel = %{version}-%{release}
Josh Stone 4d44e8
%description testsuite
Josh Stone 4d44e8
dyninst-testsuite includes the test harness and target programs for
Josh Stone 4d44e8
making sure that dyninst works properly.
Josh Stone 4d44e8
William Cohen b93756
%prep
William Cohen b93756
%setup -q -n %{name}-%{version} -c
William Cohen b93756
%setup -q -T -D -a 1
William Cohen b93756
William Cohen 221ead
pushd dyninst
Josh Stone 0892d3
%patch1 -p1 -b .buildflags
Josh Stone 4d44e8
%patch2 -p1 -b .testsuite
William Cohen 9a7f0c
%patch3 -p1 -b .pokeuser
Josh Stone 26f669
%patch4 -p1 -d testsuite -b .format-security
Josh Stone 8570b1
%patch5 -p1 -b .testsuite-opt
William Cohen 221ead
popd
William Cohen b93756
William Cohen 9a7f0c
William Cohen b93756
%build
William Cohen b93756
William Cohen b93756
cd dyninst
William Cohen b93756
Josh Stone 4d44e8
%configure --includedir=%{_includedir}/dyninst --libdir=%{_libdir}/dyninst
Josh Stone c67562
make %{?_smp_mflags} VERBOSE_COMPILATION=1
William Cohen b93756
William Cohen b93756
%install
William Cohen b93756
William Cohen b93756
cd dyninst
Josh Stone c67562
make DESTDIR=%{buildroot} install
William Cohen b93756
William Cohen b93756
mkdir -p %{buildroot}/etc/ld.so.conf.d
William Cohen b93756
echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
William Cohen b93756
William Cohen b93756
# Ugly hack to fix permissions
William Cohen b93756
chmod 644 %{buildroot}%{_includedir}/dyninst/*
William Cohen b93756
chmod 644 %{buildroot}%{_libdir}/dyninst/*.a
William Cohen b93756
Josh Stone 4d44e8
# Uglier hack to mask testsuite files from debuginfo extraction.  Running the
Josh Stone 4d44e8
# testsuite requires debuginfo, so extraction is useless.  However, debuginfo
Josh Stone 4d44e8
# extraction is still nice for the main libraries, so we don't want to disable
Josh Stone 4d44e8
# it package-wide.  The permissions are restored by attr(755,-,-) in files.
Josh Stone 4d44e8
chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
Josh Stone 4d44e8
William Cohen b93756
%post -p /sbin/ldconfig
William Cohen b93756
%postun -p /sbin/ldconfig
William Cohen b93756
William Cohen b93756
%files
William Cohen b93756
%defattr(-,root,root,-)
William Cohen b93756
Josh Stone 3ce346
%dir %{_libdir}/dyninst
William Cohen b93756
%{_libdir}/dyninst/*.so.*
William Cohen b93756
Josh Stone 3ce346
%doc dyninst/COPYRIGHT
Josh Stone 3ce346
%doc dyninst/LGPL
Josh Stone 3ce346
Josh Stone 3ce346
%config(noreplace) /etc/ld.so.conf.d/*
William Cohen b93756
Josh Stone 3ce346
%files doc
Josh Stone 3ce346
%defattr(-,root,root,-)
William Cohen b93756
%doc dynC_API.pdf
Josh Stone 605a28
%doc DyninstAPI.pdf
Josh Stone 605a28
%doc InstructionAPI.pdf
Josh Stone 605a28
%doc ParseAPI.pdf
Josh Stone 605a28
%doc PatchAPI.pdf
William Cohen b93756
%doc ProcControlAPI.pdf
Josh Stone ddf1ba
%doc StackwalkerAPI.pdf
Josh Stone 605a28
%doc SymtabAPI.pdf
William Cohen b93756
William Cohen b93756
%files devel
William Cohen b93756
%defattr(-,root,root,-)
William Cohen b93756
%{_includedir}/dyninst
William Cohen b93756
%{_libdir}/dyninst/*.so
William Cohen b93756
William Cohen b93756
%files static
William Cohen b93756
%defattr(-,root,root,-)
William Cohen b93756
%{_libdir}/dyninst/*.a
William Cohen b93756
Josh Stone 4d44e8
%files testsuite
Josh Stone 4d44e8
%defattr(-,root,root,-)
Josh Stone 4d44e8
%{_bindir}/parseThat
Josh Stone 4d44e8
%dir %{_libdir}/dyninst/testsuite/
Josh Stone 4d44e8
# Restore the permissions that were hacked out above, during install.
Josh Stone ddf1ba
%attr(755,root,root) %{_libdir}/dyninst/testsuite/*
Josh Stone 4d44e8
William Cohen b93756
%changelog
Peter Robinson b89322
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.2-11
Peter Robinson b89322
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
Peter Robinson b89322
Josh Stone 873b19
* Mon Jul 07 2014 Josh Stone <jistone@redhat.com> - 8.1.2-10
Josh Stone 873b19
- Flip from ExcludeArch to ExclusiveArch (ref rhbz1113991)
Josh Stone 873b19
Dennis Gilmore f2a80d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.2-9
Dennis Gilmore f2a80d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
Dennis Gilmore f2a80d
Petr Machata 260ae3
* Fri May 23 2014 Petr Machata <pmachata@redhat.com> - 8.1.2-8
Petr Machata 260ae3
- Rebuild for boost 1.55.0
Petr Machata 260ae3
Josh Stone 650517
* Thu May 22 2014 Josh Stone <jistone@redhat.com> - 8.1.2-7
Josh Stone 650517
- Rebuild for libdwarf.so.1
Josh Stone 650517
Josh Stone 8570b1
* Wed Dec 11 2013 Josh Stone <jistone@redhat.com> 8.1.2-6
Josh Stone 8570b1
- Fix rhbz1040715 (testsuite g++ optimization)
Josh Stone 8570b1
Josh Stone 26f669
* Tue Dec 03 2013 Josh Stone <jistone@redhat.com> 8.1.2-5
Josh Stone 26f669
- Fix rhbz1037048 (-Werror=format-security FTBFS)
Josh Stone 26f669
William Cohen 9a7f0c
* Mon Aug 05 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.2-4
William Cohen 9a7f0c
- Fix rhbz991889 (FTBFS).
William Cohen 9a7f0c
Dennis Gilmore fbc2df
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 8.1.2-3
Dennis Gilmore fbc2df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
Dennis Gilmore fbc2df
Petr Machata e71657
* Tue Jul 30 2013 Petr Machata <pmachata@redhat.com> - 8.1.2-2
Petr Machata e71657
- Rebuild for boost 1.54.0
Petr Machata e71657
Josh Stone 55f25f
* Tue Jun 18 2013 Josh Stone <jistone@redhat.com> 8.1.2-1
Josh Stone 55f25f
- Update to release 8.1.2.
Josh Stone 55f25f
Josh Stone ddf1ba
* Fri Mar 15 2013 Josh Stone <jistone@redhat.com> 8.1.1-1
Josh Stone ddf1ba
- Update to release 8.1.1.
Josh Stone ddf1ba
- Drop the backported dyninst-test2_4-kill-init.patch.
Josh Stone ddf1ba
- Drop the now-upstreamed dyninst-unused_vars.patch.
Josh Stone ddf1ba
- Update other patches for context.
Josh Stone ddf1ba
- Patch the installed symlinks to be relative, not $(DEST) filled.
Josh Stone ddf1ba
Josh Stone 7c432c
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-7
Josh Stone 7c432c
- testsuite: Require dyninst-devel for the libdyninstAPI_RT.so symlink
Josh Stone 7c432c
Josh Stone e5cc52
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-6
Josh Stone e5cc52
- Fix the testsuite path to include libtestlaunch.so
Josh Stone e5cc52
Josh Stone 4d44e8
* Mon Feb 25 2013 Josh Stone <jistone@redhat.com> 8.0-5
Josh Stone 4d44e8
- Add a dyninst-testsuite package.
Josh Stone 4d44e8
- Patch test2_4 to protect against running as root.
Josh Stone 4d44e8
- Make dyninst-static require dyninst-devel.
Josh Stone 4d44e8
Josh Stone 0892d3
* Thu Feb 14 2013 Josh Stone <jistone@redhat.com> 8.0-4
Josh Stone 0892d3
- Patch make.config to ensure rpm build flags are not discarded.
Josh Stone 0892d3
Denis Arnaud 301770
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 8.0-3
Denis Arnaud 301770
- Rebuild for Boost-1.53.0
Denis Arnaud 301770
Denis Arnaud 74b3cb
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 8.0-2
Denis Arnaud 74b3cb
- Rebuild for Boost-1.53.0
Denis Arnaud 74b3cb
Josh Stone c67562
* Tue Nov 20 2012 Josh Stone <jistone@redhat.com>
Josh Stone c67562
- Tweak the configure/make commands
Josh Stone c67562
- Disable the testsuite via configure.
Josh Stone c67562
- Set the private includedir and libdir via configure.
Josh Stone c67562
- Set VERBOSE_COMPILATION for make.
Josh Stone c67562
- Use DESTDIR for make install.
Josh Stone c67562
Josh Stone 605a28
* Mon Nov 19 2012 Josh Stone <jistone@redhat.com> 8.0-1
Josh Stone 605a28
- Update to release 8.0.
Josh Stone 605a28
- Updated "%files doc" to reflect renames.
Josh Stone 605a28
- Drop the unused BuildRequires libxml2-devel.
Josh Stone 605a28
- Drop the 7.99.x version-munging patch.
Josh Stone 605a28
Josh Stone 731bcf
* Fri Nov 09 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.29
Josh Stone 731bcf
- Rebase to git e99d7070bbc39c76d6d528db530046c22681c17e
Josh Stone 731bcf
Josh Stone 80bdf2
* Mon Oct 29 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.28
Josh Stone 80bdf2
- Bump to 7.99.2 per abi-compliance-checker results
Josh Stone 80bdf2
Josh Stone 2e1357
* Fri Oct 26 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.27
Josh Stone 2e1357
- Rebase to git dd8f40b7b4742ad97098613876efeef46d3d9e65
Josh Stone 2e1357
- Use _smp_mflags to enable building in parallel.
Josh Stone 2e1357
Josh Stone e983e5
* Wed Oct 03 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.26
Josh Stone e983e5
- Rebase to git 557599ad7417610f179720ad88366c32a0557127
Josh Stone e983e5
Josh Stone 8742d2
* Thu Sep 20 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.25
Josh Stone 8742d2
- Rebase on newer git tree.
Josh Stone 8742d2
- Bump the fake version to 7.99.1 to account for ABI differences.
Josh Stone 8742d2
- Enforce the minimum libdwarf version.
Josh Stone 8742d2
- Drop the upstreamed R_PPC_NUM patch.
Josh Stone 8742d2
Karsten Hopp 98878d
* Wed Aug 15 2012 Karsten Hopp <karsten@redhat.com> 7.99-0.24
Karsten Hopp 98878d
- check if R_PPC_NUM is defined before using it, similar to R_PPC64_NUM
Karsten Hopp 98878d
Josh Stone 3ce346
* Mon Jul 30 2012 Josh Stone <jistone@redhat.com> 7.99-0.23
Josh Stone 3ce346
- Rebase on newer git tree.
Josh Stone 3ce346
- Update license files with upstream additions.
Josh Stone 3ce346
- Split documentation into -doc subpackage.
Josh Stone 3ce346
- Claim ownership of %{_libdir}/dyninst.
Josh Stone 3ce346
William Cohen 7b19db
* Fri Jul 27 2012 William Cohen <wcohen@redhat.com> - 7.99-0.22
William Cohen 7b19db
- Correct requires for dyninst-devel.
William Cohen 7b19db
Josh Stone 929226
* Wed Jul 25 2012 Josh Stone <jistone@redhat.com> - 7.99-0.21
Josh Stone 929226
- Rebase on newer git tree
Josh Stone 929226
- Update context in dyninst-git.patch
Josh Stone 929226
- Drop dyninst-delete_array.patch
Josh Stone 929226
- Drop dyninst-common-makefile.patch
Josh Stone 929226
Dennis Gilmore c2c6c8
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.99-0.20
Dennis Gilmore c2c6c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
Dennis Gilmore c2c6c8
William Cohen 09d6a6
* Mon Jul 16 2012 William Cohen <wcohen@redhat.com> - 7.99-0.19
William Cohen 09d6a6
- Patch common/i386-unknown-linux2.4/Makefile to build.
William Cohen 09d6a6
William Cohen 221ead
* Fri Jul 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.18
William Cohen 221ead
- Rebase on newer git tree the has a number of merges into it.
William Cohen 221ead
- Adjust spec file to allow direct use of git patches
William Cohen 221ead
- Fix to eliminate unused varables.
William Cohen 221ead
- Proper delete for array.
William Cohen 221ead
William Cohen 3ed909
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.17
William Cohen 3ed909
- Rebase on newer git repo.
William Cohen 3ed909
William Cohen 24518d
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.16
William Cohen 24518d
- Eliminate dynptr.h file use with rebase on newer git repo.
William Cohen 24518d
William Cohen 4f1375
* Mon Jun 25 2012 William Cohen <wcohen@redhat.com> - 7.99-0.14
William Cohen 4f1375
- Rebase on newer git repo.
William Cohen 4f1375
William Cohen b93756
* Tue Jun 19 2012 William Cohen <wcohen@redhat.com> - 7.99-0.12
William Cohen b93756
- Fix static library and header file permissions.
William Cohen b93756
- Use sources from the dyninst git repositories.
William Cohen b93756
- Fix 32-bit library versioning for libdyninstAPI_RT_m32.so.
William Cohen b93756
William Cohen b93756
* Wed Jun 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.11
William Cohen b93756
- Fix library versioning.
William Cohen b93756
- Move .so links to dyninst-devel.
William Cohen b93756
- Remove unneded clean section.
William Cohen b93756
William Cohen b93756
* Fri May 11 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.9
William Cohen b93756
- Clean up Makefile rules.
William Cohen b93756
Josh Stone 5c6046
* Sat May 5 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.8
William Cohen b93756
- Clean up spec file.
William Cohen b93756
William Cohen b93756
* Wed May 2 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.7
William Cohen b93756
- Use "make install" and do staged build.
William Cohen b93756
- Use rpm configure macro.
William Cohen b93756
William Cohen b93756
* Thu Mar 15 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.5
William Cohen b93756
- Nuke the bundled boost files and use the boost-devel rpm instead.
William Cohen b93756
William Cohen b93756
* Mon Mar 12 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.4
William Cohen b93756
- Initial submission of dyninst spec file.