author | davelam |
Wed, 24 Feb 2010 04:10:23 +0000 | |
branch | gnome-2-28 |
changeset 18642 | 478b5460cc36 |
parent 18484 | 3b6334cb0ec1 |
permissions | -rw-r--r-- |
18400 | 1 |
# |
2 |
# spec file for package SUNWgnome-backgrounds |
|
3 |
# |
|
4 |
# includes module(s): gnome-backgrounds |
|
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 backgrounds = gnome-backgrounds.spec |
|
16 |
||
17 |
Name: SUNWgnome-backgrounds |
|
18 |
Summary: Selection of backgrounds for the GNOME desktop |
|
19 |
Version: %{backgrounds.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 |
||
28 |
%if %build_l10n |
|
29 |
%package l10n |
|
30 |
Summary: %{summary} - l10n files |
|
31 |
SUNW_BaseDir: %{_basedir} |
|
32 |
%include default-depend.inc |
|
33 |
Requires: %{name} |
|
34 |
%endif |
|
35 |
||
36 |
%prep |
|
37 |
rm -rf %name-%version |
|
38 |
mkdir %name-%version |
|
39 |
||
40 |
mkdir %name-%version/%{base_arch} |
|
41 |
%backgrounds.prep -d %name-%version/%{base_arch} |
|
42 |
||
43 |
%build |
|
44 |
export PKG_CONFIG=/usr/bin/pkg-config |
|
45 |
PKG_CONFIG_DISABLE_UNINSTALLED= |
|
46 |
unset PKG_CONFIG_DISABLE_UNINSTALLED |
|
47 |
||
48 |
%backgrounds.build -d %name-%version/%{base_arch} |
|
49 |
||
50 |
%install |
|
51 |
rm -rf $RPM_BUILD_ROOT |
|
52 |
||
53 |
%backgrounds.install -d %name-%version/%{base_arch} |
|
54 |
||
55 |
%if %build_l10n |
|
56 |
%else |
|
57 |
# REMOVE l10n FILES |
|
58 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale |
|
59 |
%endif |
|
60 |
||
61 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
|
62 |
||
63 |
%clean |
|
64 |
rm -rf $RPM_BUILD_ROOT |
|
65 |
||
66 |
||
67 |
%files |
|
18484
3b6334cb0ec1
Fixed attribute issues, changed the default attribute to (root, bin).
davelam
parents:
18431
diff
changeset
|
68 |
%defattr(-, root, bin) |
18400 | 69 |
%dir %attr (0755, root, sys) %{_datadir} |
70 |
%dir %attr (0755, root, other) %{_datadir}/pixmaps |
|
18431 | 71 |
%{_datadir}/gnome-background-properties/*.xml |
72 |
%{_datadir}/pixmaps/backgrounds/gnome/nature/*.jpg |
|
73 |
%{_datadir}/pixmaps/backgrounds/gnome/abstract/*.png |
|
18400 | 74 |
%doc -d %{base_arch} gnome-backgrounds-%{backgrounds.version}/README |
75 |
%doc -d %{base_arch} gnome-backgrounds-%{backgrounds.version}/AUTHORS |
|
76 |
%doc(bzip2) -d %{base_arch} gnome-backgrounds-%{backgrounds.version}/COPYING |
|
77 |
%doc(bzip2) -d %{base_arch} gnome-backgrounds-%{backgrounds.version}/NEWS |
|
78 |
%doc(bzip2) -d %{base_arch} gnome-backgrounds-%{backgrounds.version}/ChangeLog |
|
79 |
%doc(bzip2) -d %{base_arch} gnome-backgrounds-%{backgrounds.version}/po/ChangeLog |
|
80 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
81 |
||
82 |
%if %build_l10n |
|
83 |
%files l10n |
|
84 |
%defattr (-, root, bin) |
|
85 |
%dir %attr (0755, root, sys) %{_datadir} |
|
86 |
%attr (-, root, other) %{_datadir}/locale |
|
87 |
%endif |
|
88 |
||
89 |
%changelog |
|
90 |
* Thu Nov 19 2009 - [email protected] |
|
91 |
- Adding a %changelog. Fixing directory permissions in %files. |
|
18431 | 92 |
* Mon Nov 30 2009 - [email protected] |
93 |
- Fix %files. |