amigadave / rpms / liblouis

Forked from rpms/liblouis 3 years ago
Clone
0a882e6
# Turn off the brp-python-bytecompile script
0a882e6
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
70633a7
8b51490
Name:           liblouis
736ff8b
Version:        3.13.0
736ff8b
Release:        1%{?dist}
8b51490
Summary:        Braille translation and back-translation library
8b51490
8b51490
License:        LGPLv3+
25c4c34
URL:            http://liblouis.org
1be1233
Source0:        https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
354cf4a
d4204be
BuildRequires:  chrpath
354cf4a
BuildRequires:  gcc
8b51490
BuildRequires:  help2man
4bef6a3
BuildRequires:  libyaml-devel
7c217e4
BuildRequires:  texinfo
8b51490
BuildRequires:  texinfo-tex
354cf4a
BuildRequires:  texlive-eurosym
354cf4a
BuildRequires:  texlive-xetex
25c4c34
BuildRequires:  python3-devel
70633a7
bcde05c
Provides: bundled(gnulib)
8b51490
8b51490
%description
d4204be
Liblouis is an open-source braille translator and back-translator named in
d4204be
honor of Louis Braille. It features support for computer and literary braille,
d4204be
supports contracted and uncontracted translation for many languages and has
d4204be
support for hyphenation. New languages can easily be added through tables that
d4204be
support a rule- or dictionary based approach. Liblouis also supports math
d4204be
braille (Nemeth and Marburg).
8b51490
d4204be
Liblouis has features to support screen-reading programs. This has led to its
d4204be
use in two open-source screen readers, NVDA and Orca. It is also used in some
d4204be
commercial assistive technology applications for example by ViewPlus.
8b51490
d4204be
Liblouis is based on the translation routines in the BRLTTY screen reader for
d4204be
Linux. It has, however, gone far beyond these routines.
8b51490
8b51490
%package        devel
8b51490
Summary:        Development files for %{name}
2627ccf
Requires:       %{name}%{?_isa} = %{version}-%{release}
8b51490
Requires:       pkgconfig
8b51490
8b51490
%description    devel
8b51490
The %{name}-devel package contains libraries and header files for
8b51490
developing applications that use %{name}.
8b51490
8b51490
8b51490
%package        utils
8b51490
Summary:        Command-line utilities to test %{name}
64e6a98
Requires:       %{name}%{?_isa} = %{version}-%{release}
8b51490
License:        GPLv3+
8b51490
8b51490
%description    utils
d4204be
Six test programs are provided as part of the liblouis package. They
8b51490
are intended for testing liblouis and for debugging tables. None of
8b51490
them is suitable for braille transcription.
8b51490
0a882e6
0d2f9b8
%package -n python3-louis
0a882e6
Summary:        Python 3 language bindings for %{name}
0a882e6
BuildArch:      noarch
0a882e6
Requires:       %{name} = %{version}-%{release}
0d2f9b8
Obsoletes:      %{name}-python3 < 2.6.2-3
0d2f9b8
Provides:       %{name}-python3 = %{version}-%{release}
b388529
%{?python_provide:%python_provide python3-louis}
0a882e6
0d2f9b8
%description -n python3-louis
0a882e6
This package provides Python 3 language bindings for %{name}.
8b51490
8b51490
caa46d2
%package doc
caa46d2
Summary:        Documentation for %{name}
caa46d2
BuildArch:      noarch
caa46d2
Requires:       %{name} = %{version}-%{release}
caa46d2
caa46d2
%description doc
caa46d2
This package provides the documentation for liblouis.
caa46d2
caa46d2
8b51490
%prep
8b51490
%setup -q
8b51490
8b51490
%build
8b51490
%configure --disable-static --enable-ucs4
354cf4a
# parallel builds fail
354cf4a
make
354cf4a
cd doc; xetex %{name}.texi
d4204be
d4204be
%check
d4204be
make check
8b51490
8b51490
8b51490
%install
8b51490
make install DESTDIR=%{buildroot}
8b51490
rm -f %{buildroot}/%{_infodir}/dir
8b51490
rm -f %{buildroot}/%{_libdir}/%{name}.la
354cf4a
rm -rf %{buildroot}/%{_bindir}/lou_maketable*
8b51490
rm -rf %{buildroot}/%{_defaultdocdir}/%{name}/
8b51490
cd python/louis
0a882e6
0a882e6
install -d %{buildroot}%{python3_sitelib}/louis
0a882e6
install -pm 0644 __init__.py %{buildroot}%{python3_sitelib}/louis/
0a882e6
%py_byte_compile %{__python3} %{buildroot}%{python3_sitelib}/louis/
8b51490
d4204be
# Remove Rpaths from the executables. We must do that in the %%install section
d4204be
# because, otherwise, the test suite wouldn't build.
354cf4a
for f in %{buildroot}%{_bindir}/lou_* ; do
1be1233
  chrpath --delete $f
