specs/SUNWliblouis.spec
author yippi
Thu May 31 20:16:52 2012 +0000 (2012-05-31)
changeset 22481 1ff6784d9b6f
parent 21664 7341866cb871
child 22283 75c456d9a836
permissions -rw-r--r--
2012-05-31 Brian Cameron <brian.cameron@oracle.com>

* base-specs/shared-mime-info.spec: Bump to 1.0.
* base-specs/nautilus.spec, base-specs/pulseaudio.spec,
base-specs/gnome-settings-daemon.spec, specs/SUNWdconf.spec:
Add patch comments.
* base-specs/gnome-panel.spec: Add --disable-telepathy-glib so
it does not build with this module we do not deliver.
     1 # Copyright 2009, 2011 Sun Microsystems, Inc.
     2 # This file and all modifications and additions to the pristine
     3 # package are under the same license as the package itself.
     4 
     5 %include Solaris.inc
     6 
     7 %define pythonver 2.6
     8 %use liblouis = liblouis.spec
     9 
    10 Summary:	   %liblouis.summary
    11 Name:              SUNWliblouis
    12 IPS_package_name:  library/liblouis
    13 Meta(info.classification): %{classification_prefix}:System/Libraries
    14 Version:           %{liblouis.version}
    15 SUNW_BaseDir:      %{_basedir}
    16 SUNW_Copyright:    %{name}.copyright
    17 License:           %{liblouis.license}
    18 BuildRoot:         %{_tmppath}/%{name}-%{liblouis.version}-build
    19 %include gnome-incorporation.inc
    20 %include default-depend.inc
    21 
    22 %package devel
    23 Summary:           %{summary} - development files
    24 SUNW_BaseDir:      %{_basedir}
    25 %include default-depend.inc
    26 Requires:          %{name}
    27 
    28 %prep
    29 rm -rf %name-%liblouis.version
    30 mkdir %name-%liblouis.version
    31 %liblouis.prep -d %name-%liblouis.version
    32 cd %{_builddir}/%name-%liblouis.version
    33 ls ../../SOURCES
    34 gzcat ../../SOURCES/%{liblouis.name}-%{liblouis.version}.tar.gz | tar xf -
    35 
    36 %build
    37 export PYTHON="/usr/bin/python%{pythonver}"
    38 %liblouis.build -d %name-%liblouis.version
    39 
    40 %install
    41 export PYTHON="/usr/bin/python%{pythonver}"
    42 %liblouis.install -d %name-%liblouis.version
    43 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
    44 
    45 # Move demo to demo directory.
    46 #
    47 install -d $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin
    48 mv $RPM_BUILD_ROOT%{_bindir}/* $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin
    49 
    50 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
    51 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
    52 
    53 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{liblouis.version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    54 
    55 %clean
    56 rm -rf $RPM_BUILD_ROOT
    57 
    58 %post
    59 ( echo 'PATH=/usr/bin:/usr/sfw/bin; export PATH' ;
    60   echo 'infos="';
    61   echo 'liblouis.info' ;
    62   echo '"';
    63   echo 'retval=0';
    64   echo 'for info in $infos; do';
    65   echo '  install-info --info-dir=%{_infodir} %{_infodir}/$info || retval=1';
    66   echo 'done';
    67   echo 'exit $retval' ) | $PKG_INSTALL_ROOT/usr/lib/postrun -b -c JDS
    68 
    69 %preun
    70 ( echo 'PATH=/usr/bin:/usr/sfw/bin; export PATH' ;
    71   echo 'infos="';
    72   echo 'liblouis.info' ;
    73   echo '"';
    74   echo 'for info in $infos; do';
    75   echo '  install-info --info-dir=%{_infodir} --delete %{_infodir}/$info';
    76   echo 'done';
    77   echo 'exit 0' ) | $PKG_INSTALL_ROOT/usr/lib/postrun -b -c JDS
    78 
    79 %files
    80 %doc -d liblouis-%{liblouis.version} AUTHORS README
    81 %doc(bzip2) -d liblouis-%{liblouis.version} ChangeLog
    82 %doc(bzip2) -d liblouis-%{liblouis.version} COPYING COPYING.LIB
    83 %doc(bzip2) -d liblouis-%{liblouis.version} NEWS
    84 %defattr (-, root, bin)
    85 %dir %attr (0755, root, bin) %{_bindir}
    86 %dir %attr (0755, root, bin) %dir %{_prefix}/demo
    87 %dir %attr (0755, root, bin) %dir %{_prefix}/demo/jds
    88 %dir %attr (0755, root, bin) %dir %{_prefix}/demo/jds/bin
    89 %{_prefix}/demo/jds/bin/*
    90 %dir %attr (0755, root, bin) %{_libdir}
    91 %{_libdir}/liblouis*
    92 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    93 %{_libdir}/pkgconfig/liblouis.pc
    94 %dir %attr (0755, root, bin) %{_infodir}
    95 %defattr (0444, root, bin)
    96 %{_infodir}/liblouis.info
    97 %dir %attr (0755, root, sys) %{_datadir}
    98 %dir %attr (0755, root, other) %{_datadir}/doc
    99 %dir %attr (0755, root, bin) %{_datadir}/doc/liblouis
   100 %{_datadir}/doc/liblouis/*
   101 %dir %attr (0755, root, sys) %{_datadir}/liblouis
   102 %dir %attr (0755, root, sys) %{_datadir}/liblouis/tables
   103 %{_datadir}/liblouis/tables/*
   104 %dir %attr (0755, root, bin) %{_libdir}/python?.?
   105 %dir %attr (0755, root, bin) %{_libdir}/python?.?/vendor-packages
   106 %dir %attr (0755, root, bin) %{_libdir}/python?.?/vendor-packages/louis
   107 %dir %attr (0755, root, bin) %{_libdir}/python?.?/vendor-packages/louis-%{version}-py%{pythonver}.egg-info
   108 %{_libdir}/python?.?/vendor-packages/louis/*
   109 %dir %attr(0755, root, bin) %{_mandir}
   110 %dir %attr(0755, root, bin) %{_mandir}/man1
   111 
   112 %files devel
   113 %defattr (-, root, bin)
   114 %dir %attr (0755, root, bin) %{_includedir}/
   115 %{_includedir}/liblouis/*
   116 
   117 %changelog
   118 * Tue Jan 04 2011 - Li Yuan <lee.yuan@oracle.com>
   119 - Fix build error.
   120 * Mon Nov 22 2010 - Li Yuan <lee.yuan@oracle.com>
   121 - Move demo to demo directory.
   122 * Wed Nov 03 2010 - Li Yuan <lee.yuan@oracle.com>
   123 - Add copyright info.
   124 * Fri Sep 24 2010 - Brian Cameron  <brian.cameron@oracle.com>
   125 - Remove all .la files.
   126 * Mon Jan 11 2010 - Willie Walker
   127 - Update to use python 2.6 and use %{pythonver}.
   128 * Tue Aug 25 2009 - Willie Walker
   129 - Get this working again on b121. Also use the liblouis version number
   130   instead of the default version number.  Bump to 1.7.0.
   131 * Tue Jun 16 2009 - Willie Walker
   132 - Upgrade to liblouis 1.6.2 to get us the 'louis' python module
   133 * Fri Feb 13 2009 - Willie Walker
   134 - Initial spec