(New section: Protected page needs a minor edit) |
(New section: %{_docdir} specific req/prov filtering) |
||
Line 9: | Line 9: | ||
Section 9 as it's currently labeled has "inital-cc" instead of "initial-cc", right in the header. Hopefully, it'll be fixed before anyone uses the anchor link, which will change when corrected. -- [[User:Jrowens|J. Randall Owens]] 12:50, 2 July 2008 (UTC) | Section 9 as it's currently labeled has "inital-cc" instead of "initial-cc", right in the header. Hopefully, it'll be fixed before anyone uses the anchor link, which will change when corrected. -- [[User:Jrowens|J. Randall Owens]] 12:50, 2 July 2008 (UTC) | ||
== %{_docdir} specific req/prov filtering == | |||
Note it's possible to just get rpm to ignore everything under %{_docdir} by using filtering constructs in %prep such as: | |||
<pre> | |||
# make sure doc/tests don't generate provides | |||
# note we first filter out the bits in _docdir... | |||
cat << \EOF > %{name}-prov | |||
#!/bin/sh | |||
%{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` | |||
EOF | |||
%define __perl_provides %{_builddir}/Catalyst-Plugin-Authentication-%{version}/%{name}-prov | |||
chmod +x %{__perl_provides} | |||
cat << \EOF > %{name}-req | |||
#!/bin/sh | |||
%{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` | |||
EOF | |||
%define __perl_requires %{_builddir}/Catalyst-Plugin-Authentication-%{version}/%{name}-req | |||
chmod +x %{__perl_requires} | |||
</pre> | |||
[[User:Cweyl|Cweyl]] 18:23, 3 August 2008 (UTC) |
Revision as of 18:23, 3 August 2008
The following metadata was found in MoinMoin that could not be converted
to a useful value in MediaWiki:
- : hostname inside mock.
Protected page needs a minor edit
Section 9 as it's currently labeled has "inital-cc" instead of "initial-cc", right in the header. Hopefully, it'll be fixed before anyone uses the anchor link, which will change when corrected. -- J. Randall Owens 12:50, 2 July 2008 (UTC)
%{_docdir} specific req/prov filtering
Note it's possible to just get rpm to ignore everything under %{_docdir} by using filtering constructs in %prep such as:
# make sure doc/tests don't generate provides # note we first filter out the bits in _docdir... cat << \EOF > %{name}-prov #!/bin/sh %{__perl_provides} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` EOF %define __perl_provides %{_builddir}/Catalyst-Plugin-Authentication-%{version}/%{name}-prov chmod +x %{__perl_provides} cat << \EOF > %{name}-req #!/bin/sh %{__perl_requires} `perl -p -e 's|\S+%{_docdir}/%{name}-%{version}\S+||'` EOF %define __perl_requires %{_builddir}/Catalyst-Plugin-Authentication-%{version}/%{name}-req chmod +x %{__perl_requires}
Cweyl 18:23, 3 August 2008 (UTC)