d4204be
done
d4204be
8b51490
6fe1a53
%ldconfig_scriptlets
8b51490
8b51490
8b51490
%files
0ae0623
%doc README AUTHORS NEWS ChangeLog TODO
0ae0623
%license COPYING.LESSER
8b51490
%{_libdir}/%{name}.so.*
8b51490
%{_datadir}/%{name}/
8b51490
%{_infodir}/%{name}.info*
8b51490
8b51490
%files devel
d4204be
%doc HACKING
8b51490
%{_includedir}/%{name}/
8b51490
%{_libdir}/pkgconfig/%{name}.pc
8b51490
%{_libdir}/%{name}.so
8b51490
8b51490
%files utils
0ae0623
%license COPYING
8b51490
%{_bindir}/lou_*
8b51490
%{_mandir}/man1/lou_*.1*
8b51490
0d2f9b8
%files -n python3-louis
0a882e6
%{python3_sitelib}/louis/
0a882e6
caa46d2
%files doc
caa46d2
%doc doc/%{name}.{html,txt,pdf}
caa46d2
8b51490
8b51490
%changelog
736ff8b
* Tue Apr 14 2020 David King <amigadave@amigadave.com> - 3.13.0-1
736ff8b
- Update to 3.13.0
736ff8b
0d04d3b
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.12.0-2
0d04d3b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
0d04d3b
bcde05c
* Mon Jan 20 2020 Martin Gieseking <martin.gieseking@uos.de> - 3.12.0-1
bcde05c
- Updated to 3.12.0.
bcde05c
- Dropped date from Provides(gnulib).
bcde05c
28db070
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 3.10.0-4
28db070
- Rebuilt for Python 3.8.0rc1 (#1748018)
28db070
609dbc7
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 3.10.0-3
609dbc7
- Rebuilt for Python 3.8
609dbc7
be45520
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.10.0-2
be45520
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
be45520
0ae0623
* Mon Jun 03 2019 Martin Gieseking <martin.gieseking@uos.de> - 3.10.0-1
0ae0623
- Updated to 3.10.0.
0ae0623
- Use %%license tag to add the file containing the license text.
0ae0623
0d2bdbf
* Mon Mar 04 2019 Martin Gieseking <martin.gieseking@uos.de> - 3.9.0-1
0d2bdbf
- Updated to 3.9.0.
0d2bdbf
- Dropped GCC 9 related patch since changes have been applied upstream.
0d2bdbf
68879eb
* Fri Feb 08 2019 Martin Gieseking <martin.gieseking@uos.de> - 3.8.0-3
68879eb
- Fixed memory issue introduced with GCC 9 (changed semantics of block scope compound literals).
68879eb
94b5bac
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
94b5bac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
94b5bac
dbf5e2c
* Mon Dec 10 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.8.0-1
dbf5e2c
- Updated to 3.8.0
dbf5e2c
4bef6a3
* Sat Oct 13 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.7.0-2
4bef6a3
- Dropped Python 2 language bindings according to
4bef6a3
  https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
4bef6a3
- Dropped Python dependency from utils package because it doesn't contain Python scripts any longer
4bef6a3
- Added BR:libyaml-devel to enable YAML support
4bef6a3
bc0063f
* Wed Sep 26 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.7.0-1
bc0063f
- Updated to 3.7.0, fixes CVE-2018-17294 (BZ #1632834).
bc0063f
1272b34
* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 3.6.0-4
1272b34
- Rebuild with fixed binutils
1272b34
6fe1a53
* Sat Jul 28 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 3.6.0-3
6fe1a53
- Replace obsolete scriptlets
6fe1a53
3ac848a
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.6.0-2
3ac848a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3ac848a
354cf4a
* Mon Jul 09 2018 Martin Gieseking <martin.gieseking@uos.de> - 3.6.0-1
354cf4a
- Updated to 3.6.0.
354cf4a
- Added patch to fix CVE-2018-12085.
354cf4a
- Create liblouis.pdf with XeTeX rather than texi2pdf to prevent build errors.
354cf4a
eca271d
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.6.2-16
eca271d
- Rebuilt for Python 3.7
eca271d
c2ef841
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-15
c2ef841
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c2ef841
6792866
* Tue Jan 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.6.2-14
6792866
- Update Python 2 dependency declarations to new packaging standards
6792866
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
6792866
6dcd06d
* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.6.2-13
6dcd06d
- Python 2 binary package renamed to python2-louis
6dcd06d
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
6dcd06d
25c4c34
* Fri Nov 03 2017 Martin Gieseking <martin.gieseking@uos.de> - 2.6.2-12
25c4c34
- Applied security fixes from EL 7.4 (CVE-2014-8184, CVE-2017-13738, CVE-2017-13740, CVE-2017-13741, CVE-2017-13742, CVE-2017-13743, CVE-2017-13744)
25c4c34
- Dropped redundant parts of the spec file.
25c4c34
- Updated URL.
25c4c34
187e802
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-11
187e802
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
187e802
5dd7912
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-10
5dd7912
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5dd7912
Igor Gnatenko bdcf1f6
* Wed Feb 15 2017 Igor Gnatenko <ignatenko@redhat.com> - 2.6.2-9
Igor Gnatenko bdcf1f6
- Rebuild for brp-python-bytecompile
Igor Gnatenko bdcf1f6
a641032
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-8
a641032
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
a641032
7d72b98
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.6.2-7
7d72b98
- Rebuild for Python 3.6
7d72b98
06a5b0c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-6
06a5b0c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
06a5b0c
8313032
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.6.2-5
8313032
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8313032
b669de7
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-4
b669de7
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b669de7
0d2f9b8
* Sun Aug 23 2015 Kalev Lember <klember@redhat.com> - 2.6.2-3
0d2f9b8
- Rename liblouis-python3 to python3-louis, as per latest packaging guidelines
01ed812
- Fix the build with texinfo 6.0
0d2f9b8
deb0d96
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.2-2
deb0d96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
deb0d96
1be1233
* Wed Apr 08 2015 Martin Gieseking <martin.gieseking@uos.de> 2.6.2-1
1be1233
- Updated to new upstream release.
1be1233
e3437ee
* Tue Sep 16 2014 Martin Gieseking <martin.gieseking@uos.de> 2.6.0-1
e3437ee
- Updated to new upstream release.
e3437ee
1ca20fc
* Mon Aug 18 2014 Martin Gieseking <martin.gieseking@uos.de> 2.5.4-5
1ca20fc
- Fixed check for ELF binaries to prevent chrpath from failing.
1ca20fc
82046f9
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-4
82046f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
82046f9
2dda2cd
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.4-3
2dda2cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2dda2cd
dd8c92b
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 2.5.4-2
dd8c92b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
dd8c92b
d4204be
* Tue May 13 2014 Martin Gieseking <martin.gieseking@uos.de> 2.5.4-1
d4204be
- Updated to new upstream release.
d4204be
- Activated the bundled test suite which has been adapted to work correctly with the recent release. 
d4204be
- Remove Rpaths from the utility programs.
d4204be
- Updated the description according to the upstream website.
d4204be
bbbff2f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.3-2
bbbff2f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
bbbff2f
6c1c3ac
* Mon Jul 22 2013 Martin Gieseking <martin.gieseking@uos.de> - 2.5.3-1
6c1c3ac
- Update to new upstream release.
6c1c3ac
64e6a98
* Thu Jul 18 2013 Matthias Clasen <mclasen@redhat.com> - 2.5.2-7
64e6a98
- Tighten dependencies between subpackages (pointed out by rpmdiff)
64e6a98
a327ba2
* Tue Apr 16 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-6
a327ba2
- Restrict exclusion of Python 3 packages to RHEL <= 7.
a327ba2
70633a7
* Mon Apr 15 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-5
70633a7
- Restrict exclusion of Python 3 packages to RHEL < 7.
70633a7
7af66a3
* Mon Apr 15 2013 Rui Matos <rmatos@redhat.com> - 2.5.2-4
70633a7
- Don't depend on python3 in RHEL.
7af66a3
0a882e6
* Tue Feb 26 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-3
0a882e6
- Added Python 3 language bindings.
0a882e6
caa46d2
* Fri Feb 22 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-2
caa46d2
- Moved documentation to doc subpackage.
caa46d2
45250bb
* Wed Feb 06 2013 Martin Gieseking <martin.gieseking@uos.de> 2.5.2-1
45250bb
- Updated to new upstream release.
45250bb
13776ff
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
13776ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
13776ff
2627ccf
* Sat Mar 10 2012 Martin Gieseking <martin.gieseking@uos.de> 2.4.1-1
2627ccf
- Updated to upstream release 2.4.1.
2627ccf
- Made the devel package's dependency on the base package arch specific.
2627ccf
a651a53
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.0-2
a651a53
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
a651a53
7f0804f
* Mon Dec 12 2011 Martin Gieseking <martin.gieseking@uos.de> 2.4.0-1
7f0804f
- Updated to upstream release 2.4.0.
7f0804f
e806819
* Fri May 20 2011 Martin Gieseking <martin.gieseking@uos.de> 2.3.0-1
e806819
- Updated to upstream release 2.3.0.
e806819
8b51490
* Mon Feb 28 2011 Martin Gieseking <martin.gieseking@uos.de> - 2.2.0-2
8b51490
- Added release date of bundled gnulib to Provides.
8b51490
- Use %%{name} macro consistently.
8b51490
8b51490
* Tue Feb 15 2011 Martin Gieseking <martin.gieseking@uos.de> - 2.2.0-1
8b51490
- Updated to upstream release 2.2.0.
8b51490
- Added Python bindings.
8b51490
8b51490
* Mon Jul 5 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.9.0-2
8b51490
- 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>.
8b51490
8b51490
* Wed Jun 30 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.9.0-1
8b51490
- 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>.
8b51490
8b51490
* Sun Jun 20 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> - 1.8.0-3
8b51490
- Fixed some small problems, among them wrong destination directory for documentation. See <https://bugzilla.redhat.com/show_bug.cgi?id=597597> for further details.
8b51490
8b51490
* Thu Jun 17 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> 1.8.0-2
8b51490
- Created the tools sub package and did a lot of clean ups, see <https://bugzilla.redhat.com/show_bug.cgi?id=597597>.
8b51490
8b51490
* Sat May 29 2010 Lars Bjørndal <lars.bjorndal@broadpark.no> 1.8.0-1
8b51490
- Create the RPM for Fedora.