2013-04-22 11:22:48 +00:00
|
|
|
%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
2013-02-26 21:58:27 +00:00
|
|
|
# Turn off the brp-python-bytecompile script
|
|
|
|
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
|
2013-04-15 14:57:59 +00:00
|
|
|
%endif
|
|
|
|
|
2013-02-26 21:58:27 +00:00
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
Name: liblouis
|
2015-04-08 15:50:14 +00:00
|
|
|
Version: 2.6.2
|
2016-02-04 03:28:58 +00:00
|
|
|
Release: 5%{?dist}
|
2011-03-11 19:47:05 +00:00
|
|
|
Summary: Braille translation and back-translation library
|
|
|
|
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: LGPLv3+
|
|
|
|
URL: http://www.abilitiessoft.com/
|
2015-04-08 15:50:14 +00:00
|
|
|
Source0: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
2015-08-23 10:58:10 +00:00
|
|
|
# Backported upstream patch to fix the build with texinfo 6.0
|
|
|
|
Patch0: 0001-Update-configure.ac-to-reconize-texi2any.patch
|
2011-03-11 19:47:05 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2014-05-16 09:25:56 +00:00
|
|
|
BuildRequires: chrpath
|
2011-03-11 19:47:05 +00:00
|
|
|
BuildRequires: help2man
|
2015-08-23 10:35:50 +00:00
|
|
|
BuildRequires: texinfo
|
2011-03-11 19:47:05 +00:00
|
|
|
BuildRequires: texinfo-tex
|
2013-02-06 19:45:40 +00:00
|
|
|
BuildRequires: python2-devel
|
2013-04-15 14:57:59 +00:00
|
|
|
|
2015-08-23 10:58:10 +00:00
|
|
|
# For patch0
|
|
|
|
BuildRequires: autoconf automake libtool
|
|
|
|
|
2013-04-22 11:22:48 +00:00
|
|
|
%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
2013-02-26 21:58:27 +00:00
|
|
|
BuildRequires: python3-devel
|
2013-04-15 14:01:33 +00:00
|
|
|
%endif
|
2013-04-15 14:57:59 +00:00
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
Requires(post): info
|
|
|
|
Requires(preun): info
|
|
|
|
|
|
|
|
# gnulib is a copylib that has been granted an exception from the no-bundled-libraries policy
|
|
|
|
# http://fedoraproject.org/wiki/Packaging:No_Bundled_Libraries#Copylibs
|
2014-05-16 09:25:56 +00:00
|
|
|
Provides: bundled(gnulib) = 20130621
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
%description
|
2014-05-16 09:25:56 +00:00
|
|
|
Liblouis is an open-source braille translator and back-translator named in
|
|
|
|
honor of Louis Braille. It features support for computer and literary braille,
|
|
|
|
supports contracted and uncontracted translation for many languages and has
|
|
|
|
support for hyphenation. New languages can easily be added through tables that
|
|
|
|
support a rule- or dictionary based approach. Liblouis also supports math
|
|
|
|
braille (Nemeth and Marburg).
|
2011-03-11 19:47:05 +00:00
|
|
|
|
2014-05-16 09:25:56 +00:00
|
|
|
Liblouis has features to support screen-reading programs. This has led to its
|
|
|
|
use in two open-source screen readers, NVDA and Orca. It is also used in some
|
|
|
|
commercial assistive technology applications for example by ViewPlus.
|
2011-03-11 19:47:05 +00:00
|
|
|
|
2014-05-16 09:25:56 +00:00
|
|
|
Liblouis is based on the translation routines in the BRLTTY screen reader for
|
|
|
|
Linux. It has, however, gone far beyond these routines.
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries
|
2012-03-10 11:14:11 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2011-03-11 19:47:05 +00:00
|
|
|
Requires: pkgconfig
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%package utils
|
|
|
|
Summary: Command-line utilities to test %{name}
|
|
|
|
Group: Applications/Text
|
2013-07-19 00:42:26 +00:00
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
2015-08-23 10:19:33 +00:00
|
|
|
Requires: python-louis = %{version}-%{release}
|
2011-03-11 19:47:05 +00:00
|
|
|
License: GPLv3+
|
|
|
|
|
|
|
|
%description utils
|
2014-05-16 09:25:56 +00:00
|
|
|
Six test programs are provided as part of the liblouis package. They
|
2011-03-11 19:47:05 +00:00
|
|
|
are intended for testing liblouis and for debugging tables. None of
|
|
|
|
them is suitable for braille transcription.
|
|
|
|
|
2015-08-23 10:19:33 +00:00
|
|
|
%package -n python-louis
|
2013-02-26 21:58:27 +00:00
|
|
|
Summary: Python 2 language bindings for %{name}
|
2011-03-11 19:47:05 +00:00
|
|
|
Group: Development/Languages
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-08-23 10:19:33 +00:00
|
|
|
Obsoletes: %{name}-python < 2.6.2-3
|
|
|
|
Provides: %{name}-python = %{version}-%{release}
|
2011-03-11 19:47:05 +00:00
|
|
|
|
2015-08-23 10:19:33 +00:00
|
|
|
%description -n python-louis
|
2013-02-26 21:58:27 +00:00
|
|
|
This package provides Python 2 language bindings for %{name}.
|
|
|
|
|
|
|
|
|
2013-04-22 11:22:48 +00:00
|
|
|
%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
2015-08-23 10:19:33 +00:00
|
|
|
%package -n python3-louis
|
2013-02-26 21:58:27 +00:00
|
|
|
Summary: Python 3 language bindings for %{name}
|
|
|
|
Group: Development/Languages
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-08-23 10:19:33 +00:00
|
|
|
Obsoletes: %{name}-python3 < 2.6.2-3
|
|
|
|
Provides: %{name}-python3 = %{version}-%{release}
|
2013-02-26 21:58:27 +00:00
|
|
|
|
2015-08-23 10:19:33 +00:00
|
|
|
%description -n python3-louis
|
2013-02-26 21:58:27 +00:00
|
|
|
This package provides Python 3 language bindings for %{name}.
|
2013-04-15 14:01:33 +00:00
|
|
|
%endif
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
|
2013-02-22 13:44:01 +00:00
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
Group: Documentation
|
|
|
|
BuildArch: noarch
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
This package provides the documentation for liblouis.
|
|
|
|
|
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
%prep
|
|
|
|
%setup -q
|
2015-08-23 10:58:10 +00:00
|
|
|
%patch0 -p1
|
2011-03-11 19:47:05 +00:00
|
|
|
|
2015-08-23 10:58:10 +00:00
|
|
|
# For patch0
|
|
|
|
autoreconf -fi
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-static --enable-ucs4
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
make -C doc %{name}.pdf
|
|
|
|
|
2014-05-16 09:25:56 +00:00
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make install DESTDIR=%{buildroot}
|
|
|
|
rm -f %{buildroot}/%{_infodir}/dir
|
|
|
|
rm -f %{buildroot}/%{_libdir}/%{name}.la
|
|
|
|
rm -rf %{buildroot}/%{_defaultdocdir}/%{name}/
|
|
|
|
cd python/louis
|
2013-02-26 21:58:27 +00:00
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
install -d %{buildroot}%{python_sitelib}/louis
|
|
|
|
install -pm 0644 __init__.py %{buildroot}%{python_sitelib}/louis/
|
2013-04-15 14:57:59 +00:00
|
|
|
|
2013-04-22 11:22:48 +00:00
|
|
|
%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
2013-02-26 21:58:27 +00:00
|
|
|
%py_byte_compile %{__python} %{buildroot}%{python_sitelib}/louis/
|
|
|
|
|
|
|
|
install -d %{buildroot}%{python3_sitelib}/louis
|
|
|
|
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
|
|
|
|
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
|
2013-04-15 14:01:33 +00:00
|
|
|
%endif
|
2011-03-11 19:47:05 +00:00
|
|
|
|
2014-05-16 09:25:56 +00:00
|
|
|
# Remove Rpaths from the executables. We must do that in the %%install section
|
|
|
|
# because, otherwise, the test suite wouldn't build.
|
2014-08-18 10:06:52 +00:00
|
|
|
for f in `find %{buildroot}%{_bindir} -exec file {} \; | grep 'ELF.*executable' | cut -d: -f1`; do
|
2015-04-08 15:50:14 +00:00
|
|
|
chrpath --delete $f
|
2014-05-16 09:25:56 +00:00
|
|
|
done
|
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
/sbin/ldconfig
|
|
|
|
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
if [ $1 = 0 ] ; then
|
|
|
|
/sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2014-05-16 09:25:56 +00:00
|
|
|
%doc README COPYING.LESSER AUTHORS NEWS ChangeLog TODO
|
2011-03-11 19:47:05 +00:00
|
|
|
%{_libdir}/%{name}.so.*
|
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%{_infodir}/%{name}.info*
|
|
|
|
|
|
|
|
%files devel
|
2014-05-16 09:25:56 +00:00
|
|
|
%doc HACKING
|
2011-03-11 19:47:05 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/%{name}/
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
|
|
|
|
%files utils
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
%{_bindir}/lou_*
|
|
|
|
%{_mandir}/man1/lou_*.1*
|
|
|
|
|
2015-08-23 10:19:33 +00:00
|
|
|
%files -n python-louis
|
2011-03-11 19:47:05 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc python/README
|
|
|
|
%{python_sitelib}/louis/
|
|
|
|
|
2013-04-22 11:22:48 +00:00
|
|
|
%if !( 0%{?rhel} > 0 && 0%{?rhel} <= 7)
|
2015-08-23 10:19:33 +00:00
|
|
|
%files -n python3-louis
|
2013-02-26 21:58:27 +00:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{python3_sitelib}/louis/
|
2013-04-15 14:01:33 +00:00
|
|
|
%endif
|
2013-02-26 21:58:27 +00:00
|
|
|
|
2013-02-22 13:44:01 +00:00
|
|
|
%files doc
|
|
|
|
%doc doc/%{name}.{html,txt,pdf}
|
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
|
|
|
|
%changelog
|
2016-02-04 03:28:58 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 14:40:19 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-08-23 10:19:33 +00:00
|
|
|
* Sun Aug 23 2015 Kalev Lember <klember@redhat.com> - 2.6.2-3
|
|
|
|
- Rename liblouis-python3 to python3-louis, as per latest packaging guidelines
|
2015-08-23 10:58:10 +00:00
|
|
|
- Fix the build with texinfo 6.0
|
2015-08-23 10:19:33 +00:00
|
|
|
|
2015-06-17 16:01:51 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-04-08 15:50:14 +00:00
|
|
|
* Wed Apr 08 2015 Martin Gieseking <martin.gieseking@uos.de> 2.6.2-1
|
|
|
|
- Updated to new upstream release.
|
|
|
|
|
2014-09-16 13:40:07 +00:00
|
|
|
* Tue Sep 16 2014 Martin Gieseking <martin.gieseking@uos.de> 2.6.0-1
|
|
|
|
- Updated to new upstream release.
|
|
|
|
|
2014-08-18 10:06:52 +00:00
|
|
|
* Mon Aug 18 2014 Martin Gieseking <martin.gieseking@uos.de> 2.5.4-5
|
|
|
|
- Fixed check for ELF binaries to prevent chrpath from failing.
|
|
|
|
|
2014-08-17 04:24:38 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 04:16:41 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-27 15:49:37 +00:00
|
|
|
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.4-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-05-16 09:25:56 +00:00
|
|
|
* Tue May 13 2014 Martin Gieseking <martin.gieseking@uos.de> 2.5.4-1
|
|
|
|
- Updated to new upstream release.
|
|
|
|
- Activated the bundled test suite which has been adapted to work correctly with the recent release.
|
|
|
|
- Remove Rpaths from the utility programs.
|
|
|
|
- Updated the description according to the upstream website.
|
|
|
|
|
2013-08-03 06:04:14 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.3-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-07-22 08:58:19 +00:00
|
|
|
* Mon Jul 22 2013 Martin Gieseking <martin.gieseking@uos.de> - 2.5.3-1
|
|
|
|
- Update to new upstream release.
|
|
|
|
|
2013-07-19 00:42:26 +00:00
|
|
|
* Thu Jul 18 2013 Matthias Clasen <mclasen@redhat.com> - 2.5.2-7
|
|
|
|
- Tighten dependencies between subpackages (pointed out by rpmdiff)
|
|
|
|
|
2013-04-22 11:22:48 +00:00
|
|
|
* Tue Apr 16 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-6
|
|
|
|
- Restrict exclusion of Python 3 packages to RHEL <= 7.
|
|
|
|
|
2013-04-15 14:57:59 +00:00
|
|
|
* Mon Apr 15 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-5
|
|
|
|
- Restrict exclusion of Python 3 packages to RHEL < 7.
|
|
|
|
|
2013-04-15 14:01:33 +00:00
|
|
|
* Mon Apr 15 2013 Rui Matos <rmatos@redhat.com> - 2.5.2-4
|
2013-04-15 14:57:59 +00:00
|
|
|
- Don't depend on python3 in RHEL.
|
2013-04-15 14:01:33 +00:00
|
|
|
|
2013-02-26 21:58:27 +00:00
|
|
|
* Tue Feb 26 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-3
|
|
|
|
- Added Python 3 language bindings.
|
|
|
|
|
2013-02-22 13:44:01 +00:00
|
|
|
* Fri Feb 22 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-2
|
|
|
|
- Moved documentation to doc subpackage.
|
|
|
|
|
2013-02-06 19:45:40 +00:00
|
|
|
* Wed Feb 06 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-1
|
|
|
|
- Updated to new upstream release.
|
|
|
|
|
2012-07-19 20:21:36 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-03-10 11:14:11 +00:00
|
|
|
* Sat Mar 10 2012 Martin Gieseking <martin.gieseking@uos.de> 2.4.1-1
|
|
|
|
- Updated to upstream release 2.4.1.
|
|
|
|
- Made the devel package's dependency on the base package arch specific.
|
|
|
|
|
2012-01-13 07:58:32 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-12 21:05:26 +00:00
|
|
|
* Mon Dec 12 2011 Martin Gieseking <martin.gieseking@uos.de> 2.4.0-1
|
|
|
|
- Updated to upstream release 2.4.0.
|
|
|
|
|
2011-05-20 09:18:23 +00:00
|
|
|
* Fri May 20 2011 Martin Gieseking <martin.gieseking@uos.de> 2.3.0-1
|
|
|
|
- Updated to upstream release 2.3.0.
|
|
|
|
|
2011-03-11 19:47:05 +00:00
|
|
|
* Mon Feb 28 2011 Martin Gieseking <martin.gieseking@uos.de> - 2.2.0-2
|
|
|
|
- Added release date of bundled gnulib to Provides.
|
|
|
|
- Use %%{name} macro consistently.
|
|
|
|
|
|
|
|
* Tue Feb 15 2011 Martin Gieseking <martin.gieseking@uos.de> - 2.2.0-1
|
|
|
|
- Updated to upstream release 2.2.0.
|
|
|
|
- Added Python bindings.
|
|
|
|
|
|
|
|
* Mon Jul 5 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.9.0-2
|
|
|
|
- In advice from Martin Gieseking: Removed some garbage from the file section, and added a PDF version of the liblouis documentation. See <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
|
|
|
|
|
|
|
|
* Wed Jun 30 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.9.0-1
|
|
|
|
- A new version was up to day. At the same time, fixed a minor spec issue according to a comment from Martin Gieseking, see <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
|
|
|
|
|
|
|
|
* Sun Jun 20 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.8.0-3
|
|
|
|
- Fixed some small problems, among them wrong destination directory for documentation. See <https://bugzilla.redhat.com/show_bug.cgi?id=597597> for further details.
|
|
|
|
|
|
|
|
* Thu Jun 17 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> 1.8.0-2
|
|
|
|
- Created the tools sub package and did a lot of clean ups, see <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
|
|
|
|
|
|
|
|
* Sat May 29 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> 1.8.0-1
|
|
|
|
- Create the RPM for Fedora.
|