LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File tree-tagger-data-slovak-utf8.spec of Package tree-tagger-data-slovak-utf8 (Project home:inescid:language)

Name:      tree-tagger-data-slovak-utf8
Summary:   Parameter file
Version:   3.2
Release:   1
License:   TreeTagger License
Url:       http://www.cis.uni-muenchen.de/~schmid/tools/TreeTagger/
Group:     Productivity/Scientific/Other
Source:    %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires:  perl

%description
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.

%prep
%setup

%build
gunzip -v *

%install
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)

%clean
rm -rf $RPM_BUILD_ROOT

%files -f ../file.list
%defattr(-,root,root)
%dir %{_datadir}/tree-tagger
%dir %{_datadir}/tree-tagger/models

%changelog