rpms/mythes-en/devel mythes-en.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Caolan McNamara (caolanm)
fedora-extras-commits at redhat.com
Fri Nov 30 08:18:23 UTC 2007
Author: caolanm
Update of /cvs/pkgs/rpms/mythes-en/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv29887/devel
Modified Files:
.cvsignore sources
Added Files:
mythes-en.spec
Log Message:
--- NEW FILE mythes-en.spec ---
Name: mythes-en
Summary: English thesarus
Version: 3.0
Release: 1%{?dist}
Source0: http://wordnet.princeton.edu/3.0/WordNet-%{version}.tar.bz2
Source1: http://www.danielnaber.de/wn2ooo/wn2ooo20050723.tgz
Group: Applications/Text
URL: http://www.danielnaber.de/wn2ooo/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python, perl
License: BSD
BuildArch: noarch
%description
English thesarus.
%prep
%setup -q -n WordNet-%{version}
tar xzf %{SOURCE1}
%build
export WNHOME=`pwd`
python wn2ooo/wn2ooo.py > th_en_US_v2.dat
cat th_en_US_v2.dat | perl wn2ooo/th_gen_idx.pl > th_en_US_v2.idx
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/mythes
cp -p th_en_US_v2.* $RPM_BUILD_ROOT/%{_datadir}/mythes
pushd $RPM_BUILD_ROOT/%{_datadir}/mythes/
en_US_aliases="en_AU en_BS en_BZ en_CA en_GH en_GB en_IE en_IN en_JM en_NA en_NZ en_PH en_TT en_ZA en_ZW"
for lang in $en_US_aliases; do
ln -s th_en_US_v2.idx "th_"$lang"_v2.idx"
ln -s th_en_US_v2.dat "th_"$lang"_v2.dat"
done
popd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README AUTHORS
%dir %{_datadir}/mythes
%{_datadir}/mythes/*
%changelog
* Wed Nov 28 2007 Caolan McNamara <caolanm at redhat.com> - 3.0-1
- initial version
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/mythes-en/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 29 Nov 2007 20:14:28 -0000 1.1
+++ .cvsignore 30 Nov 2007 08:17:48 -0000 1.2
@@ -0,0 +1,2 @@
+WordNet-3.0.tar.bz2
+wn2ooo20050723.tgz
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/mythes-en/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 29 Nov 2007 20:14:28 -0000 1.1
+++ sources 30 Nov 2007 08:17:48 -0000 1.2
@@ -0,0 +1,2 @@
+89b4db7c6840ce69a8e315a3f83d996b WordNet-3.0.tar.bz2
+bbfe6fd46f47de3d1830588231a34b9c wn2ooo20050723.tgz
More information about the fedora-extras-commits
mailing list