specs/SUNWlibart.spec
author Jon Tibble <meths@btinternet.com>
Sat Oct 06 16:11:50 2012 +0100 (2012-10-06)
branchs11express-2010-11
changeset 22109 db10202d5f6d
parent 17937 664c0536875a
child 20368 486a51627a23
permissions -rw-r--r--
Added tag oi_151a_prestable7 for changeset 25dee50cecca
     1 #
     2 # spec file for package SUNWlibart
     3 #
     4 # includes module(s): libart_lgpl
     5 #
     6 # Copyright 2009 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 %define owner erwannc
    11 #
    12 %include Solaris.inc
    13 %include base.inc
    14 
    15 %use libart_lgpl = libart_lgpl.spec
    16 
    17 Name:                    SUNWlibart
    18 IPS_package_name:        image/library/libart
    19 Meta(info.classification): %{classification_prefix}:Desktop (GNOME)/Libraries
    20 Summary:                 GNOME library for high-performace 2D graphics
    21 Version:                 %{libart_lgpl.version}
    22 Source:                  %{name}-manpages-0.1.tar.gz
    23 SUNW_BaseDir:            %{_basedir}
    24 SUNW_Copyright:          %{name}.copyright
    25 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
    26 
    27 %include default-depend.inc
    28 Requires: SUNWlibms
    29 BuildRequires: SUNWlibm
    30 
    31 %package devel		
    32 Summary:                 %{summary} - development files
    33 SUNW_BaseDir:            %{_basedir}
    34 %include default-depend.inc
    35 #Requires: SUNWlibart
    36 
    37 %prep
    38 rm -rf %name-%version
    39 mkdir %name-%version
    40 
    41 mkdir %name-%version/%{base_arch}
    42 %libart_lgpl.prep -d %name-%version/%{base_arch}
    43 
    44 cd %{_builddir}/%name-%version
    45 gzcat %SOURCE0 | tar xf -
    46 
    47 %build
    48 PKG_CONFIG_DISABLE_UNINSTALLED=
    49 unset PKG_CONFIG_DISABLE_UNINSTALLED
    50 
    51 %libart_lgpl.build -d %name-%version/%{base_arch}
    52 
    53 %install
    54 rm -rf $RPM_BUILD_ROOT
    55 
    56 %libart_lgpl.install -d %name-%version/%{base_arch}
    57 
    58 rm -rf $RPM_BUILD_ROOT%{_mandir}
    59 cd %{_builddir}/%name-%version/sun-manpages
    60 make install DESTDIR=$RPM_BUILD_ROOT
    61 
    62 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    63 
    64 %clean
    65 rm -rf $RPM_BUILD_ROOT
    66 
    67 %files
    68 %doc -d  %{base_arch} libart_lgpl-%{libart_lgpl.version}/README
    69 %doc -d %{base_arch} libart_lgpl-%{libart_lgpl.version}/AUTHORS
    70 %doc(bzip2) -d %{base_arch} libart_lgpl-%{libart_lgpl.version}/ChangeLog
    71 %doc(bzip2) -d %{base_arch} libart_lgpl-%{libart_lgpl.version}/COPYING
    72 %doc(bzip2) -d %{base_arch} libart_lgpl-%{libart_lgpl.version}/NEWS
    73 %dir %attr (0755, root, other) %{_datadir}/doc
    74 %defattr (-, root, bin)
    75 %dir %attr (0755, root, bin) %{_libdir}
    76 %{_libdir}/lib*.so*
    77 %dir %attr (0755, root, sys) %{_datadir}
    78 
    79 %files devel
    80 %defattr (-, root, bin)
    81 %dir %attr (0755, root, bin) %dir %{_libdir}
    82 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    83 %{_libdir}/pkgconfig/*
    84 %dir %attr (0755, root, bin) %dir %{_bindir}
    85 %{_bindir}/libart2-config
    86 %dir %attr (0755, root, bin) %dir %{_includedir}
    87 %{_includedir}/*
    88 %dir %attr (0755, root, sys) %dir %{_datadir}
    89 %dir %attr(0755, root, bin) %{_mandir}
    90 %dir %attr(0755, root, bin) %{_mandir}/man3
    91 %{_mandir}/man3/*
    92 %dir %attr(0755, root, bin) %{_mandir}/man1
    93 %{_mandir}/man1/libart2-config.1
    94 
    95 %changelog
    96 * Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
    97 - Updated BuildRequires to fit SourceJuicer.
    98 * Tue Mar 31 2009 - dave.lin@sun.com
    99 - initial version(split from SUNWgnome-base-libs)