[openni] Fix ownership of modules.xml

rmattes rmattes at fedoraproject.org
Tue Jan 6 01:06:47 UTC 2015


commit ebb9cd438c316a96d3116dad4f7d7447d4556f8b
Author: Rich Mattes <richmattes at gmail.com>
Date:   Mon Jan 5 20:04:49 2015 -0500

    Fix ownership of modules.xml

 openni.spec |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/openni.spec b/openni.spec
index c705f08..fbb3472 100644
--- a/openni.spec
+++ b/openni.spec
@@ -160,7 +160,7 @@ mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 install -p -m 0644 Data/SamplesConfig.xml $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
 
 mkdir -p $RPM_BUILD_ROOT%{_var}/lib/ni
-echo "<Modules/>" > $RPM_BUILD_ROOT%{_var}/lib/ni/modules.xml
+touch $RPM_BUILD_ROOT%{_var}/lib/ni/modules.xml
 
 mkdir -p %{buildroot}%{_libdir}/pkgconfig
 sed -e 's![@]prefix[@]!%{_prefix}!g' \
@@ -198,10 +198,10 @@ fi
 %files
 %doc LICENSE README NOTICE CHANGES
 %dir %{_sysconfdir}/%{name}
-%config(noreplace) %{_var}/lib/ni/modules.xml
+%dir %{_var}/lib/ni
+%ghost %{_var}/lib/ni/modules.xml
 %{_libdir}/*.so
 %{_bindir}/ni*
-%{_var}/lib/ni
 
 %files devel
 %doc Documentation/OpenNI_UserGuide.pdf
@@ -223,6 +223,9 @@ fi
 
 
 %changelog
+* Mon Jan 05 2015 Rich Mattes <richmattes at gmail.com> - 1.5.7.10-4
+- Fix ownership of modules.xml
+
 * Mon Jan 05 2015 Ralf Corsépius <corsepiu at fedoraproject.org> - 1.5.7.10-4
 - Rework openni-1.5.7.10-willow.patch (RHBZ#1178545).
 


More information about the scm-commits mailing list