SUNWsigcpp.spec
author xz159989
Sun, 02 Mar 2008 05:48:33 +0000
changeset 11773 b0c56dfc4139
parent 11624 1147178b8480
child 11935 fa2b34838439
permissions -rw-r--r--
2008-03-02 simon.zheng <[email protected]> * SUNWcairomm.spec: * SUNWglibmm.spec: * SUNWgnome-power-manager.spec: * SUNWgtkmm.spec: * SUNWlibgc.spec: * SUNWlibgmime.spec: * SUNWsigcpp.spec: Correct package version number.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     1
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     2
# spec file for package SUNWsigcpp
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     3
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     4
# includes module(s): libsigc++
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     5
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     6
# # Copyright 2008 Sun Microsystems, Inc.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     7
# This file and all modifications and additions to the pristine
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     8
# package are under the same license as the package itself.
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
     9
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    10
# Owner: elaine
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    11
#
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    12
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    13
%include Solaris.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    14
%use sigcpp = sigcpp.spec
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    15
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    16
Name:                    SUNWsigcpp
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    17
Summary:                 Libsigc++ - a library that implements typesafe callback system for standard C++ 
11773
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    18
Version:                 %{sigcpp.version}
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    19
SUNW_BaseDir:            %{_basedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    20
BuildRoot:               %{_tmppath}/%{name}-%{version}-build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    21
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    22
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    23
Requires: SUNWlibC
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    24
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    25
%package devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    26
Summary:                 %{summary} - development files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    27
SUNW_BaseDir:            %{_basedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    28
%include default-depend.inc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    29
Requires: %name
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    30
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    31
%prep
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    32
rm -rf %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    33
mkdir %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    34
%sigcpp.prep -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    35
cd %{_builddir}/%name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    36
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    37
%build
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    38
%if %cc_is_gcc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    39
export CXXFLAGS="%{gcc_cxx_optflags}"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    40
%else
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    41
export CFLAGS="%optflags"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    42
export CXX="${CXX} -norunpath"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    43
export CXXFLAGS="%cxx_optflags"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    44
%endif
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    45
export LDFLAGS="%_ldflags"
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    46
%sigcpp.build -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    47
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    48
%install
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    49
rm -rf $RPM_BUILD_ROOT
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    50
%sigcpp.install -d %name-%version
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    51
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    52
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    53
%clean
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    54
rm -rf $RPM_BUILD_ROOT
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    55
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    56
%files
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    57
%defattr (-, root, bin)
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    58
%dir %attr (0755, root, bin) %{_libdir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    59
%{_libdir}/lib*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    60
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    61
%files devel
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    62
%defattr (-, root, bin)
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    63
%dir %attr (0755, root, bin) %{_libdir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    64
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    65
%{_libdir}/pkgconfig/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    66
%{_libdir}/sigc++*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    67
%dir %attr (0755, root, sys) %{_datadir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    68
%dir %attr (0755, root, other) %{_datadir}/doc
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    69
%{_datadir}/doc/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    70
%dir %attr (0755, root, bin) %{_includedir}
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    71
%{_includedir}/*
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    72
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    73
%changelog
11773
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    74
* Sun Mar 02 2008 - [email protected]
b0c56dfc4139 2008-03-02 simon.zheng <[email protected]>
xz159989
parents: 11624
diff changeset
    75
- Correct package version number.
11624
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    76
* Fri Feb 01 2008 - [email protected]
1147178b8480 2008-02-12 Ghee Teo <[email protected]>
gheet
parents:
diff changeset
    77
- create, split from SFEsigcpp.spec