OmegaT/OmegaT.spec

121 lines
3.3 KiB
RPMSpec
Raw Normal View History

Name: OmegaT
Version: 6.0.0
Release: 1mamba
Summary: OmegaT® - multiplatform CAT tool
Group: Graphical Desktop/Applications/Development
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://omegat.org/
Source0: http://downloads.sourceforge.net/omegat/OmegaT_%{version}_Without_JRE.zip
Source1: omegat.desktop
Source2: omegat.sh
License: GPL
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: javapackages
Requires: hunspell
%description
OmegaT® is a free translation memory application written in Java.
It is a tool intended for professional translators.
OmegaT® has the following features:
* Fuzzy matching
* Match propagation
* Simultaneous processing of multiple-file projects
* Simultaneous use of multiple translation memories
* User glossaries with recognition of inflected forms
* Unicode (UTF-8) support: can be used with non-Latin alphabets
* Support for right-to-left languages
* Integral spelling checker
* Compatible with other translation memory applications (TMX)
* Interface to Google Translate
Document file formats include:
* XHTML and HTML
* Microsoft Office XML
* OpenOffice.org/StarOffice
* XLIFF (Okapi)
* MediaWiki (Wikipedia)
* Plain text
%prep
%setup -q -n OmegaT_%{version}_Without_JRE
%build
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mv *.txt docs/
install -d %{buildroot}%{_bindir}
install -d -m0755 %{buildroot}%{_datadir}/omegat
cp -r * %{buildroot}%{_datadir}/omegat/
#.desktop file + icon
install -Dm644 %{SOURCE1} \
%{buildroot}%{_datadir}/applications/omegat.desktop
install -Dm644 images/OmegaT.svg \
%{buildroot}%{_datadir}/pixmaps/omegat.svg
#executable file
install -Dm755 %{SOURCE2} %{buildroot}%{_bindir}/omegat
#removing obsolete files
rm -rf %{buildroot}%{_datadir}/omegat/{*.{zip,desktop,sh,kaptn},OmegaT,OmegaT.bat}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
%{_bindir}/update-desktop-database -q %{_datadir}/applications
touch --no-create %{_datadir}/icons/hicolor
%postun
if [ $1 -eq 0 ]; then
touch --no-create %{_datadir}/icons/hicolor
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
fi
%posttrans
%{_bindir}/gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
%files
%defattr(-,root,root)
%{_bindir}/omegat
%{_datadir}/applications/omegat.desktop
%{_datadir}/pixmaps/omegat.svg
%dir %{_datadir}/omegat
%{_datadir}/omegat/OmegaT.jar
%{_datadir}/omegat/index.html
%{_datadir}/omegat/join.html
%dir %{_datadir}/omegat/docs
%{_datadir}/omegat/docs/*
%dir %{_datadir}/omegat/images
%{_datadir}/omegat/images/*
%dir %{_datadir}/omegat/lib
%{_datadir}/omegat/lib/*
%dir %{_datadir}/omegat/plugins
%{_datadir}/omegat/plugins/*
%dir %{_datadir}/omegat/scripts
%{_datadir}/omegat/scripts/*
%doc docs/OmegaT-license.txt
%changelog
* Mon Jul 10 2023 Automatic Build System <autodist@mambasoft.it> 6.0.0-1mamba
- automatic version update by autodist
* Sat Mar 27 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 4.3.2-1mamba
- update to 4.3.2
* Sat Mar 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.3_08-1mamba
- update to 2.6.3_08
* Thu Mar 10 2011 gil <puntogil@libero.it> 2.2.3-1mamba
- update to 2.2.3
* Sun Dec 05 2010 gil <puntogil@libero.it> 2.0.5-1mamba
- package created by autospec