]> git.pld-linux.org Git - packages/hfst.git/blame - hfst.spec
- updated to 3.1.1 (note: new soname)
[packages/hfst.git] / hfst.spec
CommitLineData
fee79ac8
JB
1#
2# Conditional build:
3%bcond_with foma # use foma by linking with libfoma (GPL v2-strict, which is not compliant)
4#
ca7f1440
JB
5Summary: Helsinki Finite-State Transducer (library and application suite)
6Summary(pl.UTF-8): Helsinki Finite-State Transducer (biblioteka i zestaw aplikacji)
7Name: hfst
01963880 8Version: 3.1.1
1cc1cae0 9Release: 1
fee79ac8 10License: GPL v3
ca7f1440
JB
11Group: Applications/Text
12Source0: http://downloads.sourceforge.net/hfst/%{name}-%{version}.tar.gz
01963880 13# Source0-md5: 31fad25e368071b25006d19ed6cf438e
fee79ac8 14Patch0: %{name}-pc.patch
ca7f1440 15URL: http://www.ling.helsinki.fi/kieliteknologia/tutkimus/hfst/
fee79ac8
JB
16BuildRequires: SFST-devel
17BuildRequires: autoconf >= 2.62
18BuildRequires: automake >= 1:1.11
ca7f1440 19BuildRequires: bison
fee79ac8 20%{?with_foma:BuildRequires: foma-devel}
ca7f1440
JB
21BuildRequires: flex >= 2.5.35
22BuildRequires: libstdc++-devel
23BuildRequires: libtool >= 2:2.0
fee79ac8 24BuildRequires: openfst-devel
ca7f1440
JB
25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27%description
28The Helsinki Finite-State Transducer software is intended for the
29implementation of morphological analysers and other tools which are
30based on weighted and unweigted finite-state transducer technology.
31
32%description -l pl.UTF-8
33Pakiet HFST (Helsinki Finite-State Transducer) to oprogramowanie
34służące do implementacji analizatorów morfologicznych i innych
35narzędzi opartych na technice przetwarzania ze skończoną liczbą
36stanów z wagami lub bez.
37
38%package devel
39Summary: Header files for HFST library
40Summary(pl.UTF-8): Pliki nagłówkowe biblioteki HFST
41Group: Development/Libraries
42Requires: %{name} = %{version}-%{release}
fee79ac8
JB
43Requires: SFST-devel
44%{?with_foma:Requires: foma-devel}
ca7f1440 45Requires: libstdc++-devel
fee79ac8 46Requires: openfst-devel
ca7f1440
JB
47
48%description devel
49Header files for HFST library.
50
51%description devel -l pl.UTF-8
52Pliki nagłówkowe biblioteki HFST.
53
54%package static
55Summary: Static HFST library
56Summary(pl.UTF-8): Statyczna biblioteka HFST
57Group: Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
59
60%description static
61Static HFST library.
62
63%description static -l pl.UTF-8
64Statyczna biblioteka HFST.
65
66%prep
67%setup -q
68%patch0 -p1
ca7f1440
JB
69
70%build
ca7f1440
JB
71%{__libtoolize}
72%{__aclocal}
73%{__autoconf}
74%{__autoheader}
75%{__automake}
ca7f1440 76%configure \
fee79ac8
JB
77 FOMACLI=/usr/bin/foma \
78 --disable-silent-rules \
6dc89b8c
JB
79 --enable-static \
80 %{!?with_foma:--without-foma}
ca7f1440
JB
81
82%{__make}
83
84%install
85rm -rf $RPM_BUILD_ROOT
86
87%{__make} install \
88 DESTDIR=$RPM_BUILD_ROOT
89
fee79ac8
JB
90# obsoleted by pkgconfig
91%{__rm} $RPM_BUILD_ROOT%{_libdir}/libhfst.la
92
7cf9be20
JB
93# for transducer data
94install -d $RPM_BUILD_ROOT%{_datadir}/hfst
95
ca7f1440
JB
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99%post -p /sbin/ldconfig
100%postun -p /sbin/ldconfig
101
102%files
103%defattr(644,root,root,755)
01963880 104%doc AUTHORS NEWS README THANKS
ca7f1440
JB
105%attr(755,root,root) %{_bindir}/hfst-*
106%attr(755,root,root) %{_bindir}/htwolcpre*
ca7f1440 107%attr(755,root,root) %{_libdir}/libhfst.so.*.*.*
01963880 108%attr(755,root,root) %ghost %{_libdir}/libhfst.so.6
7cf9be20 109%dir %{_datadir}/hfst
ca7f1440
JB
110%{_mandir}/man1/hfst-*.1*
111
112%files devel
113%defattr(644,root,root,755)
114%attr(755,root,root) %{_libdir}/libhfst.so
fee79ac8 115%{_includedir}/hfst
ca7f1440
JB
116%{_pkgconfigdir}/hfst.pc
117
118%files static
119%defattr(644,root,root,755)
120%{_libdir}/libhfst.a
This page took 0.102357 seconds and 4 git commands to generate.