From dd7bc9c36d695be5d38a6af532dd2be9da8433a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jason=20=E3=83=86=E3=82=A3=E3=83=93=E3=83=84?= Date: Wed, 27 Jan 2010 05:03:56 +0000 Subject: [PATCH 1/3] Initialize branch F-12 for udis86 --- branch | 1 + 1 file changed, 1 insertion(+) create mode 100644 branch diff --git a/branch b/branch new file mode 100644 index 0000000..06de2d2 --- /dev/null +++ b/branch @@ -0,0 +1 @@ +F-12 From 62e080727e7feccfdca6a941da44ba9e109af5e7 Mon Sep 17 00:00:00 2001 From: Scott Tsai Date: Wed, 27 Jan 2010 07:07:54 +0000 Subject: [PATCH 2/3] Import udis86-1.7-3 --- .cvsignore | 1 + import.log | 1 + sources | 1 + udis86.spec | 86 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 89 insertions(+) create mode 100644 import.log create mode 100644 udis86.spec diff --git a/.cvsignore b/.cvsignore index e69de29..c1cb1f4 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +udis86-1.7.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..2ff33aa --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +udis86-1_7-3_fc12:F-12:udis86-1.7-3.fc12.src.rpm:1264575875 diff --git a/sources b/sources index e69de29..c40648e 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +e279108e10f774e6c3af83caa18f5dc3 udis86-1.7.tar.gz diff --git a/udis86.spec b/udis86.spec new file mode 100644 index 0000000..9d4b0ae --- /dev/null +++ b/udis86.spec @@ -0,0 +1,86 @@ +Name: udis86 +Version: 1.7 +Release: 3%{?dist} +Summary: A disassembler library for x86 and x86-64 + +Group: System Environment/Libraries +License: BSD +URL: http://udis86.sourceforge.net +Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: yasm + +%description +udis86 is a disassembler library (libudis86) for x86 and x86-64. +The primary intent is to aid binary code analysis. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use %{name}. + + +%prep +%setup -q +find '(' -name '*.c' -or -name '*.h' ')' -exec chmod 644 {} \; + +%build +%configure --disable-static --enable-shared +sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool +sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT +make install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +rm -rf %{buildroot}%{_docdir} + + +%check +# test the libudis86 we just built. this is the only part that requires yasm +export LD_LIBRARY_PATH=$(pwd)/libudis86/.libs +make check + + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_bindir}/udcli +%{_libdir}/*.so.* + +%files devel +%defattr(-,root,root,-) +%doc docs/x86optable.* docs/udis86.* docs/index.html docs/ss.jpg docs/style.css +%{_includedir}/* +%{_libdir}/*.so + + +%changelog +* Fri Dec 04 2009 Scott Tsai 1.7-3 +- Actually remove commented out requires line +- Move check section after install section +- Place udcli in the main package instead of -devel +- Fix source file permissions + +* Thu Dec 03 2009 Scottt Tsai 1.7-2 +- Fix source url +- Remove commented out requires line +- Fix summary +- Move "make check" to check section +- Mark doc files instead of relying on make install + +* Thu Dec 03 2009 Scott Tsai 1.7-1 +- upstream 1.7 From 372f12e2b3aa1725e0caa3390b9a957a9efefb28 Mon Sep 17 00:00:00 2001 From: Fedora Release Engineering Date: Thu, 29 Jul 2010 14:39:05 +0000 Subject: [PATCH 3/3] dist-git conversion --- .cvsignore => .gitignore | 0 Makefile | 21 --------------------- branch | 1 - import.log | 1 - 4 files changed, 23 deletions(-) rename .cvsignore => .gitignore (100%) delete mode 100644 Makefile delete mode 100644 branch delete mode 100644 import.log diff --git a/.cvsignore b/.gitignore similarity index 100% rename from .cvsignore rename to .gitignore diff --git a/Makefile b/Makefile deleted file mode 100644 index 9172e96..0000000 --- a/Makefile +++ /dev/null @@ -1,21 +0,0 @@ -# Makefile for source rpm: udis86 -# $Id$ -NAME := udis86 -SPECFILE = $(firstword $(wildcard *.spec)) - -define find-makefile-common -for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done -endef - -MAKEFILE_COMMON := $(shell $(find-makefile-common)) - -ifeq ($(MAKEFILE_COMMON),) -# attept a checkout -define checkout-makefile-common -test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 -endef - -MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) -endif - -include $(MAKEFILE_COMMON) diff --git a/branch b/branch deleted file mode 100644 index 06de2d2..0000000 --- a/branch +++ /dev/null @@ -1 +0,0 @@ -F-12 diff --git a/import.log b/import.log deleted file mode 100644 index 2ff33aa..0000000 --- a/import.log +++ /dev/null @@ -1 +0,0 @@ -udis86-1_7-3_fc12:F-12:udis86-1.7-3.fc12.src.rpm:1264575875