fix udev rule path (#979545)

This commit is contained in:
Gianluca Sforna 2013-06-29 00:11:47 +02:00
parent 4d68078d8e
commit fbc740870c
2 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,13 @@
diff --git a/Makefile.am b/Makefile.am
index e294949..8e14ff9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -60,7 +60,7 @@ sysprof_LDADD = $(GUI_DEP_LIBS)
endif
-udevdir = $(sysconfdir)/udev/rules.d
+udevdir = /usr/lib/udev/rules.d
dist_udev_DATA = 60-sysprof.rules
pixmapsdir = $(datadir)/pixmaps

View File

@ -1,6 +1,6 @@
Name: sysprof
Version: 1.2.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A system-wide Linux profiler
Group: Development/System
License: GPLv2+
@ -14,12 +14,16 @@ BuildRequires: gtk2-devel => 2.6
BuildRequires: libglade2-devel
BuildRequires: binutils-devel
BuildRequires: desktop-file-utils
BuildRequires: automake
Requires: kernel => 2.6.31
Requires: hicolor-icon-theme
ExclusiveArch: %{ix86} x86_64
Patch0: sysprof-1.2.0-fix_udev_rule_path.patch
%description
Sysprof is a sampling CPU profiler for Linux that collects accurate,
high-precision data and provides efficient access to the sampled
@ -28,6 +32,7 @@ calltrees.
%prep
%setup -q -n sysprof-%{version}
%patch0 -p1
# Fix README
iconv --from=ISO-8859-1 --to=UTF-8 README > README.new && \
@ -36,6 +41,7 @@ mv README.new README
%build
autoreconf
%configure
make %{?_smp_mflags}
@ -74,7 +80,7 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files
%defattr(-,root,root,-)
%doc NEWS README COPYING TODO AUTHORS
%{_sysconfdir}/udev/rules.d/60-sysprof.rules
%{_prefix}/lib/udev/rules.d/60-sysprof.rules
%{_bindir}/sysprof
%{_bindir}/sysprof-cli
%{_datadir}/pixmaps/sysprof-*.png
@ -83,6 +89,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%{_datadir}/icons/hicolor/*/*/*
%changelog
* Fri Jun 28 2013 Gianluca Sforna <giallu@gmail.com> 1.2.0-3
- fix udev rule path (#979545)
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
@ -139,10 +148,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
* Thu Oct 5 2006 Gianluca Sforna <giallu gmail com> 1.0.3-5
- add ExclusiveArch to match sysprof-kmod supported archs
* Tue Oct 2 2006 Gianluca Sforna <giallu gmail com> 1.0.3-4
* Mon Oct 2 2006 Gianluca Sforna <giallu gmail com> 1.0.3-4
- add .desktop file
* Fri Sep 30 2006 Gianluca Sforna <giallu gmail com> 1.0.3-3
* Sat Sep 30 2006 Gianluca Sforna <giallu gmail com> 1.0.3-3
- versioned Provides
- add BR: binutils-devel