From 80f5d666e370448925efb96eb72bdb4ff5695a39 Mon Sep 17 00:00:00 2001 From: Carl George Date: Mar 28 2019 19:33:39 +0000 Subject: Don't use macro forms of system executables "Macro forms of system executables SHOULD NOT be used..." https://docs.fedoraproject.org/en-US/packaging-guidelines/#_macros --- diff --git a/brotli.spec b/brotli.spec index 97dd0c2..0c637ae 100644 --- a/brotli.spec +++ b/brotli.spec @@ -47,11 +47,11 @@ This package installs the development files # fix permissions for -debuginfo # rpmlint will complain if I create an extra %%files section for # -debuginfo for this so we'll put it here instead -%{__chmod} 644 c/enc/*.[ch] -%{__chmod} 644 c/include/brotli/*.h -%{__chmod} 644 c/tools/brotli.c -%build +chmod 644 c/enc/*.[ch] +chmod 644 c/include/brotli/*.h +chmod 644 c/tools/brotli.c +%build mkdir -p build cd build %cmake .. -DCMAKE_INSTALL_PREFIX="%{_prefix}" \ @@ -65,14 +65,14 @@ cd build %make_install # I couldn't find the option to not build the static libraries -%__rm "%{buildroot}%{_libdir}/"*.a +rm "%{buildroot}%{_libdir}/"*.a cd .. %py3_install -%{__install} -dm755 "%{buildroot}%{_mandir}/man3" +install -dm755 "%{buildroot}%{_mandir}/man3" cd docs for i in *.3;do -%{__install} -m644 "$i" "%{buildroot}%{_mandir}/man3/${i}brotli" +install -m644 "$i" "%{buildroot}%{_mandir}/man3/${i}brotli" done %ldconfig_scriptlets