[sysprof] fix udev rule path (#979545)

Gianluca Sforna giallu at fedoraproject.org
Fri Jun 28 22:12:20 UTC 2013


commit fbc740870c68a6cdab3497fcbe6821d0ac2b845b
Author: Gianluca Sforna <giallu at gmail.com>
Date:   Sat Jun 29 00:11:47 2013 +0200

    fix udev rule path (#979545)

 sysprof-1.2.0-fix_udev_rule_path.patch |   13 +++++++++++++
 sysprof.spec                           |   17 +++++++++++++----
 2 files changed, 26 insertions(+), 4 deletions(-)
---
diff --git a/sysprof-1.2.0-fix_udev_rule_path.patch b/sysprof-1.2.0-fix_udev_rule_path.patch
new file mode 100644
index 0000000..e155cd4
--- /dev/null
+++ b/sysprof-1.2.0-fix_udev_rule_path.patch
@@ -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
diff --git a/sysprof.spec b/sysprof.spec
index 4ec502f..febd694 100644
--- a/sysprof.spec
+++ b/sysprof.spec
@@ -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 at gmail.com> 1.2.0-3
+- fix udev rule path (#979545)
+
 * Fri Feb 15 2013 Fedora Release Engineering <rel-eng at 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
 


More information about the scm-commits mailing list