Blame SPECS/dyninst.spec

afd09e
Summary: An API for Run-time Code Generation
afd09e
License: LGPLv2+
afd09e
Name: dyninst
afd09e
Group: Development/Libraries
cb379f
Release: 2%{?dist}
afd09e
URL: http://www.dyninst.org
cb379f
Version: 8.2.0
afd09e
Exclusiveos: linux
cb379f
#dyninst only knows the following architectures
cb379f
ExclusiveArch: %{ix86} x86_64 ppc ppc64
afd09e
afd09e
# The source for this package was pulled from upstream's vcs.  Use the
afd09e
# following commands to generate the tarball:
afd09e
#  git clone http://git.dyninst.org/dyninst.git; cd dyninst
cb379f
#  git archive --format=tar.gz --prefix=dyninst/ v8.2.0.1 > dyninst-8.2.0.1.tar.gz
afd09e
#  git clone http://git.dyninst.org/docs.git; cd docs
cb379f
#  git archive --format=tar.gz --prefix=docs/ v8.2.0.1 > dyninst-docs-8.2.0.1.tar.gz
cb379f
#  git clone http://git.dyninst.org/testsuite.git; cd testsuite
cb379f
#  git archive --format=tar.gz --prefix=testsuite/ v8.2.0.1 > dyninst-testsuite-8.2.0.1.tar.gz
afd09e
# Verify the commit ids with:
cb379f
#  gunzip -c dyninst-8.2.0.1.tar.gz | git get-tar-commit-id
cb379f
#  gunzip -c dyninst-docs-8.2.0.1.tar.gz | git get-tar-commit-id
cb379f
#  gunzip -c dyninst-testsuite-8.2.0.1.tar.gz | git get-tar-commit-id
cb379f
Source0: dyninst-%{version}.1.tar.gz
cb379f
Source1: dyninst-docs-%{version}.1.tar.gz
cb379f
Source2: dyninst-testsuite-%{version}.1.tar.gz
cb379f
Patch1: dyninst-rhbz1152270.patch
afd09e
BuildRequires: libdwarf-devel >= 20111030
afd09e
BuildRequires: elfutils-libelf-devel
afd09e
BuildRequires: boost-devel
cb379f
BuildRequires: binutils-devel
cb379f
BuildRequires: cmake
afd09e
afd09e
# Extra requires just for the testsuite
afd09e
BuildRequires: gcc-gfortran glibc-static libstdc++-static nasm
afd09e
afd09e
# Testsuite files should not provide/require anything
afd09e
%{?filter_setup:
afd09e
%filter_provides_in %{_libdir}/dyninst/testsuite/
afd09e
%filter_requires_in %{_libdir}/dyninst/testsuite/
afd09e
%filter_setup
afd09e
}
afd09e
afd09e
%description
afd09e
afd09e
Dyninst is an Application Program Interface (API) to permit the insertion of
afd09e
code into a running program. The API also permits changing or removing
afd09e
subroutine calls from the application program. Run-time code changes are
afd09e
useful to support a variety of applications including debugging, performance
afd09e
monitoring, and to support composing applications out of existing packages.
afd09e
The goal of this API is to provide a machine independent interface to permit
afd09e
the creation of tools and applications that use run-time code patching.
afd09e
afd09e
%package doc
afd09e
Summary: Documentation for using the Dyninst API
afd09e
Group: Documentation
afd09e
%description doc
afd09e
dyninst-doc contains API documentation for the Dyninst libraries.
afd09e
afd09e
%package devel
afd09e
Summary: Header files for the compiling programs with Dyninst
afd09e
Group: Development/System
afd09e
Requires: dyninst = %{version}-%{release}
afd09e
Requires: boost-devel
cb379f
afd09e
%description devel
afd09e
dyninst-devel includes the C header files that specify the Dyninst user-space
afd09e
libraries and interfaces. This is required for rebuilding any program
afd09e
that uses Dyninst.
afd09e
afd09e
%package static
afd09e
Summary: Static libraries for the compiling programs with Dyninst
afd09e
Group: Development/System
afd09e
Requires: dyninst-devel = %{version}-%{release}
afd09e
%description static
afd09e
dyninst-static includes the static versions of the library files for
afd09e
the dyninst user-space libraries and interfaces.
afd09e
afd09e
%package testsuite
afd09e
Summary: Programs for testing Dyninst
afd09e
Group: Development/System
cb379f
Requires: dyninst = %{version}-%{release}
afd09e
Requires: dyninst-devel = %{version}-%{release}
cb379f
Requires: dyninst-static = %{version}-%{release}
cb379f
Requires: glibc-static
afd09e
%description testsuite
afd09e
dyninst-testsuite includes the test harness and target programs for
afd09e
making sure that dyninst works properly.
afd09e
afd09e
%prep
afd09e
%setup -q -n %{name}-%{version} -c
afd09e
%setup -q -T -D -a 1
cb379f
%setup -q -T -D -a 2
afd09e
afd09e
pushd dyninst
cb379f
%patch1 -p1 -b .rhbz1152270
afd09e
popd
afd09e
afd09e
%build
afd09e
afd09e
cd dyninst
afd09e
cb379f
%cmake \
cb379f
 -DINSTALL_LIB_DIR:PATH=%{_libdir}/dyninst \
