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