SPECS: libdwarf.spec (NEW) - initial release.
pluto
pluto at pld-linux.org
Mon Jul 30 15:11:24 CEST 2007
Author: pluto Date: Mon Jul 30 13:11:24 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- initial release.
---- Files affected:
SPECS:
libdwarf.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/libdwarf.spec
diff -u /dev/null SPECS/libdwarf.spec:1.1
--- /dev/null Mon Jul 30 15:11:24 2007
+++ SPECS/libdwarf.spec Mon Jul 30 15:11:19 2007
@@ -0,0 +1,79 @@
+Summary: Library to read DWARF debug information of an ELF object
+Name: libdwarf
+%define _snap 20070703
+Version: 0.%{_snap}.1
+Release: 1
+License: LGPL v2.1
+Group: Libraries
+Source0: http://reality.sgiweb.org/davea/%{name}-%{_snap}.tar.gz
+# Source0-md5: 3c67d1df89f05421267ede59feec8152
+URL: http://reality.sgiweb.org/davea/dwarf.html
+BuildRequires: elfutils-devel
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define specflags -fPIC
+
+%description
+Library to read DWARF debug information of an ELF object.
+
+%package devel
+Summary: Header files for libdwarf library
+Group: Development/Libraries
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files for libdwarf library.
+
+%package static
+Summary: Static libdwarf library
+Group: Development/Libraries
+Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static libdwarf library.
+
+%prep
+%setup -q -n dwarf-%{_snap}
+
+%build
+cd libdwarf
+%configure \
+ --enable-shared \
+ --enable-nonshared
+%{__make}
+cd ..
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}}
+
+install libdwarf/libdwarf.h $RPM_BUILD_ROOT%{_includedir}
+install libdwarf/libdwarf.{a,so} $RPM_BUILD_ROOT%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc libdwarf/CHANGES libdwarf/COPYING libdwarf/ChangeLog* libdwarf/NEWS libdwarf/README
+%attr(755,root,root) %{_libdir}/libdwarf.so
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/libdwarf.h
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libdwarf.a
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2007/07/30 13:11:19 pluto
+- initial release.
================================================================
More information about the pld-cvs-commit
mailing list