cb379f
 -DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \
cb379f
 -DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \
cb379f
 -DCMAKE_SKIP_RPATH:BOOL=YES
cb379f
make %{?_smp_mflags}
cb379f
cb379f
# Hack to install dyninst nearby, so the testsuite can use it
cb379f
make DESTDIR=../install install
cb379f
sed -i -e 's!%{_libdir}/dyninst!../install%{_libdir}/dyninst!' \
cb379f
  ../install%{_libdir}/cmake/Dyninst/*.cmake
cb379f
cb379f
cd ../testsuite
cb379f
%cmake \
cb379f
 -DDyninst_DIR:PATH=../install%{_libdir}/cmake/Dyninst \
cb379f
 -DINSTALL_DIR:PATH=%{_libdir}/dyninst/testsuite \
cb379f
 -DCMAKE_BUILD_TYPE:STRING=Debug \
cb379f
 -DCMAKE_SKIP_RPATH:BOOL=YES
cb379f
make %{?_smp_mflags}
afd09e
afd09e
%install
afd09e
afd09e
cd dyninst
afd09e
make DESTDIR=%{buildroot} install
afd09e
cb379f
cd ../testsuite
cb379f
make DESTDIR=%{buildroot} install
cb379f
afd09e
mkdir -p %{buildroot}/etc/ld.so.conf.d
afd09e
echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
afd09e
afd09e
# Ugly hack to fix permissions
afd09e
chmod 644 %{buildroot}%{_includedir}/dyninst/*
afd09e
chmod 644 %{buildroot}%{_libdir}/dyninst/*.a
afd09e
afd09e
# Uglier hack to mask testsuite files from debuginfo extraction.  Running the
afd09e
# testsuite requires debuginfo, so extraction is useless.  However, debuginfo
afd09e
# extraction is still nice for the main libraries, so we don't want to disable
afd09e
# it package-wide.  The permissions are restored by attr(755,-,-) in files.
afd09e
chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
afd09e
afd09e
%post -p /sbin/ldconfig
afd09e
%postun -p /sbin/ldconfig
afd09e
afd09e
%files
afd09e
%defattr(-,root,root,-)
afd09e
afd09e
%dir %{_libdir}/dyninst
afd09e
%{_libdir}/dyninst/*.so.*
afd09e
afd09e
%doc dyninst/COPYRIGHT
afd09e
%doc dyninst/LGPL
afd09e
afd09e
%config(noreplace) /etc/ld.so.conf.d/*
afd09e
afd09e
%files doc
afd09e
%defattr(-,root,root,-)
cb379f
%doc docs/dynC_API.pdf
cb379f
%doc docs/DyninstAPI.pdf
cb379f
%doc docs/dyninstAPI/examples/
cb379f
%doc docs/InstructionAPI.pdf
cb379f
%doc docs/ParseAPI.pdf
cb379f
%doc docs/PatchAPI.pdf
cb379f
%doc docs/ProcControlAPI.pdf
cb379f
%doc docs/StackwalkerAPI.pdf
cb379f
%doc docs/SymtabAPI.pdf
afd09e
afd09e
%files devel
afd09e
%defattr(-,root,root,-)
afd09e
%{_includedir}/dyninst
afd09e
%{_libdir}/dyninst/*.so
cb379f
%dir %{_libdir}/cmake
cb379f
%{_libdir}/cmake/Dyninst
afd09e
afd09e
%files static
afd09e
%defattr(-,root,root,-)
afd09e
%{_libdir}/dyninst/*.a
afd09e
afd09e
%files testsuite
afd09e
%defattr(-,root,root,-)
cb379f
#%{_bindir}/parseThat
afd09e
%dir %{_libdir}/dyninst/testsuite/
afd09e
# Restore the permissions that were hacked out above, during install.
afd09e
%attr(755,root,root) %{_libdir}/dyninst/testsuite/*
afd09e
afd09e
%changelog
cb379f
* Mon Oct 20 2014 Josh Stone <jistone@redhat.com> - 8.2.0-2
cb379f
- rhbz1152270: enable bug workaround for syscall pc rewind on ppc
cb379f
cb379f
* Fri Sep 05 2014 Josh Stone <jistone@redhat.com> - 8.2.0-1
cb379f
- rebase to 8.2.0, using upstream tag "v8.2.0.1"
cb379f
bdf803
* Mon Feb 10 2014 Josh Stone <jistone@redhat.com> 8.1.2-6
bdf803
- rhbz1063447: squash testsuite g++ optimization
bdf803
- rhbz1030969: backported additional patch to silence new warnings
bdf803
bdf803
* Thu Jan 16 2014 Josh Stone <jistone@redhat.com> 8.1.2-5
bdf803
- rhbz1030969: backported upstream patches for image::findMain
bdf803
bdf803
* Tue Jan 07 2014 Josh Stone <jistone@redhat.com> 8.1.2-4
bdf803
- rhbz1040652: backported upstream patches for mid-syscall PTRACE_EVENTs
bdf803
bdf803
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 8.1.2-3
bdf803
- Mass rebuild 2013-12-27
bdf803
afd09e
* Fri Oct 25 2013 Josh Stone <jistone@redhat.com> 8.1.2-2
afd09e
- rhbz1007500: Fix DYNINST_index_lock state and ppc64 writeFunctionPtr
afd09e
afd09e
* Tue Jun 18 2013 Josh Stone <jistone@redhat.com> 8.1.2-1
afd09e
- Update to release 8.1.2.
afd09e
afd09e
* Fri Mar 15 2013 Josh Stone <jistone@redhat.com> 8.1.1-1
afd09e
- Update to release 8.1.1.
afd09e
- Drop the backported dyninst-test2_4-kill-init.patch.
afd09e
- Drop the now-upstreamed dyninst-unused_vars.patch.
afd09e
- Update other patches for context.
afd09e
- Patch the installed symlinks to be relative, not $(DEST) filled.
afd09e
afd09e
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-7
afd09e
- testsuite: Require dyninst-devel for the libdyninstAPI_RT.so symlink
afd09e
afd09e
* Tue Feb 26 2013 Josh Stone <jistone@redhat.com> 8.0-6
afd09e
- Fix the testsuite path to include libtestlaunch.so
afd09e
afd09e
* Mon Feb 25 2013 Josh Stone <jistone@redhat.com> 8.0-5
afd09e
- Add a dyninst-testsuite package.
afd09e
- Patch test2_4 to protect against running as root.
afd09e
- Make dyninst-static require dyninst-devel.
afd09e
afd09e
* Thu Feb 14 2013 Josh Stone <jistone@redhat.com> 8.0-4
afd09e
- Patch make.config to ensure rpm build flags are not discarded.
afd09e
afd09e
* Sun Feb 10 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 8.0-3
afd09e
- Rebuild for Boost-1.53.0
afd09e
afd09e
* Sat Feb 09 2013 Denis Arnaud <denis.arnaud_fedora@m4x.org> - 8.0-2
afd09e
- Rebuild for Boost-1.53.0
afd09e
afd09e
* Tue Nov 20 2012 Josh Stone <jistone@redhat.com>
afd09e
- Tweak the configure/make commands
afd09e
- Disable the testsuite via configure.
afd09e
- Set the private includedir and libdir via configure.
afd09e
- Set VERBOSE_COMPILATION for make.
afd09e
- Use DESTDIR for make install.
afd09e
afd09e
* Mon Nov 19 2012 Josh Stone <jistone@redhat.com> 8.0-1
afd09e
- Update to release 8.0.
afd09e
- Updated "%files doc" to reflect renames.
afd09e
- Drop the unused BuildRequires libxml2-devel.
afd09e
- Drop the 7.99.x version-munging patch.
afd09e
afd09e
* Fri Nov 09 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.29
afd09e
- Rebase to git e99d7070bbc39c76d6d528db530046c22681c17e
afd09e
afd09e
* Mon Oct 29 2012 Josh Stone <jistone@redhat.com> 7.99.2-0.28
afd09e
- Bump to 7.99.2 per abi-compliance-checker results
afd09e
afd09e
* Fri Oct 26 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.27
afd09e
- Rebase to git dd8f40b7b4742ad97098613876efeef46d3d9e65
afd09e
- Use _smp_mflags to enable building in parallel.
afd09e
afd09e
* Wed Oct 03 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.26
afd09e
- Rebase to git 557599ad7417610f179720ad88366c32a0557127
afd09e
afd09e
* Thu Sep 20 2012 Josh Stone <jistone@redhat.com> 7.99.1-0.25
afd09e
- Rebase on newer git tree.
afd09e
- Bump the fake version to 7.99.1 to account for ABI differences.
afd09e
- Enforce the minimum libdwarf version.
afd09e
- Drop the upstreamed R_PPC_NUM patch.
afd09e
afd09e
* Wed Aug 15 2012 Karsten Hopp <karsten@redhat.com> 7.99-0.24
afd09e
- check if R_PPC_NUM is defined before using it, similar to R_PPC64_NUM
afd09e
afd09e
* Mon Jul 30 2012 Josh Stone <jistone@redhat.com> 7.99-0.23
afd09e
- Rebase on newer git tree.
afd09e
- Update license files with upstream additions.
afd09e
- Split documentation into -doc subpackage.
afd09e
- Claim ownership of %{_libdir}/dyninst.
afd09e
afd09e
* Fri Jul 27 2012 William Cohen <wcohen@redhat.com> - 7.99-0.22
afd09e
- Correct requires for dyninst-devel.
afd09e
afd09e
* Wed Jul 25 2012 Josh Stone <jistone@redhat.com> - 7.99-0.21
afd09e
- Rebase on newer git tree
afd09e
- Update context in dyninst-git.patch
afd09e
- Drop dyninst-delete_array.patch
afd09e
- Drop dyninst-common-makefile.patch
afd09e
afd09e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.99-0.20
afd09e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
afd09e
afd09e
* Mon Jul 16 2012 William Cohen <wcohen@redhat.com> - 7.99-0.19
afd09e
- Patch common/i386-unknown-linux2.4/Makefile to build.
afd09e
afd09e
* Fri Jul 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.18
afd09e
- Rebase on newer git tree the has a number of merges into it.
afd09e
- Adjust spec file to allow direct use of git patches
afd09e
- Fix to eliminate unused varables.
afd09e
- Proper delete for array.
afd09e
afd09e
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.17
afd09e
- Rebase on newer git repo.
afd09e
afd09e
* Thu Jun 28 2012 William Cohen <wcohen@redhat.com> - 7.99-0.16
afd09e
- Eliminate dynptr.h file use with rebase on newer git repo.
afd09e
afd09e
* Mon Jun 25 2012 William Cohen <wcohen@redhat.com> - 7.99-0.14
afd09e
- Rebase on newer git repo.
afd09e
afd09e
* Tue Jun 19 2012 William Cohen <wcohen@redhat.com> - 7.99-0.12
afd09e
- Fix static library and header file permissions.
afd09e
- Use sources from the dyninst git repositories.
afd09e
- Fix 32-bit library versioning for libdyninstAPI_RT_m32.so.
afd09e
afd09e
* Wed Jun 13 2012 William Cohen <wcohen@redhat.com> - 7.99-0.11
afd09e
- Fix library versioning.
afd09e
- Move .so links to dyninst-devel.
afd09e
- Remove unneded clean section.
afd09e
afd09e
* Fri May 11 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.9
afd09e
- Clean up Makefile rules.
afd09e
afd09e
* Sat May 5 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.8
afd09e
- Clean up spec file.
afd09e
afd09e
* Wed May 2 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.7
afd09e
- Use "make install" and do staged build.
afd09e
- Use rpm configure macro.
afd09e
afd09e
* Thu Mar 15 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.5
afd09e
- Nuke the bundled boost files and use the boost-devel rpm instead.
afd09e
afd09e
* Mon Mar 12 2012 William Cohen <wcohen@redhat.com> - 7.0.1-0.4
afd09e
- Initial submission of dyninst spec file.