9397
|
1 |
#
|
|
2 |
# spec file for package SUNWgnome-dialog
|
|
3 |
#
|
|
4 |
# includes module(s): zenity
|
|
5 |
#
|
10572
|
6 |
# Copyright 2007 Sun Microsystems, Inc.
|
9397
|
7 |
# This file and all modifications and additions to the pristine
|
|
8 |
# package are under the same license as the package itself.
|
|
9 |
#
|
11610
|
10 |
# Owner: migi
|
9397
|
11 |
#
|
|
12 |
%include Solaris.inc
|
|
13 |
|
|
14 |
%use zenity = zenity.spec
|
|
15 |
|
|
16 |
Name: SUNWgnome-dialog
|
|
17 |
Summary: GNOME graphical dialog box generator
|
|
18 |
Version: %{default_pkg_version}
|
|
19 |
Source: %{name}-manpages-0.1.tar.gz
|
|
20 |
SUNW_BaseDir: %{_basedir}
|
12135
|
21 |
SUNW_Copyright: %{name}.copyright
|
9397
|
22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
23 |
|
|
24 |
%include default-depend.inc
|
|
25 |
Requires: SUNWgnome-base-libs
|
|
26 |
Requires: SUNWperl584core
|
|
27 |
Requires: SUNWpostrun
|
9621
|
28 |
Requires: SUNWgnome-panel
|
9397
|
29 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
30 |
BuildRequires: SUNWgnome-doc-utils
|
|
31 |
BuildRequires: SUNWgnome-base-libs-devel
|
9934
|
32 |
BuildRequires: SUNWgnome-panel-devel
|
9397
|
33 |
|
|
34 |
%if %build_l10n
|
|
35 |
%package l10n
|
|
36 |
Summary: %{summary} - l10n files
|
|
37 |
SUNW_BaseDir: %{_basedir}
|
|
38 |
%include default-depend.inc
|
|
39 |
Requires: %{name}
|
|
40 |
%endif
|
|
41 |
|
|
42 |
%prep
|
|
43 |
rm -rf %name-%version
|
|
44 |
mkdir %name-%version
|
|
45 |
%zenity.prep -d %name-%version
|
|
46 |
cd %{_builddir}/%name-%version
|
|
47 |
gzcat %SOURCE0 | tar xf -
|
|
48 |
|
|
49 |
%build
|
|
50 |
export PKG_CONFIG_PATH=%{_pkg_config_path}
|
|
51 |
export PERL=/usr/perl5/bin/perl
|
|
52 |
export CFLAGS="%optflags -I%{_includedir}"
|
|
53 |
export RPM_OPT_FLAGS="$CFLAGS"
|
12728
|
54 |
export LDFLAGS="%_ldflags -lX11"
|
9397
|
55 |
%zenity.build -d %name-%version
|
|
56 |
|
|
57 |
%install
|
|
58 |
%zenity.install -d %name-%version
|
|
59 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir}
|
|
60 |
rm -rf $RPM_BUILD_ROOT%{_mandir}
|
|
61 |
cd %{_builddir}/%name-%version/sun-manpages
|
|
62 |
make install DESTDIR=$RPM_BUILD_ROOT
|
|
63 |
|
|
64 |
%if %build_l10n
|
|
65 |
%else
|
|
66 |
# REMOVE l10n FILES
|
|
67 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
|
|
68 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/zenity/[a-z]*
|
|
69 |
rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/zenity/zenity-[a-z]*.omf
|
|
70 |
%endif
|
|
71 |
|
|
72 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
|
|
73 |
|
|
74 |
%clean
|
|
75 |
rm -rf $RPM_BUILD_ROOT
|
|
76 |
|
|
77 |
%post
|
|
78 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
79 |
echo '/usr/bin/scrollkeeper-update'
|
|
80 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
81 |
|
|
82 |
%postun
|
|
83 |
test -x $BASEDIR/lib/postrun || exit 0
|
|
84 |
( echo 'test -x /usr/bin/scrollkeeper-update || exit 0';
|
|
85 |
echo '/usr/bin/scrollkeeper-update'
|
|
86 |
) | $BASEDIR/lib/postrun -b -u -c JDS
|
|
87 |
|
|
88 |
%files
|
13515
|
89 |
%doc -d zenity-%{zenity.version} README AUTHORS COPYING THANKS
|
|
90 |
%doc(bzip2) -d zenity-%{zenity.version} ChangeLog help/ChangeLog po/ChangeLog NEWS
|
9397
|
91 |
%defattr (-, root, bin)
|
|
92 |
%dir %attr (0755, root, bin) %{_bindir}
|
|
93 |
%{_bindir}/*
|
|
94 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
95 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
13690
|
96 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
9397
|
97 |
%{_datadir}/gnome/help/zenity/C
|
|
98 |
%{_datadir}/omf/zenity/*-C.omf
|
|
99 |
%{_datadir}/zenity
|
|
100 |
%dir %attr(0755, root, bin) %{_mandir}
|
|
101 |
%dir %attr(0755, root, bin) %{_mandir}/*
|
|
102 |
%{_mandir}/*/*
|
|
103 |
|
|
104 |
%if %build_l10n
|
|
105 |
%files l10n
|
|
106 |
%defattr (-, root, bin)
|
|
107 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
108 |
%dir %attr (0755, root, other) %{_datadir}/gnome
|
|
109 |
%attr (-, root, other) %{_datadir}/locale
|
|
110 |
%{_datadir}/gnome/help/zenity/[a-z]*
|
|
111 |
%{_datadir}/omf/zenity/zenity-[a-z]*.omf
|
|
112 |
%endif
|
|
113 |
|
|
114 |
%changelog
|
13690
|
115 |
* Fri Sep 19 2008 - [email protected]
|
|
116 |
- Set permissions on /usr/share/doc.
|
13515
|
117 |
* Wed Sep 10 2008 - [email protected]
|
|
118 |
- Add %doc to %files for new copyright
|
12728
|
119 |
* Tue Jun 24 2008 - [email protected]
|
|
120 |
- Remove "-lgailutil" from LDFLAGS. Root cause found in gtk+: bugzilla 536430.
|
12597
|
121 |
* Thu Jun 05 2008 - [email protected]
|
|
122 |
- Add "-lgailutil" to LDFLAGS so that libgailutil is linked in when
|
|
123 |
libgnomecanvas is linked. libgnomecanvas.so includes some gail functions.
|
10637
|
124 |
* Wed Oct 10 2007 - [email protected]
|
|
125 |
- Remove 'Requires: SUNWgnome-doc-utils' as it is only used during building;
|
|
126 |
change SUNWgnome-doc-utils-devel to SUNWgnome-doc-utils to match change in
|
|
127 |
SUNWgnome-doc-utils.spec.
|
10572
|
128 |
* Fri Sep 28 2007 - [email protected]
|
|
129 |
- delete Nevada X dep
|
9934
|
130 |
* Mon May 21 2007 - [email protected]
|
|
131 |
- change SUNWgnome-panel-devel dep from Requires to BuildRequires
|
9397
|
132 |
* Fri Sep 01 2006 - [email protected]
|
|
133 |
- New Manpage tarball
|
|
134 |
* Sat Aug 12 2006 - [email protected]
|
|
135 |
- delete some unnecessary env variables
|
|
136 |
* Fri Jul 14 2006 - [email protected]
|
|
137 |
- update %post/%postun/etc scripts to support diskless client setup,
|
|
138 |
part of 6448317
|
|
139 |
* Thu Jun 29 2006 - [email protected]
|
|
140 |
- update postrun scripts
|
|
141 |
* Sun Jun 11 2006 - [email protected]
|
|
142 |
- change group from other to bin/sys
|
|
143 |
* Wed May 10 2006 - [email protected]
|
|
144 |
- merge -share pkg(s) into the base pkg(s)
|
|
145 |
* Tue May 09 2006 - [email protected]
|
|
146 |
- Change BuildRequires to SUNWgnome-doc-utils as the -share package has been
|
|
147 |
merged into the base package.
|
|
148 |
* Sun Feb 18 2006 - [email protected]
|
|
149 |
- Update Build/Requires after running check-deps.pl script.
|
|
150 |
* Thu Jan 05 2006 - [email protected]
|
|
151 |
- Remove empty /var/lib/scrollkeeper dir structure.
|
|
152 |
* Fri Dec 02 2005 - [email protected]
|
|
153 |
- Add Build/Requires SUNWgnome-doc-utils/-share for gnome-doc-utils.make.
|
|
154 |
* Tue Nov 29 2005 - [email protected]
|
|
155 |
- remove javahelp stuff
|
|
156 |
* Tue Sep 13 2005 - [email protected]
|
|
157 |
- add unpackaged files
|
|
158 |
* Tue Aug 30 2005 - [email protected]
|
|
159 |
- Remove some help files from %files.
|
|
160 |
* Tue May 24 2005 - [email protected]
|
|
161 |
- Bump to 2.10.
|
|
162 |
* Thu Oct 28 2004 - [email protected]
|
|
163 |
- Updated l10n help tarball and added pt_BR
|
|
164 |
* Wed Oct 06 2004 - [email protected]
|
|
165 |
- added l10n help files section
|
|
166 |
* Sat Oct 02 2004 - [email protected]
|
|
167 |
- added %pkgbuild_postprocess
|
|
168 |
* Mon Aug 23 2004 - [email protected]
|
|
169 |
- s/SUNWpl5u/SUNWperl584usr/
|
|
170 |
* Sat Jun 26 2004 [email protected]
|
|
171 |
- Changed install location to /usr/...
|
|
172 |
* Wed Jun 2 2004 - [email protected]
|
|
173 |
- Added %{_datadir}/locale to install l10n messages
|
|
174 |
* Wed Mar 24 2004 - [email protected]
|
|
175 |
- Added SGML man page integration
|
|
176 |
* Mon Mar 01 2004 - <[email protected]>
|
|
177 |
- define PERL5LIB.
|