author | elaine |
Tue, 16 Sep 2008 10:29:30 +0000 | |
changeset 13605 | 8d89870f3a42 |
parent 13005 | e51ff802ea0e |
child 13652 | bfa67b0f57ab |
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 |
# |
|
10 |
# Owner: elaine |
|
11 |
# |
|
12 |
||
13 |
%include Solaris.inc |
|
14 |
%use sigcpp = sigcpp.spec |
|
15 |
||
16 |
Name: SUNWsigcpp |
|
17 |
Summary: Libsigc++ - a library that implements typesafe callback system for standard C++ |
|
11773 | 18 |
Version: %{sigcpp.version} |
13005 | 19 |
Source: %{name}-manpages-0.1.tar.gz |
11624 | 20 |
SUNW_BaseDir: %{_basedir} |
11935
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11773
diff
changeset
|
21 |
SUNW_Copyright: %{name}.copyright |
11624 | 22 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
23 |
||
24 |
%include default-depend.inc |
|
25 |
Requires: SUNWlibC |
|
26 |
||
27 |
%package devel |
|
28 |
Summary: %{summary} - development files |
|
29 |
SUNW_BaseDir: %{_basedir} |
|
30 |
%include default-depend.inc |
|
31 |
Requires: %name |
|
32 |
||
33 |
%prep |
|
34 |
rm -rf %name-%version |
|
35 |
mkdir %name-%version |
|
36 |
%sigcpp.prep -d %name-%version |
|
37 |
cd %{_builddir}/%name-%version |
|
13005 | 38 |
gzcat %SOURCE0 | tar xf - |
11624 | 39 |
|
40 |
%build |
|
41 |
%if %cc_is_gcc |
|
42 |
export CXXFLAGS="%{gcc_cxx_optflags}" |
|
43 |
%else |
|
44 |
export CFLAGS="%optflags" |
|
45 |
export CXX="${CXX} -norunpath" |
|
46 |
export CXXFLAGS="%cxx_optflags" |
|
47 |
%endif |
|
48 |
export LDFLAGS="%_ldflags" |
|
49 |
%sigcpp.build -d %name-%version |
|
50 |
||
51 |
%install |
|
52 |
rm -rf $RPM_BUILD_ROOT |
|
53 |
%sigcpp.install -d %name-%version |
|
54 |
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a |
|
55 |
||
13005 | 56 |
# install man page |
57 |
rm -rf $RPM_BUILD_ROOT%{_mandir} |
|
58 |
cd %{_builddir}/%name-%version/sun-manpages |
|
59 |
make install DESTDIR=$RPM_BUILD_ROOT |
|
60 |
||
11624 | 61 |
%clean |
62 |
rm -rf $RPM_BUILD_ROOT |
|
63 |
||
64 |
%files |
|
65 |
%defattr (-, root, bin) |
|
66 |
%dir %attr (0755, root, bin) %{_libdir} |
|
67 |
%{_libdir}/lib* |
|
13605 | 68 |
%dir %attr (0755, root, sys) %{_datadir} |
69 |
%doc -d libsigc++-%{sigcpp.version} AUTHORS README |
|
70 |
%doc(bzip2) -d libsigc++-%{sigcpp.version} COPYING NEWS |
|
71 |
%doc(bzip2) -d libsigc++-%{sigcpp.version} ChangeLog |
|
72 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
11624 | 73 |
|
74 |
%files devel |
|
75 |
%defattr (-, root, bin) |
|
76 |
%dir %attr (0755, root, bin) %{_libdir} |
|
77 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig |
|
78 |
%{_libdir}/pkgconfig/* |
|
79 |
%{_libdir}/sigc++* |
|
80 |
%dir %attr (0755, root, sys) %{_datadir} |
|
81 |
%dir %attr (0755, root, other) %{_datadir}/doc |
|
82 |
%{_datadir}/doc/* |
|
83 |
%dir %attr (0755, root, bin) %{_includedir} |
|
84 |
%{_includedir}/* |
|
13005 | 85 |
%dir %attr(0755, root, bin) %{_mandir} |
86 |
%dir %attr(0755, root, bin) %{_mandir}/* |
|
87 |
%{_mandir}/*/* |
|
11624 | 88 |
|
89 |
%changelog |
|
13605 | 90 |
* Tue Sep 16 2008 - [email protected] |
91 |
- Add %doc to %files for new copyright. |
|
13005 | 92 |
* Mon Aug 04 2008 - [email protected] |
93 |
- Add manpage. |
|
11935
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11773
diff
changeset
|
94 |
* Thu Mar 27 2008 - [email protected] |
fa2b34838439
Add SUNWsigcpp and SUNWgnome-meeting copyright files.
elaine
parents:
11773
diff
changeset
|
95 |
- Add file SUNWsigcpp.copyright. |
11773 | 96 |
* Sun Mar 02 2008 - [email protected] |
97 |
- Correct package version number. |
|
11624 | 98 |
* Fri Feb 01 2008 - [email protected] |
99 |
- create, split from SFEsigcpp.spec |