author | chrisk |
Thu, 10 Dec 2009 13:51:52 +0000 | |
changeset 17160 | f4f7d869ae01 |
parent 17150 | a0e3a04383fb |
child 17269 | 1d7e574e63c7 |
permissions | -rw-r--r-- |
16960 | 1 |
# |
2 |
# spec file for package SUNWtango-icon-theme |
|
3 |
# |
|
4 |
# includes module(s): tango-icon-theme |
|
5 |
# |
|
6 |
# Copyright 2009 Sun Microsystems, Inc. |
|
7 |
# This file and all modifications and additions to the pristine |
|
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
10 |
%define owner erwannc |
|
11 |
# |
|
12 |
%include Solaris.inc |
|
13 |
%include base.inc |
|
14 |
||
15 |
%use tango = tango-icon-theme.spec |
|
16 |
||
17 |
Name: SUNWtango-icon-theme |
|
18 |
Summary: Tango icon theme |
|
19 |
Version: %{tango.version} |
|
20 |
SUNW_BaseDir: %{_basedir} |
|
21 |
SUNW_Copyright: %{name}.copyright |
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
23 |
||
24 |
%include default-depend.inc |
|
25 |
BuildRequires: SUNWgtk2 |
|
26 |
BuildRequires: SUNWgtk2-devel |
|
27 |
BuildRequires: SUNWicon-naming-utils |
|
28 |
||
29 |
%if %build_l10n |
|
30 |
%package l10n |
|
31 |
Summary: %{summary} - l10n files |
|
32 |
SUNW_BaseDir: %{_basedir} |
|
33 |
%include default-depend.inc |
|
34 |
Requires: %{name} |
|
35 |
%endif |
|
36 |
||
37 |
%prep |
|
38 |
rm -rf %name-%version |
|
39 |
mkdir %name-%version |
|
40 |
||
41 |
mkdir %name-%version/%{base_arch} |
|
42 |
%tango.prep -d %name-%version/%{base_arch} |
|
43 |
||
44 |
%build |
|
45 |
export PKG_CONFIG=/usr/bin/pkg-config |
|
46 |
PKG_CONFIG_DISABLE_UNINSTALLED= |
|
47 |
unset PKG_CONFIG_DISABLE_UNINSTALLED |
|
48 |
||
49 |
%tango.build -d %name-%version/%{base_arch} |
|
50 |
||
51 |
%install |
|
52 |
rm -rf $RPM_BUILD_ROOT |
|
53 |
||
54 |
%tango.install -d %name-%version/%{base_arch} |
|
55 |
||
56 |
%if %build_l10n |
|
57 |
%else |
|
58 |
# REMOVE l10n FILES |
|
59 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
60 |
%endif |
|
61 |
||
62 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
63 |
||
64 |
%clean |
|
65 |
rm -rf $RPM_BUILD_ROOT |
|
66 |
||
67 |
||
68 |
%files |
|
17150
a0e3a04383fb
Fixed attribute issues, changed the default attribute to (root, bin).
davelam
parents:
17007
diff
changeset
|
69 |
%defattr(-, root, bin) |
17007 | 70 |
%dir %attr (0755, root, sys) %{_datadir} |
17160 | 71 |
%dir %attr (0755, root, root) %{_datadir}/icons/Tango |
72 |
%{_datadir}/icons/Tango/*/emotes/* |
|
73 |
%{_datadir}/icons/Tango/*/categories/* |
|
74 |
%{_datadir}/icons/Tango/*/devices/* |
|
75 |
%{_datadir}/icons/Tango/*/status/* |
|
76 |
%{_datadir}/icons/Tango/*/places/* |
|
77 |
%{_datadir}/icons/Tango/*/mimetypes/* |
|
78 |
%{_datadir}/icons/Tango/*/actions/* |
|
79 |
%{_datadir}/icons/Tango/*/apps/* |
|
80 |
%{_datadir}/icons/Tango/*/animations/* |
|
81 |
%{_datadir}/icons/Tango/*/emblems/* |
|
82 |
%{_datadir}/icons/Tango/index.theme |
|
16960 | 83 |
%doc -d %{base_arch} tango-icon-theme-%{tango.version}/README |
84 |
%doc -d %{base_arch} tango-icon-theme-%{tango.version}/AUTHORS |
|
85 |
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/COPYING |
|
86 |
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/NEWS |
|
87 |
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/ChangeLog |
|
88 |
%doc(bzip2) -d %{base_arch} tango-icon-theme-%{tango.version}/po/ChangeLog |
|
17007 | 89 |
%dir %attr (0755, root, other) %{_datadir}/doc |
90 |
%dir %attr (0755, root, other) %{_datadir}/icons |
|
16960 | 91 |
|
92 |
%if %build_l10n |
|
93 |
%files l10n |
|
94 |
%defattr (-, root, bin) |
|
95 |
%dir %attr (0755, root, sys) %{_datadir} |
|
96 |
%attr (-, root, other) %{_datadir}/locale |
|
97 |
%endif |
|
98 |
||
17007 | 99 |
%changelog |
100 |
* Fri Nov 20 2009 - [email protected] |
|
101 |
- Fix %files, add %changelog. |