1 # 2 # spec file for package SUNWbrltty 3 # 4 # includes module(s): brltty 5 # 6 # Copyright 2007 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 # Owner: dcarbery 11 # 12 %include Solaris.inc 13 14 %ifarch amd64 sparcv9 15 %include arch64.inc 16 %use brltty_64 = brltty.spec 17 %endif 18 19 %include base.inc 20 %use brltty = brltty.spec 21 22 Name: SUNWbrltty 23 Summary: Braille support 24 Version: %{brltty.version} 25 SUNW_BaseDir: %{_basedir} 26 SUNW_Copyright: %{name}.copyright 27 BuildRoot: %{_tmppath}/%{name}-%{version}-build 28 Requires: SUNWugen 29 Requires: SUNWcslr 30 %if %option_with_fox 31 Requires: FSWxorg-clientlibs 32 Requires: FSWxwrtl 33 %else 34 Requires: SUNWxwrtl 35 Requires: SUNWxwplt 36 %endif 37 Requires: SUNWPython 38 Requires: SUNWPython-extra 39 Requires: SUNWgnome-a11y-libs 40 BuildRequires: SUNWugenu 41 BuildRequires: SUNWcslr 42 BuildRequires: SUNWPython-devel 43 BuildRequires: SUNWPython-extra 44 BuildRequires: SUNWgnome-a11y-libs-devel 45 46 %include default-depend.inc 47 48 %package -n SUNWbrltty-root 49 Summary: %{summary} - / filesystem 50 SUNW_BaseDir: / 51 %include default-depend.inc 52 53 %package -n SUNWbrltty-devel 54 Summary: %{summary} - development files 55 SUNW_BaseDir: %{_basedir} 56 %include default-depend.inc 57 58 %prep 59 rm -rf %name-%version 60 mkdir %name-%version 61 62 %ifarch amd64 sparcv9 63 mkdir %name-%version/%_arch64 64 %brltty_64.prep -d %name-%version/%_arch64 65 %endif 66 67 mkdir %name-%version/%base_arch 68 %brltty.prep -d %name-%version/%base_arch 69 70 %build 71 export PKG_CONFIG_PATH=%{_pkg_config_path} 72 export CFLAGS="%optflags -I%{_includedir}" 73 export RPM_OPT_FLAGS="$CFLAGS" 74 export LDFLAGS="%_ldflags" 75 76 %ifarch amd64 sparcv9 77 %brltty_64.build -d %name-%version/%_arch64 78 %endif 79 80 %brltty.build -d %name-%version/%base_arch 81 82 %install 83 84 %ifarch amd64 sparcv9 85 %brltty_64.install -d %name-%version/%_arch64 86 %endif 87 88 %brltty.install -d %name-%version/%base_arch 89 90 rm -rf $RPM_BUILD_ROOT%{_mandir}/man3 91 92 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 93 94 %clean 95 rm -rf $RPM_BUILD_ROOT 96 97 %files 98 %defattr (-, root, bin) 99 %doc(bzip2) -d %{base_arch}/brltty-%{brltty.version} README 100 %doc(bzip2) -d %{base_arch}/brltty-%{brltty.version} COPYING 101 %doc(bzip2) -d %{base_arch}/brltty-%{brltty.version} COPYING-API 102 %doc -d %{base_arch}/brltty-%{brltty.version}/Documents CONTRIBUTORS 103 %doc -d %{base_arch}/brltty-%{brltty.version}/Documents HISTORY 104 %doc(bzip2) -d %{base_arch}/brltty-%{brltty.version}/Documents ChangeLog 105 %dir %attr (0755, root, other) %{_datadir}/doc 106 %dir %attr (0755, root, bin) %{_bindir} 107 %{_bindir}/brltty* 108 %{_bindir}/vstp 109 %{_bindir}/xbrlapi 110 %dir %attr (0755, root, bin) %{_libdir} 111 %{_libdir}/libbrlapi.so.* 112 %{_libdir}/libbrlapi.so 113 %{_libdir}/brltty/libbrltty*.so 114 %{_libdir}/brltty/rw 115 %{_libdir}/python?.?/vendor-packages 116 %dir %attr(0755, root, sys) %{_datadir} 117 %dir %attr(0755, root, bin) %{_mandir} 118 %dir %attr(0755, root, bin) %{_mandir}/* 119 %{_mandir}/man1/* 120 %ifarch amd64 sparcv9 121 %dir %attr (0755, root, bin) %{_bindir}/%{_arch64} 122 %{_bindir}/%{_arch64}/brltty* 123 %{_bindir}/%{_arch64}/vstp 124 %{_bindir}/%{_arch64}/xbrlapi 125 %dir %attr (0755, root, bin) %{_libdir}/%{_arch64} 126 %{_libdir}/%{_arch64}/libbrlapi.so.* 127 %{_libdir}/%{_arch64}/libbrlapi.so 128 %{_libdir}/%{_arch64}/brltty/libbrltty*.so 129 %{_libdir}/%{_arch64}/brltty/rw 130 %endif 131 132 %files root 133 %defattr(-, root, sys) 134 %dir %attr (0755, root, sys) %{_sysconfdir} 135 %{_sysconfdir}/brltty/* 136 137 %files devel 138 %defattr(-, root, bin) 139 %dir %attr (0755, root, bin) %{_includedir} 140 %{_includedir}/brlapi*.h 141 %{_includedir}/brltty/*.h 142 %dir %attr(0755, root, sys) %{_datadir} 143 %dir %attr(0755, root, bin) %{_mandir} 144 %dir %attr(0755, root, bin) %{_mandir}/* 145 146 147 %changelog 148 * Fri Sep 19 2008 - halton.huo@sun.com 149 - Add %doc part to %files 150 * Mon Jul 07 2008 - li.yuan@sun.com 151 - Fix 6697334. Add 64 bit libraries support. 152 * Thu Apr 03 2008 - damien.carbery@sun.com 153 - Add SUNW_Copyright. 154 * Mon Nov 12 2007 - li.yuan@sun.com 155 - Remove brlapi manpages. 156 * Thu Oct 11 2007 - damien.carbery@sun.com 157 - Add 'Build/Requires: SUNWcslr' to fix 6615512. 158 * Wed Oct 10 2007 - damien.carbery@sun.com 159 - Update Build/Requires after running check-deps.pl script. 160 * Fri Sep 28 2007 - laca@sun.com 161 - add option to build with FOX instead of Nevada X 162 * Wed Jul 25 2007 - damien.carbery@sun.com 163 - Update %files for new tarball. Add Build/Requires SUNWPython-extra and 164 SUNWPython/-devel to ensure python bindings are built (for use with orca). 165 * Thu Oct 05 2006 - damien.carbery@sun.com 166 - Add Requires SUNWxwplt to partially fix 6454451. 167 * Sat Aug 12 2006 - laca@sun.com 168 - delete some unnecessary env variables 169 * Thu May 04 2006 - laca@sun.com 170 - merge -share pkg(s) into the base pkg(s) 171 * Tue Apr 04 2006 - glynn.foster@sun.com 172 - Fix installation of devel vs non-devel libraries. 173 * Thu Feb 23 2006 - william.walker@sun.com 174 - Anal-rententive version name change to match ../brltty.spec (3.7.2) 175 * Fri Feb 17 2006 - damien.carbery@sun.com 176 - Update Build/Requires after running check-deps.pl script. 177 * Fri Oct 28 2005 - damien.carbery@sun.com 178 - Update packaging for new source tarball. Add prerequisite packages. 179 * Fri Sep 09 2005 - <laca@sun.com> 180 - add unpackaged files to %files 181 * Thu Aug 25 2005 182 - Removed the 'export CC="/opt/SUNWspro/bin/cc"' line. No longer needed. 183 * Mon Aug 22 2005 184 - Adjustments needed to make the package proto maps equivalent to what gets 185 installed via "make install" 186 * Tue Aug 16 2005 - rich.burridge@sun.com 187 - initial version 188