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