]> git.pld-linux.org Git - SPECS.git/blob - libdwarf.spec
SPECS updated Tue 30 Apr 15:13:02 CEST 2024
[SPECS.git] / libdwarf.spec
1 Summary:        Library to read DWARF debug information of an ELF object
2 Summary(pl.UTF-8):      Biblioteka do odczytu informacji debugowych DWARF z obiektów ELF
3 Name:           libdwarf
4 Version:        20191104
5 Release:        1
6 License:        LGPL v2.1 (library), GPL v2 (utilities)
7 Group:          Libraries
8 #Source0Download: https://www.prevanders.net/dwarf.html
9 Source0:        https://www.prevanders.net/%{name}-%{version}.tar.gz
10 # Source0-md5:  f5927304b32525f93bccefe2828e802d
11 URL:            https://www.prevanders.net/dwarf.html
12 BuildRequires:  elfutils-devel
13 BuildRequires:  libstdc++-devel
14 BuildRequires:  zlib-devel
15 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16
17 %description
18 Library to read DWARF debug information of an ELF object.
19
20 %description -l pl.UTF-8
21 Biblioteka do odczytu informacji debugowych DWARF z obiektów ELF.
22
23 %package devel
24 Summary:        Header files for libdwarf library
25 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libdwarf
26 Group:          Development/Libraries
27 Requires:       %{name} = %{version}-%{release}
28 Requires:       elfutils-devel
29 Requires:       zlib-devel
30
31 %description devel
32 Header files for libdwarf library.
33
34 %description devel -l pl.UTF-8
35 Pliki nagłówkowe biblioteki libdwarf.
36
37 %package static
38 Summary:        Static libdwarf library
39 Summary(pl.UTF-8):      Statyczna biblioteka libdwarf
40 Group:          Development/Libraries
41 Requires:       %{name}-devel = %{version}-%{release}
42
43 %description static
44 Static libdwarf library.
45
46 %description static -l pl.UTF-8
47 Statyczna biblioteka libdwarf.
48
49 %package -n dwarfdump
50 Summary:        Tool for dumps DWARF debug information of an ELF object
51 Summary(pl.UTF-8):      Narzędzie wypisujące informacje debugowe DWARF z obiektów ELF
52 License:        GPL v2
53 Group:          Development/Tools
54
55 %description -n dwarfdump
56 Tool for dumps DWARF debug information of an ELF object.
57
58 %description -n dwarfdump -l pl.UTF-8
59 Narzędzie wypisujące informacje debugowe DWARF z obiektów ELF.
60
61 %prep
62 %setup -q
63
64 %build
65 %configure \
66         --enable-shared \
67         --disable-silent-rules
68
69 %{__make}
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73
74 %{__make} install \
75         DESTDIR=$RPM_BUILD_ROOT
76
77 # (another implementation) provided by elfutils
78 %{__rm} $RPM_BUILD_ROOT%{_includedir}/dwarf.h
79
80 # packaged as %doc
81 %{__rm} -r $RPM_BUILD_ROOT%{_datadir}/libdwarf/libdwarf-devel
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post   -p /sbin/ldconfig
87 %postun -p /sbin/ldconfig
88
89 %files
90 %defattr(644,root,root,755)
91 %doc libdwarf/{CHANGES,COPYING,ChangeLog*,NEWS,README}
92 %attr(755,root,root) %{_libdir}/libdwarf.so.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libdwarf.so.1
94
95 %files devel
96 %defattr(644,root,root,755)
97 %doc libdwarf/libdwarf*.pdf
98 %attr(755,root,root) %{_libdir}/libdwarf.so
99 %{_libdir}/libdwarf.la
100 %{_includedir}/libdwarf.h
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libdwarf.a
105
106 %files -n dwarfdump
107 %defattr(644,root,root,755)
108 %doc dwarfdump/{COPYING,ChangeLog*,NEWS,README}
109 %attr(755,root,root) %{_bindir}/dwarfdump
110 %{_datadir}/dwarfdump
111 %{_mandir}/man1/dwarfdump.1*
112
113 %if 0
114 # not really useful yet
115 %files -n dwarfgen
116 %defattr(644,root,root,755)
117 %doc dwarfgen/{COPYING,ChangeLog,README}
118 %{_sysconfdir}/dwarfgen.conf
119 %attr(755,root,root) %{_bindir}/dwarfgen
120 %{_mandir}/man1/dwarfgen.1*
121 %endif
This page took 0.664543 seconds and 3 git commands to generate.