commit 6b7db9941340ba0370c19a897718a44f9b1a7fce
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Mon Feb 20 10:34:40 2017 +0100
Switch to rpmmacrodir
live555.spec | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/live555.spec b/live555.spec
index ae91a7c..41ab4a9 100644
--- a/live555.spec
+++ b/live555.spec
@@ -78,12 +78,12 @@ sed -i -e "s|-O2|%{optflags}|" \
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
#RPM Macros support
-mkdir -p %{buildroot}%{_sysconfdir}/rpm
-cat > %{buildroot}%{_sysconfdir}/rpm/macros.live555 << EOF
+mkdir -p %{buildroot}%{rpmmacrodir}
+cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF
# live555 RPM Macros
%live555_version %{version}
EOF
-touch -r COPYING %{buildroot}%{_sysconfdir}/rpm/macros.live555
+touch -r COPYING %{buildroot}%{rpmmacrodir}/macros.%{name}
#Fix library dependency detection
chmod +x %{buildroot}%{_libdir}/*.so*
@@ -105,7 +105,7 @@ chmod +x %{buildroot}%{_libdir}/*.so*
%files devel
%doc COPYING README
-%config %{_sysconfdir}/rpm/macros.live555
+%{rpmmacrodir}/macros.%{name}
%{_libdir}/libBasicUsageEnvironment.so
%{_libdir}/libgroupsock.so
%{_libdir}/libliveMedia.so