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..9c189a7 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +udis86-1_7-3_fc12:HEAD:udis86-1.7-3.fc12.src.rpm:1264575618 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