rpms/libdwarf/F-10 libdwarf-soname-fix.patch, NONE, 1.1 libdwarf.spec, NONE, 1.1 sources, 1.1, 1.2
Suravee Suthikulpanit
suravee at fedoraproject.org
Wed Apr 1 17:13:51 UTC 2009
- Previous message (by thread): rpms/fedora-ds-admin-console/devel .cvsignore, 1.3, 1.4 fedora-ds-admin-console.spec, 1.4, 1.5 sources, 1.3, 1.4
- Next message (by thread): rpms/frescobaldi/devel frescobaldi.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: suravee
Update of /cvs/pkgs/rpms/libdwarf/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv20312
Modified Files:
sources
Added Files:
libdwarf-soname-fix.patch libdwarf.spec
Log Message:
Initial revision for branch F-10
libdwarf-soname-fix.patch:
--- NEW FILE libdwarf-soname-fix.patch ---
--- dwarf-20090324-base/libdwarf/Makefile.in 2009-03-24 15:31:18.000000000 -0500
+++ dwarf-20090324/libdwarf/Makefile.in 2009-03-25 18:52:52.000000000 -0500
@@ -127,8 +127,8 @@
libdwarf.a: $(OBJS)
$(AR) $(ARFLAGS) $@ $(OBJS)
-libdwarf.so: $(OBJS)
- $(CC) $(CFLAGS) -shared $(OBJS) -o $@
+libdwarf.so.0.0: $(OBJS)
+ $(CC) $(CFLAGS) -shared $(OBJS) -Wl,-soname,libdwarf.so.0.0 -o $@
none:
echo "do nothing"
--- NEW FILE libdwarf.spec ---
%define upstreamid 20090324
Summary: Library to access the DWARF Debugging file format
Name: libdwarf
Version: 0.%{upstreamid}
Release: 4%{?dist}
License: LGPLv2
Group: Development/Libraries
URL: http://reality.sgiweb.org/davea/dwarf.html
#md5sum 4e603955797a1d5d314a9489a4342c24 (for 20090324)
Source0: http://reality.sgiweb.org/davea/%{name}-%{upstreamid}.tar.gz
# This patch set up the proper soname
Patch0: libdwarf-soname-fix.patch
BuildRequires: binutils-devel elfutils-libelf-devel
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%package devel
Summary: Library and header files of libdwarf
License: LGPLv2
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: elfutils-libelf
%package tools
Summary: Tools for accessing DWARF debugging information
License: GPLv2
Group: Development/Tools
Requires: %{name} = %{version}-%{release}
Requires: elfutils-libelf
%description
Library to access the DWARF debugging file format which supports
source level debugging of a number of procedural languages, such as C, C++,
and Fortran. Please see http://www.dwarfstd.org for DWARF specification.
%description devel
Development package containing library and header files of libdwarf.
%description tools
C++ version of dwarfdump (dwarfdump2) command-line utilities
to access DWARF debug information.
%prep
%setup -q -n dwarf-%{upstreamid}
%patch0 -p1 -b .soname-fix
%build
pushd libdwarf
%configure --enable-shared
make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -I. -fPIC" libdwarf.so.0.0
ln -s libdwarf.so.0.0 libdwarf.so
ln -s libdwarf.so.0.0 libdwarf.so.0
popd
# Need to also configure dwarfdump since dwarfdump2 Makefile
# depends on dwarfdump's Makefile
pushd dwarfdump
%configure --enable-shared
popd
pushd dwarfdump2
%configure --enable-shared
# Note: %{?_smp_mflags} failed to build
LD_LIBRARY_PATH="../libdwarf" make CFLAGS="$RPM_OPT_FLAGS -I. -fPIC" all
popd
%install
rm -rf %{buildroot}
install -pDm 0644 libdwarf/dwarf.h %{buildroot}%{_includedir}/libdwarf/dwarf.h
install -pDm 0644 libdwarf/libdwarf.h %{buildroot}%{_includedir}/libdwarf/libdwarf.h
install -pDm 0755 libdwarf/libdwarf.so.0.0 %{buildroot}%{_libdir}/libdwarf.so.0.0
cp -pd libdwarf/libdwarf.so.0 %{buildroot}%{_libdir}/libdwarf.so.0
cp -pd libdwarf/libdwarf.so %{buildroot}%{_libdir}/libdwarf.so
install -pDm 0755 dwarfdump2/dwarfdump %{buildroot}%{_bindir}/dwarfdump
%clean
rm -rf %{buildroot}
%post -n libdwarf -p /sbin/ldconfig
%postun -n libdwarf -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc libdwarf/README libdwarf/COPYING libdwarf/LIBDWARFCOPYRIGHT libdwarf/LGPL.txt
%{_libdir}/libdwarf.so.0*
%files devel
%defattr(-,root,root,-)
%doc libdwarf/README libdwarf/COPYING libdwarf/LIBDWARFCOPYRIGHT libdwarf/LGPL.txt
%doc libdwarf/*.pdf
%{_includedir}/libdwarf
%{_libdir}/libdwarf.so
%files tools
%defattr(-,root,root,-)
%doc dwarfdump2/README dwarfdump2/COPYING dwarfdump2/DWARFDUMPCOPYRIGHT dwarfdump2/GPL.txt
%{_bindir}/dwarfdump
%changelog
* Tue Mar 31 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 0.20090324-4
- Adding _smp_mflags for libdwarf build
- Move CFLAGS override from configure to make
* Mon Mar 30 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 0.20090324-3
- Remove AutoreqProv no
* Thu Mar 26 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 0.20090324-2
- Drop the C implementation of dwarfdump. (dwarfdump1)
- Since the doc package is small, we combined the contents into the devel package.
- Fix the version string.
- Drop the static library.
- Add release number to "Requires".
- Fix licensing (v2 instead of v2+)
- Change linking for libdwarf.so and libdwarf.so.0
* Wed Mar 25 2009 - Suravee Suthikulpanit <suravee.suthikulpanit at amd.com>
- 20090324-1
- Initial Revision
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/libdwarf/F-10/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 1 Apr 2009 16:40:39 -0000 1.1
+++ sources 1 Apr 2009 17:13:21 -0000 1.2
@@ -0,0 +1 @@
+4e603955797a1d5d314a9489a4342c24 libdwarf-20090324.tar.gz
- Previous message (by thread): rpms/fedora-ds-admin-console/devel .cvsignore, 1.3, 1.4 fedora-ds-admin-console.spec, 1.4, 1.5 sources, 1.3, 1.4
- Next message (by thread): rpms/frescobaldi/devel frescobaldi.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-extras-commits
mailing list