Switch to rpmmacrodir

el8
Nicolas Chauvet 8 years ago
parent 75e6086df6
commit 6b7db99413

@ -78,12 +78,12 @@ sed -i -e "s|-O2|%{optflags}|" \
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
#RPM Macros support #RPM Macros support
mkdir -p %{buildroot}%{_sysconfdir}/rpm mkdir -p %{buildroot}%{rpmmacrodir}
cat > %{buildroot}%{_sysconfdir}/rpm/macros.live555 << EOF cat > %{buildroot}%{rpmmacrodir}/macros.%{name} << EOF
# live555 RPM Macros # live555 RPM Macros
%live555_version %{version} %live555_version %{version}
EOF EOF
touch -r COPYING %{buildroot}%{_sysconfdir}/rpm/macros.live555 touch -r COPYING %{buildroot}%{rpmmacrodir}/macros.%{name}
#Fix library dependency detection #Fix library dependency detection
chmod +x %{buildroot}%{_libdir}/*.so* chmod +x %{buildroot}%{_libdir}/*.so*
@ -105,7 +105,7 @@ chmod +x %{buildroot}%{_libdir}/*.so*
%files devel %files devel
%doc COPYING README %doc COPYING README
%config %{_sysconfdir}/rpm/macros.live555 %{rpmmacrodir}/macros.%{name}
%{_libdir}/libBasicUsageEnvironment.so %{_libdir}/libBasicUsageEnvironment.so
%{_libdir}/libgroupsock.so %{_libdir}/libgroupsock.so
%{_libdir}/libliveMedia.so %{_libdir}/libliveMedia.so

Loading…
Cancel
Save