2007-01-16 00:36:11 +01:00
|
|
|
#
|
2011-12-14 14:35:09 +01:00
|
|
|
# spec file for package sbl
|
2007-01-16 00:36:11 +01:00
|
|
|
#
|
2014-08-14 11:04:47 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:36:11 +01:00
|
|
|
#
|
2008-09-13 12:10:58 +02:00
|
|
|
# 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.
|
|
|
|
|
2007-01-23 01:28:07 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:36:11 +01:00
|
|
|
#
|
|
|
|
|
2013-03-02 12:25:14 +01:00
|
|
|
|
2007-01-23 01:28:07 +01:00
|
|
|
Name: sbl
|
2011-12-14 14:35:09 +01:00
|
|
|
BuildRequires: bluez-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libusb-devel
|
|
|
|
BuildRequires: orca
|
|
|
|
BuildRequires: speechd-devel
|
2014-09-05 23:20:10 +02:00
|
|
|
%if %{suse_version} > 1310
|
|
|
|
BuildRequires: pkgconfig(libsystemd-daemon)
|
|
|
|
%{?systemd_requires}
|
|
|
|
%endif
|
2009-10-03 01:37:58 +02:00
|
|
|
Version: 3.5.0
|
2011-12-14 14:35:09 +01:00
|
|
|
Release: 0
|
2009-10-03 01:37:58 +02:00
|
|
|
Source: sbl-3.5.0.tbz2
|
2014-09-05 23:20:10 +02:00
|
|
|
Source1: sbl.service
|
|
|
|
Source2: brld.service
|
2009-10-12 15:47:09 +02:00
|
|
|
Patch1: sbl-shared.patch
|
2013-03-24 21:41:34 +01:00
|
|
|
Patch2: sbl-nostrip.patch
|
2014-08-14 11:04:47 +02:00
|
|
|
Summary: SUSE blinux
|
2011-12-14 14:35:09 +01:00
|
|
|
License: GPL-2.0+
|
|
|
|
Group: Hardware/Other
|
2007-01-23 01:28:07 +01:00
|
|
|
PreReq: %insserv_prereq
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2007-01-16 00:36:11 +01:00
|
|
|
|
|
|
|
%description
|
2014-08-14 11:04:47 +02:00
|
|
|
SUSE blinux is a screen reader for the Linux console. It supports
|
2007-01-16 00:36:11 +01:00
|
|
|
braille displays.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
marco@suse.de
|
|
|
|
|
2009-10-03 01:37:58 +02:00
|
|
|
%package orca
|
|
|
|
Summary: brld-orca brlapi
|
2013-03-02 12:25:14 +01:00
|
|
|
License: GPL-2.0 and GPL-2.0+
|
2009-10-03 01:37:58 +02:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2009-10-12 15:47:09 +02:00
|
|
|
Requires: orca
|
|
|
|
%py_requires
|
|
|
|
%if %suse_version <= 1110
|
|
|
|
%define python_sitearch %{py_sitedir}
|
|
|
|
%endif
|
2009-10-03 01:37:58 +02:00
|
|
|
|
|
|
|
%description orca
|
|
|
|
this python module enables orca to use brld for braille output
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Marco Skambraks
|
|
|
|
Halim Sahin
|
|
|
|
|
|
|
|
|
2007-01-16 00:36:11 +01:00
|
|
|
%prep
|
2013-06-07 11:41:34 +02:00
|
|
|
%setup -q
|
2009-10-12 15:47:09 +02:00
|
|
|
%patch1 -p0
|
2013-03-24 21:41:34 +01:00
|
|
|
%patch2 -p0
|
2007-01-16 00:36:11 +01:00
|
|
|
|
|
|
|
%build
|
2013-06-07 11:41:34 +02:00
|
|
|
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 -I%_includedir/speech-dispatcher"
|
2007-01-16 00:36:11 +01:00
|
|
|
|
|
|
|
%install
|
2007-07-23 20:55:17 +02:00
|
|
|
make LIBINSTPATH=%{_libdir} DESTDIR=$RPM_BUILD_ROOT install
|
2014-09-05 23:20:10 +02:00
|
|
|
%if %{suse_version} > 1310
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/init.d/sbl
|
|
|
|
rm -f $RPM_BUILD_ROOT/etc/init.d/brld
|
|
|
|
install -D -m 644 %SOURCE1 %{buildroot}%{_unitdir}/sbl.service
|
|
|
|
install -D -m 644 %SOURCE2 %{buildroot}%{_unitdir}/brld.service
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/rcsbl
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/sbin/rcbrld
|
|
|
|
ln -sf /sbin/service $RPM_BUILD_ROOT/usr/sbin/rcsbl
|
|
|
|
ln -sf /sbin/service $RPM_BUILD_ROOT/usr/sbin/rcbrld
|
|
|
|
%endif
|
2007-01-16 00:36:11 +01:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
2014-09-05 23:20:10 +02:00
|
|
|
%if %{suse_version} > 1310
|
|
|
|
%pre
|
|
|
|
%service_add_pre sbl.service
|
|
|
|
%service_add_pre brld.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%service_del_preun brld.service
|
|
|
|
%service_del_preun sbl.service
|
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:36:11 +01:00
|
|
|
%post
|
2008-09-24 17:29:51 +02:00
|
|
|
/sbin/ldconfig
|
2014-09-05 23:20:10 +02:00
|
|
|
%if %{suse_version} > 1310
|
|
|
|
%service_add_post sbl.service
|
|
|
|
%service_add_post brld.service
|
|
|
|
%else
|
2008-02-01 01:25:17 +01:00
|
|
|
%{insserv_force_if_yast etc/init.d/sbl }
|
|
|
|
%{insserv_force_if_yast etc/init.d/brld }
|
2014-09-05 23:20:10 +02:00
|
|
|
%endif
|
2007-01-16 00:36:11 +01:00
|
|
|
|
|
|
|
%postun
|
2008-09-24 17:29:51 +02:00
|
|
|
/sbin/ldconfig
|
2014-09-05 23:20:10 +02:00
|
|
|
%if %{suse_version} > 1310
|
|
|
|
%service_del_postun brld.service
|
|
|
|
%service_del_postun sbl.service
|
|
|
|
%else
|
2007-01-16 00:36:11 +01:00
|
|
|
%{insserv_cleanup}
|
2014-09-05 23:20:10 +02:00
|
|
|
%endif
|
2007-01-16 00:36:11 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr (-,root,root,755)
|
2007-07-23 20:55:17 +02:00
|
|
|
%doc doc/* Changelog
|
2009-10-03 01:37:58 +02:00
|
|
|
%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
|
2007-01-16 00:36:11 +01:00
|
|
|
/usr/sbin/sbl
|
2009-10-03 01:37:58 +02:00
|
|
|
/usr/sbin/rcsbl
|
2007-07-23 20:55:17 +02:00
|
|
|
/usr/sbin/brld
|
|
|
|
/usr/sbin/rcbrld
|
2008-04-27 10:24:29 +02:00
|
|
|
%{_libdir}/libbrld.so.1
|
2014-09-05 23:20:10 +02:00
|
|
|
%if %{suse_version} > 1310
|
|
|
|
%{_unitdir}/sbl.service
|
|
|
|
%{_unitdir}/brld.service
|
|
|
|
%else
|
2009-10-03 01:37:58 +02:00
|
|
|
/etc/init.d/sbl
|
|
|
|
/etc/init.d/brld
|
2014-09-05 23:20:10 +02:00
|
|
|
%endif
|
2009-10-03 01:37:58 +02:00
|
|
|
/usr/share/man/man8/brld.8.gz
|
|
|
|
/usr/share/man/man8/sbl.8.gz
|
|
|
|
|
|
|
|
%files orca
|
|
|
|
%defattr (-,root,root,755)
|
2013-06-07 11:41:34 +02:00
|
|
|
%dir %{python_sitearch}/orca
|
2009-10-12 15:47:09 +02:00
|
|
|
%{python_sitearch}/orca/brlapi.py*
|
2007-01-16 00:36:11 +01:00
|
|
|
|
2007-03-02 10:10:24 +01:00
|
|
|
%changelog
|