diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2005-06-13 13:44:44 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2005-06-13 13:44:44 +0000 |
commit | 81ef510011c98856ee269c137286833ae6af04e2 (patch) | |
tree | 30aec36845a703be2079c42b228ccd1481fcbeb6 | |
parent | 62a5e488d458906ef269d21ab816fc90a1e28080 (diff) | |
download | rpm-setup-81ef510011c98856ee269c137286833ae6af04e2.tar rpm-setup-81ef510011c98856ee269c137286833ae6af04e2.tar.gz rpm-setup-81ef510011c98856ee269c137286833ae6af04e2.tar.bz2 rpm-setup-81ef510011c98856ee269c137286833ae6af04e2.tar.xz rpm-setup-81ef510011c98856ee269c137286833ae6af04e2.zip |
- provide %_package_i18n (testing)
- %with %without => %_with %_without to not conflict with current rpm macro
-rw-r--r-- | macros.in | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -517,6 +517,17 @@ Provides: %{1} = %{version}-%{release} # Shorthand for %{defined with_...} # macros provided by rpm 4.4, but buggy :( -%with() %{expand:%%{?_with_%{1}:1}%%{!?_with_%{1}:0}} -%without() %{expand:%%{?_without_%{1}:1}%%{!?_without_%{1}:0}} - +%_with() %{expand: %%{?_with_%1:1} %%{!?_with_%1: %%{?_without_%1:0} %%{!?_without_%1: %%{?with_%1:%%{with_%1}} %%{!?with_%1: %%{?without_%1:!%%{without_%1}} %%{!?without_%1: %%{?2:%%2} %%{!?2:1} } } } } } +%_without() !%{expand: %%{with %1 %{?2:%2}}} + +%_package_i18n(g:f:) \ +%%package -n %{?1:%{1}}%{?!1:%{name}}-i18n\ +Summary: Internationalization and locale data for %{?1:%{1}}%{?!1:%{name}}\ +License: %{license}\ +Group: %{?-g:%{-g*}}%{?!-g:%{group}}\ +\ +%%description -n %{?1:%{1}}%{?!1:%{name}}-i18n\ +Internationalization and locale data for %{?1:%{1}}%{?!1:%{name}}\ +\ +%%files -n %{?1:%{1}}%{?!1:%{name}}-i18n %{?-f:%{-f}}%{?!-f:-f %{?1:%{1}}%{?!1:%{name}}.lang}\ +%{nil} |