Name: liblouisxml Version: 2.1.0 Release: 1%{?dist} Summary: Translate XML files into proper Braille Group: System Environment/Libraries License: LGPLv3+ URL: http://code.google.com/p/liblouisxml/ Source0: http://abilitiessoft.com/%{name}-%{version}.tar.gz patch0: %{name}-fix-man-for-rtf2brl.diff BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: help2man BuildRequires: liblouis-devel Requires(post): info Requires(preun): info %description liblouisxml is a software component which can be incorporated into software packages to provide the capability of translating any file in the computer lingua franca XML format into properly transcribed braille. This includes translation into grade two, if desired, mathematical codes, etc. It also includes formatting according to a built-in style sheet which can be modified by the user. The first program into which liblouisxml has been incorporated is xml2brl. This program will translate an XML or text file into an embosser-ready braille file. It is not necessary to know XML, because MSWord and other word processors can export files in this format. If the word processor has been used correctly xml2brl will produce an excellent braille file. %package devel Summary: Development files for %{name} Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package scripts Summary: Scripts that converts various file format into Braille requires: %{name} = %{version}-%{release} %description scripts This package contains scripts that uses xml2brl, the main part of %{name}, to convert files of various format into braille. The scripts relays on other programs, like antiword and rtf2xml, which needs to be installed. %package bin Summary: Converts XML/HTML/TXT to braille License: GPLv3+ %description bin This package contains the xml2brl program. %prep %setup -q %patch0 -p1 %build #./autogen.sh %configure --disable-static make %{?_smp_mflags} make -C doc liblouisxml.pdf %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT #find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' rm -f $RPM_BUILD_ROOT/%{_infodir}/dir rm -f $RPM_BUILD_ROOT/%{_libdir}/liblouisxml.la rm -f $RPM_BUILD_ROOT/%{_bindir}/lbx_devonly rm -fr $RPM_BUILD_ROOT/%{_defaultdocdir}/liblouisxml %clean rm -rf $RPM_BUILD_ROOT %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,-) %doc doc/copyright-notice doc/liblouisxml.{html,txt,pdf} %doc README* NEWS INSTALL COPYING.LIB %{_infodir}/%{name}.info.* %{_libdir}/liblouisxml.so.* %{_datadir}/liblouisxml/ %files devel %defattr(-,root,root,-) %{_includedir}/liblouisxml/ %{_libdir}/liblouisxml.so %{_libdir}/pkgconfig/liblouisxml.pc %files scripts %defattr(-,root,root,-) %{_bindir}/msword2brl %{_bindir}/rtf2brl %{_mandir}/man1/msword2brl.1.* %{_mandir}/man1/rtf2brl.1.* %files bin %defattr(-,root,root,-) %doc COPYING %{_mandir}/man1/xml2brl.1.* %{_bindir}/xml2brl %changelog * Sat Jul 17 2010 Lars Bjørndal - 2.1.0-1 - Spec file created for Fedora.