author | davelam |
Wed, 24 Feb 2010 04:10:23 +0000 | |
branch | gnome-2-28 |
changeset 18642 | 478b5460cc36 |
parent 16434 | f21f22550fe9 |
permissions | -rw-r--r-- |
11624 | 1 |
# |
2 |
# spec file for package SUNWsigcpp |
|
3 |
# |
|
4 |
# includes module(s): libsigc++ |
|
5 |
# |
|
6 |
# # Copyright 2008 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 |
# |
|
16434 | 10 |
%define owner elaine |
11624 | 11 |
# |
12 |
||
13 |
%include Solaris.inc |
|
15825 | 14 |
|
15 |
%ifarch amd64 sparcv9 |
|
16 |
%include arch64.inc |
|
17 |
%use sigcpp_64 = sigcpp.spec |
|
18 |
%endif |
|
19 |
||
20 |
%include base.inc |
|
11624 | 21 |
%use sigcpp = sigcpp.spec |
22 |
||
23 |
Name: SUNWsigcpp |
|
24 |
Summary: Libsigc++ - a library that implements typesafe callback system for standard C++ |
|
11773 | 25 |
Version: %{sigcpp.version} |
13005 | 26 |
Source: %{name}-manpages-0.1.tar.gz |
11624 | 27 |
SUNW_BaseDir: %{_basedir} |
11935
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11773
diff
changeset
|
28 |
SUNW_Copyright: %{name}.copyright |
11624 | 29 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
30 |
||
31 |
%include default-depend.inc |
|
32 |
Requires: SUNWlibC |
|
33 |
||
34 |
%package devel |
|
35 |
Summary: %{summary} - development files |
|
36 |
SUNW_BaseDir: %{_basedir} |
|
37 |
%include default-depend.inc |
|
38 |
Requires: %name |
|
39 |
||
40 |
%prep |
|
41 |
rm -rf %name-%version |
|
42 |
mkdir %name-%version |
|
15825 | 43 |
|
44 |
%ifarch amd64 sparcv9 |
|
45 |
mkdir %name-%version/%{_arch64} |
|
46 |
%sigcpp_64.prep -d %name-%version/%{_arch64} |
|
47 |
%endif |
|
48 |
||
49 |
mkdir %name-%version/%{base_arch} |
|
50 |
%sigcpp.prep -d %name-%version/%{base_arch} |
|
11624 | 51 |
cd %{_builddir}/%name-%version |
13005 | 52 |
gzcat %SOURCE0 | tar xf - |
11624 | 53 |
|
54 |
%build |
|
15825 | 55 |
|
56 |
%ifarch amd64 sparcv9 |
|
57 |
export CFLAGS="%optflags64" |
|
58 |
export CXX="${CXX} -norunpath -features=tmplife" |
|
59 |
export CXXFLAGS="%cxx_optflags64" |
|
60 |
export LDFLAGS="$FLAG64" |
|
61 |
%sigcpp_64.build -d %name-%version/%{_arch64} |
|
62 |
%endif |
|
63 |
||
11624 | 64 |
export CFLAGS="%optflags" |
15825 | 65 |
export CXX="${CXX} -norunpath -features=tmplife" |
11624 | 66 |
export CXXFLAGS="%cxx_optflags" |
67 |
export LDFLAGS="%_ldflags" |
|
15825 | 68 |
%sigcpp.build -d %name-%version/%{base_arch} |
11624 | 69 |
|
70 |
%install |
|
71 |
rm -rf $RPM_BUILD_ROOT |
|
15825 | 72 |
|
73 |
%sigcpp.install -d %name-%version/%{base_arch} |
|
16393 | 74 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/libsigc-2.0/examples |
11624 | 75 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a |
76 |
||
15825 | 77 |
%ifarch amd64 sparcv9 |
78 |
%sigcpp_64.install -d %name-%version/%{_arch64} |
|
79 |
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/libsigc-2.0/examples/%{_arch64} |
|
80 |
rm -f $RPM_BUILD_ROOT%{_libdir}/%{_arch64}/lib*a |
|
81 |
%endif |
|
82 |
||
83 |
||
13005 | 84 |
# install man page |
85 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
86 |
cd %{_builddir}/%name-%version/sun-manpages |
|
87 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
88 |
||
11624 | 89 |
%clean |
90 |
rm -rf $RPM_BUILD_ROOT |
|
91 |
||
92 |
%files |
|
93 |
%defattr (-, root, bin) |
|
94 |
%dir %attr (0755, root, bin) %{_libdir} |
|
95 |
%{_libdir}/lib* |
|
15825 | 96 |
%ifarch amd64 sparcv9 |
97 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
98 |
%{_libdir}/%{_arch64}/lib* |
|
99 |
%endif |
|
13605 | 100 |
%dir %attr (0755, root, sys) %{_datadir} |
16393 | 101 |
%{_datadir}/devhelp/books/libsigc++-2.0/libsigc++-2.0.devhelp2 |
15825 | 102 |
%doc -d %{base_arch}/libsigc++-%{sigcpp.version} AUTHORS README |
103 |
%doc(bzip2) -d %{base_arch}/libsigc++-%{sigcpp.version} COPYING NEWS |
|
104 |
%doc(bzip2) -d %{base_arch}/libsigc++-%{sigcpp.version} ChangeLog |
|
13605 | 105 |
%dir %attr (0755, root, other) %{_datadir}/doc |
11624 | 106 |
|
107 |
%files devel |
|
108 |
%defattr (-, root, bin) |
|
109 |
%dir %attr (0755, root, bin) %{_libdir} |
|
110 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
111 |
%{_libdir}/pkgconfig/* |
|
112 |
%{_libdir}/sigc++* |
|
15825 | 113 |
%ifarch amd64 sparcv9 |
114 |
%dir %attr (0755, root, bin) %{_libdir}/%{_arch64} |
|
115 |
%dir %attr (0755, root, other) %{_libdir}/%{_arch64}/pkgconfig |
|
116 |
%{_libdir}/%{_arch64}/pkgconfig/* |
|
117 |
%{_libdir}/%{_arch64}/sigc++* |
|
118 |
%endif |
|
11624 | 119 |
%dir %attr (0755, root, sys) %{_datadir} |
120 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
13652 | 121 |
%{_datadir}/doc/libsigc* |
11624 | 122 |
%dir %attr (0755, root, bin) %{_includedir} |
123 |
%{_includedir}/* |
|
13005 | 124 |
%dir %attr(0755, root, bin) %{_mandir} |
125 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
126 |
%{_mandir}/*/* |
|
11624 | 127 |
|
128 |
%changelog |
|
13652 | 129 |
* Thu Sep 18 2008 - [email protected] |
130 |
- Fix install files conflict. |
|
13605 | 131 |
* Tue Sep 16 2008 - [email protected] |
132 |
- Add %doc to %files for new copyright. |
|
13005 | 133 |
* Mon Aug 04 2008 - [email protected] |
134 |
- Add manpage. |
|
11935
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11773
diff
changeset
|
135 |
* Thu Mar 27 2008 - [email protected] |
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11773
diff
changeset
|
136 |
- Add file SUNWsigcpp.copyright. |
11773 | 137 |
* Sun Mar 02 2008 - [email protected] |
138 |
- Correct package version number. |
|
11624 | 139 |
* Fri Feb 01 2008 - [email protected] |
140 |
- create, split from SFEsigcpp.spec |