summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--NEWS1
-rw-r--r--t/data/SPECS/various.spec6
-rw-r--r--t/data/SPECS/various2.spec6
-rw-r--r--t/data/SPECS/various3.spec6
4 files changed, 19 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 0007bed0..c9748f54 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@
o perform some file conflict tests only on Mageia
o try harder to find genhdlist2 in uninstalled CPAN modules
o work without glibc-static-devel
+ o workaround %find_lang sometimes failing on FreeBSD
- testsuite:
o add more extensive tests
o describe it more
diff --git a/t/data/SPECS/various.spec b/t/data/SPECS/various.spec
index 4429fada..250f737c 100644
--- a/t/data/SPECS/various.spec
+++ b/t/data/SPECS/various.spec
@@ -13,13 +13,19 @@ echo foo > foo
rm -rf $RPM_BUILD_ROOT
for i in /etc/test-%{name} \
/var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \
+%ifos linux
/usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \
+%endif
/usr/test-%{name}/foo; do
mkdir -p `dirname $RPM_BUILD_ROOT$i`
echo foo > $RPM_BUILD_ROOT$i
done
+%ifos linux
%find_lang test-%{name}
+%else
+echo > test-%{name}.lang
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/t/data/SPECS/various2.spec b/t/data/SPECS/various2.spec
index d7c55421..6a10084c 100644
--- a/t/data/SPECS/various2.spec
+++ b/t/data/SPECS/various2.spec
@@ -13,13 +13,19 @@ echo foo > foo
rm -rf $RPM_BUILD_ROOT
for i in /etc/test-%{name} \
/var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \
+%ifos linux
/usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \
+%endif
/usr/test-%{name}/foo; do
mkdir -p `dirname $RPM_BUILD_ROOT$i`
echo foo > $RPM_BUILD_ROOT$i
done
+%ifos linux
%find_lang test-%{name}
+%else
+echo > test-%{name}.lang
+%endif
%clean
rm -rf $RPM_BUILD_ROOT
diff --git a/t/data/SPECS/various3.spec b/t/data/SPECS/various3.spec
index f018ab25..74e08459 100644
--- a/t/data/SPECS/various3.spec
+++ b/t/data/SPECS/various3.spec
@@ -13,13 +13,19 @@ echo foo > foo
rm -rf $RPM_BUILD_ROOT
for i in /etc/test-%{name} \
/var/lib/test-%{name}/foo1 /var/lib/test-%{name}/foo2 /var/lib/test-%{name}/foo3 \
+%ifos linux
/usr/share/locale/fr/LC_MESSAGES/test-%{name}.mo \
+%endif
/usr/test-%{name}/foo; do
mkdir -p `dirname $RPM_BUILD_ROOT$i`
echo foo > $RPM_BUILD_ROOT$i
done
+%ifos linux
%find_lang test-%{name}
+%else
+echo > test-%{name}.lang
+%endif
%clean
rm -rf $RPM_BUILD_ROOT