File tree-tagger-data-slovak-utf8.spec of Package tree-tagger-data-slovak-utf8

Name:      tree-tagger-data-slovak-utf8
Summary:   Parameter file
Version:   3.2
Release:   1
License:   TreeTagger License
Group:     Productivity/Scientific/Other
Source:    %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires:  perl

The TreeTagger is a tool for annotating text with part-of-speech and lemma
information. It was developed by Helmut Schmid in the TC project at the Institute
for Computational Linguistics of the University of Stuttgart.
This package provides the parameter file corresponding to the title language
and encoding.


gunzip -v *

PARNAME=`echo %{name} | sed -e 's/tree-tagger-data-//g'`
mkdir -p $RPM_BUILD_ROOT%{_datadir}/tree-tagger/models
cp *.bin $RPM_BUILD_ROOT%{_datadir}/tree-tagger/models/$PARNAME.par
(cd $RPM_BUILD_ROOT; find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' > $RPM_BUILD_DIR/file.list)


%files -f ../file.list
%dir %{_datadir}/tree-tagger
%dir %{_datadir}/tree-tagger/models