11624
|
1 |
#
|
|
2 |
# spec file for package SUNWcairomm
|
|
3 |
#
|
|
4 |
# includes module(s): cairomm
|
|
5 |
#
|
|
6 |
%include Solaris.inc
|
|
7 |
%use cairomm = cairomm.spec
|
|
8 |
|
|
9 |
Name: SUNWcairomm
|
|
10 |
Summary: cairomm - C++ API for the Cairo Graphics Library
|
|
11 |
Version: %{default_pkg_version}
|
|
12 |
#URL: http://cairographics.org/cairomm/
|
|
13 |
#Source: http://cairographics.org/releases/cairomm-%{version}.tar.gz
|
|
14 |
SUNW_BaseDir: %{_basedir}
|
|
15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
16 |
%include default-depend.inc
|
|
17 |
Requires: SUNWgnome-base-libs
|
|
18 |
BuildRequires: SUNWgnome-base-libs-devel
|
|
19 |
Requires: SUNWsigcpp
|
|
20 |
BuildRequires: SUNWsigcpp-devel
|
|
21 |
|
|
22 |
%package devel
|
|
23 |
Summary: %{summary} - development files
|
|
24 |
SUNW_BaseDir: %{_basedir}
|
|
25 |
%include default-depend.inc
|
|
26 |
Requires: %name
|
|
27 |
Requires: SUNWgnome-base-libs-devel
|
|
28 |
|
|
29 |
%prep
|
|
30 |
rm -rf %name-%version
|
|
31 |
mkdir %name-%version
|
|
32 |
%cairomm.prep -d %name-%version
|
|
33 |
cd %{_builddir}/%name-%version
|
|
34 |
|
|
35 |
%build
|
|
36 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
37 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
38 |
CPUS=1
|
|
39 |
fi
|
|
40 |
|
|
41 |
%if %cc_is_gcc
|
|
42 |
%else
|
|
43 |
export CXX="${CXX} -norunpath"
|
|
44 |
%endif
|
|
45 |
export CXXFLAGS="%cxx_optflags"
|
|
46 |
export PERL_PATH=/usr/perl5/bin/perl
|
|
47 |
%cairomm.build -d %name-%version
|
|
48 |
|
|
49 |
%install
|
|
50 |
rm -rf $RPM_BUILD_ROOT
|
|
51 |
%cairomm.install -d %name-%version
|
|
52 |
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
|
|
53 |
find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
|
|
54 |
|
|
55 |
%clean
|
|
56 |
#rm -rf $RPM_BUILD_ROOT
|
|
57 |
|
|
58 |
%files
|
|
59 |
%defattr (-, root, bin)
|
|
60 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
61 |
%{_libdir}/lib*
|
|
62 |
|
|
63 |
%files devel
|
|
64 |
%defattr (-, root, bin)
|
|
65 |
%dir %attr (0755, root, bin) %{_libdir}
|
|
66 |
%dir %attr (0755, root, other) %{_libdir}/pkgconfig
|
|
67 |
%{_libdir}/pkgconfig/*
|
|
68 |
%dir %attr (0755, root, sys) %{_datadir}
|
|
69 |
%dir %attr (0755, root, other) %{_datadir}/doc
|
|
70 |
%{_datadir}/doc/*
|
|
71 |
%dir %attr (0755, root, bin) %{_includedir}
|
|
72 |
%{_includedir}/*
|
|
73 |
|
|
74 |
%changelog
|
|
75 |
* Fri Jan 08 2008 - [email protected]
|
|
76 |
- Modified SFEcairomm.spec to make SUNWcairomm.spec and cairomm.spec
|
|
77 |
* Mon Nov 12 2007 - [email protected]
|
|
78 |
- Bump to 1.4.6.
|
|
79 |
* Wed Sep 19 2007 - [email protected]
|
|
80 |
- Bump to 1.4.4
|
|
81 |
* Fri Aug 17 2007 - [email protected]
|
|
82 |
- Bump to 1.4.2
|
|
83 |
* Sun Feb 25 2007 - [email protected]
|
|
84 |
- create
|