1 # 2 # spec file for package SUNWlibxmlpp 3 # 4 # Copyright (c) 2008 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 %define owner kevmca 9 # 10 11 %include Solaris.inc 12 13 %define OSR 9812:2.6 14 15 Name: SUNWlibxmlpp 16 License: LGPLv2 17 Version: 2.26.1 18 Summary: C++ Wrapper for the libxml2 XML Library 19 Source: http://ftp.gnome.org/pub/GNOME/sources/libxml++/2.26/libxml++-%{version}.tar.bz2 20 SUNW_Basedir: %{_basedir} 21 SUNW_Copyright: %{name}.copyright 22 URL: http://libxmlplusplus.sourceforge.net/ 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 25 %include default-depend.inc 26 Requires: SUNWlxmlr 27 Requires: SUNWglibmm 28 Requires: SUNWlxml 29 Requires: SUNWlibmsr 30 Requires: SUNWsigcpp 31 Requires: SUNWzlib 32 BuildRequires: SUNWsigcpp-devel 33 BuildRequires: SUNWglibmm-devel 34 35 %package devel 36 Summary: %{summary} - development files 37 SUNW_BaseDir: %{_basedir} 38 %include default-depend.inc 39 Requires: %name 40 Requires: SUNWglibmm-devel 41 42 %description 43 libxml++ is a C++ API for the popular libxml XML parser, written in C. 44 libxml is famous for its high performance and compliance to standard 45 specifications, but its C API is quite difficult even for common tasks. 46 47 %prep 48 %setup -q -n libxml++-%version 49 50 %build 51 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 52 if test "x$CPUS" = "x" -o $CPUS = 0; then 53 CPUS=1 54 fi 55 56 %if %cc_is_gcc 57 %else 58 export CXX="${CXX} -norunpath" 59 %endif 60 export CXXFLAGS="%cxx_optflags" 61 export LDFLAGS="%_ldflags" 62 63 ./configure --prefix=%{_prefix} \ 64 --mandir=%{_mandir} \ 65 --libdir=%{_libdir} \ 66 --libexecdir=%{_libexecdir} \ 67 --sysconfdir=%{_sysconfdir} \ 68 --disable-python 69 70 make -j$CPUS 71 72 %install 73 rm -rf $RPM_BUILD_ROOT 74 make install DESTDIR=$RPM_BUILD_ROOT 75 rm -f $RPM_BUILD_ROOT%{_libdir}/lib*a 76 77 %clean 78 rm -rf $RPM_BUILD_ROOT 79 80 %files 81 %doc COPYING AUTHORS NEWS ChangeLog README 82 %dir %attr (0755, root, sys) %{_datadir} 83 %dir %attr (0755, root, other) %{_datadir}/doc 84 %defattr (-, root, bin) 85 %dir %attr (0755, root, bin) %{_libdir} 86 %{_libdir}/lib*.so* 87 88 %files devel 89 %defattr (-, root, bin) 90 %dir %attr (0755, root, bin) %{_libdir} 91 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 92 %{_libdir}/libxml*/include/* 93 %{_libdir}/pkgconfig/* 94 %dir %attr (0755, root, sys) %{_datadir} 95 %dir %attr (0755, root, other) %{_datadir}/doc 96 %{_datadir}/doc/libxml* 97 %dir %attr (0755, root, bin) %{_includedir} 98 %{_includedir}/* 99 100 %changelog 101 * Tue Sep 01 2009 - dave.lin@sun.com 102 - Bump to 2.26.1 103 * Tue Mar 17 2009 - dave.lin@sun.com 104 - Bump to 2.26.0 105 * Fri Mar 13 2009 - dave.lin@sun.com 106 - Bump to 2.24.3 107 * Thu Sep 25 2008 - dave.lin@sun.com 108 - Define include dir under %{_libdir}. 109 * Wed Sep 24 2008 - dave.lin@sun.com 110 - Remove the following line in devel pkg which is already defined in base pkg. 111 %{_libdir}/libxml++* 112 * Tue Sep 23 2008 - dave.lin@sun.com 113 - Define %{_datadir}/doc/libxml* explicitly to get rid of licensing/copyright files in devel pkg. 114 * Thu Sep 11 2008 - kevin.mcareavey@sun.com 115 - Add %doc to %files for copyright 116 * Wed Aug 27 2008 - kevin.mcareavey@sun.com 117 - Fixed source url 118 * Tue Aug 26 2008 - kevin.mcareavey@sun.com 119 - Cleanup for spec-files-other integration 120 - Bump to 2.23.2 121 * Fri Aug 17 2007 - trisk@acm.jhu.edu 122 - Bump to 2.19.1 123 * Fri Jun 30 2006 - laca@sun.com 124 - bump to 2.14.0 125 - rename to SFElibxmlpp 126 - update file attributes 127 * Thu Nov 17 2005 - laca@sun.com 128 - create 129 130