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