spec: Sync spec with fedora's

Removing some needless defattr, using new ldconfig scriptlets, etc.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2019-04-23 11:29:52 -03:00
parent 9f1f0628b9
commit 01276a7e89
1 changed files with 14 additions and 16 deletions

View File

@ -5,14 +5,13 @@ Name: dwarves
Version: 1.13 Version: 1.13
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
Summary: Debugging Information Manipulation Tools Summary: Debugging Information Manipulation Tools (pahole & friends)
Group: Development/Tools
URL: http://acmel.wordpress.com URL: http://acmel.wordpress.com
Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.bz2 Source: http://fedorapeople.org/~acme/dwarves/%{name}-%{version}.tar.xz
BuildRequires: gcc
BuildRequires: cmake BuildRequires: cmake
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: elfutils-devel >= 0.130 BuildRequires: elfutils-devel >= 0.130
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
%description %description
dwarves is a set of tools that use the debugging information inserted in dwarves is a set of tools that use the debugging information inserted in
@ -37,14 +36,12 @@ functions, inlines, decisions made by the compiler about inlining, etc.
%package -n %{libname}%{libver} %package -n %{libname}%{libver}
Summary: Debugging information processing library Summary: Debugging information processing library
Group: Development/Libraries
%description -n %{libname}%{libver} %description -n %{libname}%{libver}
Debugging information processing library. Debugging information processing library.
%package -n %{libname}%{libver}-devel %package -n %{libname}%{libver}-devel
Summary: Debugging information library development files Summary: Debugging information library development files
Group: Development/Libraries
Requires: %{libname}%{libver} = %{version}-%{release} Requires: %{libname}%{libver} = %{version}-%{release}
%description -n %{libname}%{libver}-devel %description -n %{libname}%{libver}-devel
@ -61,19 +58,12 @@ make VERBOSE=1 %{?_smp_mflags}
rm -Rf %{buildroot} rm -Rf %{buildroot}
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
%post -n %{libname}%{libver} -p /sbin/ldconfig %ldconfig_scriptlets -n %{libname}%{libver}
%postun -n %{libname}%{libver} -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files %files
%defattr(0644,root,root,0755)
%doc README.ctracer %doc README.ctracer
%doc README.btf %doc README.btf
%doc NEWS %doc NEWS
%defattr(0755,root,root,0755)
%{_bindir}/btfdiff %{_bindir}/btfdiff
%{_bindir}/codiff %{_bindir}/codiff
%{_bindir}/ctracer %{_bindir}/ctracer
@ -99,13 +89,11 @@ rm -rf %{buildroot}
%attr(0755,root,root) %{_datadir}/dwarves/runtime/python/ostra.py* %attr(0755,root,root) %{_datadir}/dwarves/runtime/python/ostra.py*
%files -n %{libname}%{libver} %files -n %{libname}%{libver}
%defattr(0644,root,root,0755)
%{_libdir}/%{libname}.so.* %{_libdir}/%{libname}.so.*
%{_libdir}/%{libname}_emit.so.* %{_libdir}/%{libname}_emit.so.*
%{_libdir}/%{libname}_reorganize.so.* %{_libdir}/%{libname}_reorganize.so.*
%files -n %{libname}%{libver}-devel %files -n %{libname}%{libver}-devel
%defattr(0644,root,root,0755)
%doc MANIFEST README %doc MANIFEST README
%{_includedir}/dwarves/btf_encoder.h %{_includedir}/dwarves/btf_encoder.h
%{_includedir}/dwarves/config.h %{_includedir}/dwarves/config.h
@ -129,6 +117,16 @@ rm -rf %{buildroot}
%{_libdir}/%{libname}_reorganize.so %{_libdir}/%{libname}_reorganize.so
%changelog %changelog
* Tue Apr 23 2019 Arnaldo Carvalho de Melo <acme@redhat.com> - 1.13-1
- New release: 1.13
- Infer __packed__ attributes, i.e. __attribute__((__packed__))
- Support DW_AT_alignment, i.e. __attribute__((__aligned__(N)))
- Decode BTF type format and pretty print it
- BTF encoding fixes
- Use libbpf's BTF deduplication
- Support unions as arguments to -C/--class
- New 'pfunct --compile' generates compilable output with type definitions
* Thu Aug 16 2018 Arnaldo Carvalho de Melo <acme@kernel.org> - 1.12-1 * Thu Aug 16 2018 Arnaldo Carvalho de Melo <acme@kernel.org> - 1.12-1
- New release: - New release:
- union member cacheline boundaries for all inner structs - union member cacheline boundaries for all inner structs