author | laca |
Wed, 27 Jul 2011 07:07:26 +0000 | |
changeset 22033 | b70fc8f8e98a |
parent 22032 | 49aca9061101 |
permissions | -rw-r--r-- |
13131 | 1 |
# |
2 |
# spec file for package SUNWncurses |
|
3 |
# |
|
4 |
# includes module(s): ncurses |
|
5 |
# |
|
16817
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
6 |
# Copyright 2009 Sun Microsystems, Inc. |
13131 | 7 |
# This file and all modifications and additions to the pristine |
8 |
# package are under the same license as the package itself. |
|
9 |
# |
|
16434 | 10 |
%define owner jouby |
13131 | 11 |
# |
15835 | 12 |
|
13131 | 13 |
%include Solaris.inc |
14 |
||
15835 | 15 |
%define _basedir /usr |
13155 | 16 |
%define _subdir gnu |
17 |
%define _prefix %{_basedir}/%{_subdir} |
|
18 |
||
15835 | 19 |
%ifarch amd64 sparcv9 |
20 |
%include arch64.inc |
|
21 |
%use ncurses_64 = ncurses.spec |
|
22 |
%endif |
|
23 |
||
24 |
%include base.inc |
|
13131 | 25 |
%use ncurses = ncurses.spec |
26 |
||
27 |
Name: SUNWncurses |
|
22033 | 28 |
IPS_package_name: library/ncurses |
17937
664c0536875a
Added tags IPS_package_name and Meta(info.consolidation)
davelam
parents:
17902
diff
changeset
|
29 |
Meta(info.classification): %{classification_prefix}:System/Libraries |
13131 | 30 |
Summary: A CRT screen handling and optimization package. |
31 |
Version: %{ncurses.version} |
|
32 |
SUNW_BaseDir: %{_basedir} |
|
33 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
34 |
SUNW_Copyright: %{name}.copyright |
|
20331 | 35 |
License: MIT |
13131 | 36 |
|
37 |
%include default-depend.inc |
|
20427 | 38 |
%include gnome-consolidation.inc |
13131 | 39 |
|
40 |
%package devel |
|
41 |
Summary: %{summary} - development files |
|
15237 | 42 |
SUNW_BaseDir: %{_basedir} |
13131 | 43 |
%include default-depend.inc |
20427 | 44 |
%include gnome-consolidation.inc |
13131 | 45 |
|
46 |
%prep |
|
15835 | 47 |
|
13131 | 48 |
rm -rf %name-%version |
49 |
mkdir %name-%version |
|
15835 | 50 |
|
51 |
%ifarch amd64 sparcv9 |
|
52 |
rm -rf %name-%version/%{_arch64} |
|
53 |
mkdir %name-%version/%{_arch64} |
|
54 |
%ncurses_64.prep -d %name-%version/%{_arch64} |
|
55 |
%endif |
|
56 |
||
57 |
mkdir %name-%version/%{base_arch} |
|
58 |
%ncurses.prep -d %name-%version/%{base_arch} |
|
13131 | 59 |
|
60 |
%build |
|
15835 | 61 |
|
13131 | 62 |
export PKG_CONFIG_PATH=%{_pkg_config_path} |
63 |
export CFLAGS="%optflags" |
|
64 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
15835 | 65 |
export LDFLAGS="%_ldflags" |
66 |
%ncurses.build -d %name-%version/%{base_arch} |
|
13155 | 67 |
|
15835 | 68 |
%ifarch amd64 sparcv9 |
69 |
if [ "x`basename $CC`" != xgcc ] |
|
70 |
then |
|
71 |
FLAG64="-xarch=generic64" |
|
72 |
else |
|
73 |
FLAG64="-m64" |
|
74 |
fi |
|
75 |
export LDFLAGS="$FLAG64" |
|
76 |
export CXXFLAGS="-g -m64" |
|
77 |
export CFLAGS="%optflags64" |
|
78 |
export RPM_OPT_FLAGS="$CFLAGS" |
|
79 |
%ncurses_64.build -d %name-%version/%{_arch64} |
|
80 |
%endif |
|
13131 | 81 |
|
82 |
%install |
|
15835 | 83 |
|
84 |
rm -rf $RPM_BUILD_ROOT |
|
85 |
||
86 |
%ifarch amd64 sparcv9 |
|
87 |
%ncurses_64.install -d %name-%version/%{_arch64} |
|
16567 | 88 |
|
89 |
cd $RPM_BUILD_ROOT%{_bindir}/%{_arch64} |
|
90 |
mkdir -p ../../../bin/%{_arch64} |
|
91 |
||
22032 | 92 |
ln -s ncurses5-config ../../../bin/%{_arch64}/gncurses5-config |
93 |
ln -s clear ../../../bin/%{_arch64}/gclear |
|
94 |
ln -s infocmp ../../../bin/%{_arch64}/ginfocmp |
|
95 |
ln -s tic ../../../bin/%{_arch64}/gtic |
|
96 |
ln -s toe ../../../bin/%{_arch64}/gtoe |
|
97 |
ln -s tput ../../../bin/%{_arch64}/gtput |
|
98 |
ln -s tset ../../../bin/%{_arch64}/gtset |
|
99 |
ln -s captoinfo ../../../bin/%{_arch64}/gcaptoinfo |
|
100 |
ln -s infotocap ../../../bin/%{_arch64}/ginfotocap |
|
101 |
ln -s reset ../../../bin/%{_arch64}/greset |
|
16567 | 102 |
|
103 |
||
15835 | 104 |
%endif |
105 |
||
16567 | 106 |
cd $RPM_BUILD_DIR |
15835 | 107 |
%ncurses.install -d %name-%version/%{base_arch} |
13131 | 108 |
|
16567 | 109 |
cd $RPM_BUILD_ROOT%{_prefix}/bin |
110 |
mkdir -p ../../bin |
|
111 |
||
22032 | 112 |
ln -s ncurses5-config ../../bin/gncurses5-config |
113 |
ln -s clear ../../bin/gclear |
|
114 |
ln -s infocmp ../../bin/ginfocmp |
|
115 |
ln -s tic ../../bin/gtic |
|
116 |
ln -s toe ../../bin/gtoe |
|
117 |
ln -s tput ../../bin/gtput |
|
118 |
ln -s tset ../../bin/gtset |
|
119 |
ln -s captoinfo ../../bin/gcaptoinfo |
|
120 |
ln -s infotocap ../../bin/ginfotocap |
|
121 |
ln -s reset ../../bin/greset |
|
16462
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
122 |
|
16199 | 123 |
#install man page |
13131 | 124 |
#rm -rf $RPM_BUILD_ROOT%{_mandir} |
125 |
#cd %{_builddir}/%name-%version/sun-manpages |
|
126 |
#make install DESTDIR=$RPM_BUILD_ROOT |
|
127 |
||
16817
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
128 |
# the sun-color terminfo included in ncurses does not work, |
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
129 |
# copying the one shipped with Sun's curses fixes it: |
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
130 |
cp /usr/share/lib/terminfo/s/sun-color $RPM_BUILD_ROOT%{_datadir}/terminfo/s/ |
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
131 |
|
13131 | 132 |
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} |
133 |
||
134 |
%clean |
|
135 |
rm -rf $RPM_BUILD_ROOT |
|
136 |
||
16462
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
137 |
|
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
138 |
|
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
139 |
|
13131 | 140 |
%files |
141 |
%defattr (-, root, bin) |
|
142 |
%dir %attr (0755, root, bin) %{_libdir} |
|
13144 | 143 |
%dir %attr (0755, root, sys) %{_datadir} |
13131 | 144 |
%dir %attr (0755, root, bin) %{_datadir}/terminfo |
145 |
%dir %attr (0755, root, bin) %{_datadir}/tabset |
|
16462
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
146 |
%dir %attr (0755, root, bin) %{_bindir} |
15835 | 147 |
%{_bindir}/captoinfo |
148 |
%{_bindir}/clear |
|
149 |
%{_bindir}/infocmp |
|
150 |
%{_bindir}/infotocap |
|
151 |
%{_bindir}/ncurses5-config |
|
152 |
%{_bindir}/reset |
|
153 |
%{_bindir}/tic |
|
154 |
%{_bindir}/toe |
|
155 |
%{_bindir}/tput |
|
156 |
%{_bindir}/tset |
|
157 |
%{_libdir}/terminfo |
|
158 |
%{_libdir}/lib*.so |
|
159 |
%{_libdir}/lib*.so.* |
|
13131 | 160 |
%{_datadir}/terminfo/* |
161 |
%{_datadir}/tabset/* |
|
15835 | 162 |
|
22032 | 163 |
%{_basedir}/bin/gncurses5-config |
16567 | 164 |
%{_basedir}/bin/gcaptoinfo |
165 |
%{_basedir}/bin/gclear |
|
166 |
%{_basedir}/bin/ginfocmp |
|
167 |
%{_basedir}/bin/ginfotocap |
|
168 |
%{_basedir}/bin/greset |
|
169 |
%{_basedir}/bin/gtic |
|
170 |
%{_basedir}/bin/gtput |
|
171 |
%{_basedir}/bin/gtset |
|
172 |
%{_basedir}/bin/gtoe |
|
16462
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
173 |
|
15835 | 174 |
%ifarch amd64 sparcv9 |
175 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
176 |
%{_bindir}/%{_arch64}/* |
|
177 |
%{_libdir}/%{_arch64}/lib*.so |
|
178 |
%{_libdir}/%{_arch64}/lib*.so.* |
|
16567 | 179 |
|
22032 | 180 |
%{_basedir}/bin/%{_arch64}/gncurses5-config |
16567 | 181 |
%{_basedir}/bin/%{_arch64}/gcaptoinfo |
182 |
%{_basedir}/bin/%{_arch64}/gclear |
|
183 |
%{_basedir}/bin/%{_arch64}/ginfocmp |
|
184 |
%{_basedir}/bin/%{_arch64}/ginfotocap |
|
185 |
%{_basedir}/bin/%{_arch64}/greset |
|
186 |
%{_basedir}/bin/%{_arch64}/gtic |
|
187 |
%{_basedir}/bin/%{_arch64}/gtput |
|
188 |
%{_basedir}/bin/%{_arch64}/gtset |
|
189 |
%{_basedir}/bin/%{_arch64}/gtoe |
|
190 |
||
15835 | 191 |
%endif |
192 |
||
16199 | 193 |
%dir %attr(0755, root, bin) %{_mandir} |
194 |
%dir %attr(0755, root, bin) %{_mandir}/man1 |
|
195 |
%{_mandir}/man1/* |
|
196 |
%dir %attr(0755, root, bin) %{_mandir}/man3 |
|
197 |
%{_mandir}/man3/* |
|
198 |
%dir %attr(0755, root, bin) %{_mandir}/man5 |
|
199 |
%{_mandir}/man5/* |
|
200 |
%dir %attr(0755, root, bin) %{_mandir}/man7 |
|
201 |
%{_mandir}/man7/* |
|
202 |
||
203 |
%doc -d %{base_arch}/ncurses-%version ANNOUNCE AUTHORS MANIFEST NEWS README |
|
18169 | 204 |
%dir %attr (0755, root, other) %{_datadir}/doc |
13131 | 205 |
|
206 |
%files devel |
|
15835 | 207 |
|
208 |
%define _preincludedir /usr/include/ncurses |
|
209 |
||
13131 | 210 |
%defattr (-, root, bin) |
15835 | 211 |
%dir %attr (0755, root, bin) %{_preincludedir} |
212 |
%{_preincludedir}/* |
|
213 |
||
13131 | 214 |
%changelog |
22032 | 215 |
* Mon Jul 25 2011 - [email protected] |
216 |
- fix bug 7031693 |
|
18169 | 217 |
* Thu Jun 24 2010 - [email protected] |
218 |
- add missing directory permissions root:bin -> root:other for /usr/gnu/share/doc |
|
16817
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
219 |
* Tue Oct 20 2009 - [email protected] |
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
220 |
- copy the sun-color terminfo from /usr/share/lib |
3f1d922c9f57
* restore Laca's change which i recovered by mistake in below:
jouby
parents:
16567
diff
changeset
|
221 |
because the one that comes with ncurses does not work. |
16567 | 222 |
* Tru Sep 15 2009 - [email protected] |
223 |
- fix Bug 11335 - Installation of <SUNWncurses> failed |
|
16462
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
224 |
* Tur Sep 03 2009 - [email protected] |
a693406d8b0a
fixed Bug 11165 :move ncurses bin programs under /usr/gnu/bin to /usr/bin
jouby
parents:
16434
diff
changeset
|
225 |
- fix bug 11165 move ncurses bin programs under /usr/gnu/bin need move to /usr/bin |
16199 | 226 |
* Mon Aug 03 2009 - [email protected] |
227 |
- fix 10426 SUNWncurses missed man page and docs |
|
16068 | 228 |
* Mon Jul 2002009 - [email protected] |
229 |
- Bump to 5.7 |
|
15835 | 230 |
* Tue Jue 02 2009 - [email protected] |
231 |
- fix bug 8971 provide 64bit lib |
|
15522 | 232 |
* Mon Mar 30 2009 - [email protected] |
233 |
- change the owner to yuntong.jin |
|
15237 | 234 |
* Thu Feb 26 2009 - [email protected] |
235 |
- correct basedir setting to fix CR6760759. |
|
13155 | 236 |
* Mon Aug 18 2008 - [email protected] |
237 |
- use /usr/gnu as prefix |
|
13144 | 238 |
* Sat Aug 16 2008 - [email protected] |
239 |
- Add (0755, root, sys) %{_datadir} to fix conflict issue. |
|
240 |
* Tur Jul 17 2008 - [email protected] |
|
13131 | 241 |
- Initial spec file created. |
17947 | 242 |
|
20434 | 243 |
|
20663 | 244 |
|
20980 | 245 |