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