summaryrefslogtreecommitdiffstats
path: root/t/data/SPECS/various.spec
blob: 250f737c46edd19cbcb68b61d2b8d8f5d684b56b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
Summary: various
Name: various
Version: 1
Release: 1
License: x

%prep
echo foo > foo

%build

%install
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

%description
x

%files -f test-%{name}.lang
%defattr(-,root,root)
%doc foo
%config(noreplace) /etc/*
/var/lib/*
/usr/test-%{name}