SHA256
1
0
forked from pool/sbl
sbl/sbl.spec
OBS User autobuild 7686304161 Accepting request 22124 from hardware
Copy from hardware/sbl based on submit request 22124 from user vbotka

OBS-URL: https://build.opensuse.org/request/show/22124
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/sbl?expand=0&rev=24
2009-10-12 13:47:09 +00:00

111 lines
2.5 KiB
RPMSpec

#
# spec file for package sbl (Version 3.5.0)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: sbl
BuildRequires: bluez-devel gcc-c++ libusb-devel orca speechd-devel
Version: 3.5.0
Release: 2
License: GPL
Group: Hardware/Other
Source: sbl-3.5.0.tbz2
Patch1: sbl-shared.patch
Summary: SuSE blinux
PreReq: %insserv_prereq
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
SuSE blinux is a screen reader for the Linux console. It supports
braille displays.
Authors:
--------
marco@suse.de
%package orca
License: GPL v2 only ; GPL v2 or later
Summary: brld-orca brlapi
Group: Productivity/Multimedia/Sound/Utilities
Requires: orca
%py_requires
%if %suse_version <= 1110
%define python_sitearch %{py_sitedir}
%endif
%description orca
this python module enables orca to use brld for braille output
Authors:
--------
Marco Skambraks
Halim Sahin
%prep
%setup -n sbl-3.5.0
%patch1 -p0
%build
make CFLAGS="$RPM_OPT_FLAGS -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE" LIB_CFLAGS="$RPM_OPT_FLAGS -D_POSIX_C_SOURCE=2 -D_BSD_SOURCE -fPIC"
%install
make LIBINSTPATH=%{_libdir} DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post
/sbin/ldconfig
%{insserv_force_if_yast etc/init.d/sbl }
%{insserv_force_if_yast etc/init.d/brld }
%postun
/sbin/ldconfig
%{insserv_cleanup}
%files
%defattr (-,root,root,755)
%doc doc/* Changelog
%dir /etc/sbl
%config /etc/sbl/keymap
%config /etc/sbl/profile
%config /etc/sbl/spkfilter
%config /etc/sbl.conf
%dir /usr/lib/sbl
/usr/lib/sbl/lib
/etc/sbl/brltbl
/etc/sbl/spk
/usr/sbin/sbl
/usr/sbin/rcsbl
/usr/sbin/brld
/usr/sbin/rcbrld
%{_libdir}/libbrld.so.1
/etc/init.d/sbl
/etc/init.d/brld
/usr/share/man/man8/brld.8.gz
/usr/share/man/man8/sbl.8.gz
%files orca
%defattr (-,root,root,755)
%{python_sitearch}/orca/brlapi.py*
%changelog