Update to 9.0.3
This commit is contained in:
parent
e0f020a56e
commit
f896851d0e
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,3 +7,5 @@
|
|||||||
/dyninst-docs-8.2.0.1.tar.gz
|
/dyninst-docs-8.2.0.1.tar.gz
|
||||||
/dyninst-testsuite-8.2.0.1.tar.gz
|
/dyninst-testsuite-8.2.0.1.tar.gz
|
||||||
/dyninst-8.2.1.tar.gz
|
/dyninst-8.2.1.tar.gz
|
||||||
|
/DyninstAPI-9.0.3.tgz
|
||||||
|
/Testsuite-9.0.3.tgz
|
||||||
|
99
dyninst.spec
99
dyninst.spec
@ -2,29 +2,19 @@ Summary: An API for Run-time Code Generation
|
|||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
Name: dyninst
|
Name: dyninst
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Release: 9%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: http://www.dyninst.org
|
URL: http://www.dyninst.org
|
||||||
Version: 8.2.1
|
Version: 9.0.3
|
||||||
Exclusiveos: linux
|
Exclusiveos: linux
|
||||||
#dyninst only knows the following architectures
|
#dyninst only knows the following architectures
|
||||||
ExclusiveArch: %{ix86} x86_64 ppc ppc64
|
ExclusiveArch: %{ix86} x86_64 ppc ppc64
|
||||||
|
|
||||||
# The source for this package was pulled from upstream's vcs. Use the
|
Source0: http://www.paradyn.org/release%{version}/DyninstAPI-%{version}.tgz
|
||||||
# following commands to generate the tarball:
|
Source1: http://www.paradyn.org/release%{version}/Testsuite-%{version}.tgz
|
||||||
# git clone http://git.dyninst.org/dyninst.git; cd dyninst
|
|
||||||
# git archive --format=tar.gz --prefix=dyninst/ v8.2.1 > dyninst-8.2.1.tar.gz
|
%global dyninst_base DyninstAPI-%{version}
|
||||||
# git clone http://git.dyninst.org/docs.git; cd docs
|
%global testsuite_base Testsuite-9.0.0
|
||||||
# git archive --format=tar.gz --prefix=docs/ v8.2.0.1 > dyninst-docs-8.2.0.1.tar.gz
|
|
||||||
# git clone http://git.dyninst.org/testsuite.git; cd testsuite
|
|
||||||
# git archive --format=tar.gz --prefix=testsuite/ v8.2.0.1 > dyninst-testsuite-8.2.0.1.tar.gz
|
|
||||||
# Verify the commit ids with:
|
|
||||||
# gunzip -c dyninst-8.2.1.tar.gz | git get-tar-commit-id
|
|
||||||
# gunzip -c dyninst-docs-8.2.0.1.tar.gz | git get-tar-commit-id
|
|
||||||
# gunzip -c dyninst-testsuite-8.2.0.1.tar.gz | git get-tar-commit-id
|
|
||||||
Source0: dyninst-8.2.1.tar.gz
|
|
||||||
Source1: dyninst-docs-8.2.0.1.tar.gz
|
|
||||||
Source2: dyninst-testsuite-8.2.0.1.tar.gz
|
|
||||||
Patch1: dyninst-8.2.1-boost-bind.patch
|
|
||||||
BuildRequires: libdwarf-devel >= 20111030
|
BuildRequires: libdwarf-devel >= 20111030
|
||||||
BuildRequires: elfutils-libelf-devel
|
BuildRequires: elfutils-libelf-devel
|
||||||
BuildRequires: boost-devel
|
BuildRequires: boost-devel
|
||||||
@ -90,56 +80,54 @@ making sure that dyninst works properly.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version} -c
|
%setup -q -n %{name}-%{version} -c
|
||||||
%setup -q -T -D -a 1
|
%setup -q -T -D -a 1
|
||||||
%setup -q -T -D -a 2
|
|
||||||
|
|
||||||
pushd dyninst
|
|
||||||
%patch1 -p1 -b .bind
|
|
||||||
popd
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
cd dyninst
|
cd %{dyninst_base}
|
||||||
|
|
||||||
%cmake \
|
%cmake \
|
||||||
|
-DENABLE_STATIC_LIBS=1 \
|
||||||
-DINSTALL_LIB_DIR:PATH=%{_libdir}/dyninst \
|
-DINSTALL_LIB_DIR:PATH=%{_libdir}/dyninst \
|
||||||
-DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \
|
-DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \
|
||||||
-DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \
|
-DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \
|
||||||
|
-DCMAKE_BUILD_TYPE=None \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=YES
|
-DCMAKE_SKIP_RPATH:BOOL=YES
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
# Hack to install dyninst nearby, so the testsuite can use it
|
# Hack to install dyninst nearby, so the testsuite can use it
|
||||||
make DESTDIR=../install install
|
make DESTDIR=../install install
|
||||||
sed -i -e 's!%{_libdir}/dyninst!../install%{_libdir}/dyninst!' \
|
find ../install -name '*.cmake' -execdir \
|
||||||
../install%{_libdir}/cmake/Dyninst/*.cmake
|
sed -i -e 's!%{_prefix}!../install&!' '{}' '+'
|
||||||
|
|
||||||
cd ../testsuite
|
cd ../%{testsuite_base}
|
||||||
%cmake \
|
%cmake \
|
||||||
-DDyninst_DIR:PATH=../install%{_libdir}/cmake/Dyninst \
|
-DDyninst_DIR:PATH=$PWD/../install%{_libdir}/cmake/Dyninst \
|
||||||
-DINSTALL_DIR:PATH=%{_libdir}/dyninst/testsuite \
|
-DINSTALL_DIR:PATH=%{_libdir}/dyninst/testsuite \
|
||||||
-DCMAKE_BUILD_TYPE:STRING=Debug \
|
-DCMAKE_BUILD_TYPE:STRING=Debug \
|
||||||
-DCMAKE_SKIP_RPATH:BOOL=YES
|
-DCMAKE_SKIP_RPATH:BOOL=YES
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
|
|
||||||
cd dyninst
|
cd %{dyninst_base}
|
||||||
make DESTDIR=%{buildroot} install
|
%make_install
|
||||||
|
|
||||||
cd ../testsuite
|
# It doesn't install docs the way we want, so remove them.
|
||||||
make DESTDIR=%{buildroot} install
|
# We'll just grab the pdfs later, directly from the build dir.
|
||||||
|
rm -v %{buildroot}%{_docdir}/*-%{version}.pdf
|
||||||
|
|
||||||
|
cd ../%{testsuite_base}
|
||||||
|
%make_install
|
||||||
|
|
||||||
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
mkdir -p %{buildroot}/etc/ld.so.conf.d
|
||||||
echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
|
||||||
|
|
||||||
# Ugly hack to fix permissions
|
# Ugly hack to mask testsuite files from debuginfo extraction. Running the
|
||||||
chmod 644 %{buildroot}%{_includedir}/dyninst/*
|
|
||||||
chmod 644 %{buildroot}%{_libdir}/dyninst/*.a
|
|
||||||
|
|
||||||
# Uglier hack to mask testsuite files from debuginfo extraction. Running the
|
|
||||||
# testsuite requires debuginfo, so extraction is useless. However, debuginfo
|
# testsuite requires debuginfo, so extraction is useless. However, debuginfo
|
||||||
# extraction is still nice for the main libraries, so we don't want to disable
|
# extraction is still nice for the main libraries, so we don't want to disable
|
||||||
# it package-wide. The permissions are restored by attr(755,-,-) in files.
|
# it package-wide. The permissions are restored by attr(755,-,-) in files.
|
||||||
chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
|
find %{buildroot}%{_libdir}/dyninst/testsuite/ \
|
||||||
|
-type f '!' -name '*.a' -execdir chmod 644 '{}' '+'
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -150,22 +138,21 @@ chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
|
|||||||
%dir %{_libdir}/dyninst
|
%dir %{_libdir}/dyninst
|
||||||
%{_libdir}/dyninst/*.so.*
|
%{_libdir}/dyninst/*.so.*
|
||||||
|
|
||||||
%doc dyninst/COPYRIGHT
|
%doc %{dyninst_base}/COPYRIGHT
|
||||||
%doc dyninst/LGPL
|
%doc %{dyninst_base}/LGPL
|
||||||
|
|
||||||
%config(noreplace) /etc/ld.so.conf.d/*
|
%config(noreplace) /etc/ld.so.conf.d/*
|
||||||
|
|
||||||
%files doc
|
%files doc
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc docs/dynC_API.pdf
|
%doc %{dyninst_base}/dynC_API/doc/dynC_API.pdf
|
||||||
%doc docs/DyninstAPI.pdf
|
%doc %{dyninst_base}/dyninstAPI/doc/dyninstAPI.pdf
|
||||||
%doc docs/dyninstAPI/examples/
|
%doc %{dyninst_base}/instructionAPI/doc/instructionAPI.pdf
|
||||||
%doc docs/InstructionAPI.pdf
|
%doc %{dyninst_base}/parseAPI/doc/parseAPI.pdf
|
||||||
%doc docs/ParseAPI.pdf
|
%doc %{dyninst_base}/patchAPI/doc/patchAPI.pdf
|
||||||
%doc docs/PatchAPI.pdf
|
%doc %{dyninst_base}/proccontrol/doc/proccontrol.pdf
|
||||||
%doc docs/ProcControlAPI.pdf
|
%doc %{dyninst_base}/stackwalk/doc/stackwalk.pdf
|
||||||
%doc docs/StackwalkerAPI.pdf
|
%doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf
|
||||||
%doc docs/SymtabAPI.pdf
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
@ -180,12 +167,16 @@ chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
|
|||||||
|
|
||||||
%files testsuite
|
%files testsuite
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
#%{_bindir}/parseThat
|
#{_bindir}/parseThat
|
||||||
%dir %{_libdir}/dyninst/testsuite/
|
%dir %{_libdir}/dyninst/testsuite/
|
||||||
# Restore the permissions that were hacked out above, during install.
|
# Restore the permissions that were hacked out above, during install.
|
||||||
%attr(755,root,root) %{_libdir}/dyninst/testsuite/*
|
%attr(755,root,root) %{_libdir}/dyninst/testsuite/*
|
||||||
|
%attr(644,root,root) %{_libdir}/dyninst/testsuite/*.a
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Sep 04 2015 Josh Stone <jistone@redhat.com> - 9.0.3-1
|
||||||
|
- Update to 9.0.3
|
||||||
|
|
||||||
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 8.2.1-9
|
* Thu Aug 27 2015 Jonathan Wakely <jwakely@redhat.com> - 8.2.1-9
|
||||||
- Rebuilt for Boost 1.59
|
- Rebuilt for Boost 1.59
|
||||||
|
|
||||||
@ -285,7 +276,7 @@ chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
|
|||||||
|
|
||||||
* Mon Nov 19 2012 Josh Stone <jistone@redhat.com> 8.0-1
|
* Mon Nov 19 2012 Josh Stone <jistone@redhat.com> 8.0-1
|
||||||
- Update to release 8.0.
|
- Update to release 8.0.
|
||||||
- Updated "%files doc" to reflect renames.
|
- Updated "files doc" to reflect renames.
|
||||||
- Drop the unused BuildRequires libxml2-devel.
|
- Drop the unused BuildRequires libxml2-devel.
|
||||||
- Drop the 7.99.x version-munging patch.
|
- Drop the 7.99.x version-munging patch.
|
||||||
|
|
||||||
@ -315,7 +306,7 @@ chmod 644 %{buildroot}%{_libdir}/dyninst/testsuite/*
|
|||||||
- Rebase on newer git tree.
|
- Rebase on newer git tree.
|
||||||
- Update license files with upstream additions.
|
- Update license files with upstream additions.
|
||||||
- Split documentation into -doc subpackage.
|
- Split documentation into -doc subpackage.
|
||||||
- Claim ownership of %{_libdir}/dyninst.
|
- Claim ownership of {_libdir}/dyninst.
|
||||||
|
|
||||||
* Fri Jul 27 2012 William Cohen <wcohen@redhat.com> - 7.99-0.22
|
* Fri Jul 27 2012 William Cohen <wcohen@redhat.com> - 7.99-0.22
|
||||||
- Correct requires for dyninst-devel.
|
- Correct requires for dyninst-devel.
|
||||||
|
5
sources
5
sources
@ -1,3 +1,2 @@
|
|||||||
309897bf21a58007b61c3da7a7e9e4da dyninst-docs-8.2.0.1.tar.gz
|
8441fb98ea610c3ecd4367e2ceab05df DyninstAPI-9.0.3.tgz
|
||||||
3a675debbf201c86a616b1c3262972f4 dyninst-testsuite-8.2.0.1.tar.gz
|
ff0ea634fea38ba73c660a15a1b95313 Testsuite-9.0.3.tgz
|
||||||
a4433b1a39177447ba493e28d1a0abd8 dyninst-8.2.1.tar.gz
|
|
||||||
|
Loading…
Reference in New Issue
Block a user