]> git.pld-linux.org Git - packages/openfst.git/blob - openfst.spec
- new
[packages/openfst.git] / openfst.spec
1 Summary:        OpenFst - library for finite state transducers development
2 Summary(pl.UTF-8):      OpenFst - biblioteka do programowania automatów skończonych z wyjściem
3 Name:           openfst
4 Version:        1.2.7
5 Release:        1
6 License:        Apache v2.0
7 Group:          Libraries
8 #Source0Download: http://www.openfst.org/twiki/bin/view/FST/FstDownload
9 Source0:        http://www.openfst.org/twiki/pub/FST/FstDownload/%{name}-%{version}.tar.gz
10 # Source0-md5:  97196a97d2a1ec88d612321e64dac2e4
11 Patch0:         %{name}-link.patch
12 URL:            http://www.openfst.org/
13 BuildRequires:  autoconf >= 2.50
14 BuildRequires:  automake
15 BuildRequires:  libicu-devel >= 4.2
16 BuildRequires:  libstdc++-devel >= 6:4.1
17 BuildRequires:  libtool >= 2:1.5
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 # modules dlopened from libfst refer to symbols from the library
21 %define         skip_post_check_so      .*%{_libdir}/fst/.*\.so.*
22
23 %description
24 OpenFst is a library for constructing, combining, optimizing, and
25 searching weighted finite-state transducers (FSTs).
26
27 %description -l pl.UTF-8
28 OpenFst to biblioteka do konstruowania, łączenia, optymalizacji i
29 przeszukiwania automatów skończonych z wyjściem (FST) i wagami.
30
31 %package devel
32 Summary:        Header files for OpenFst library
33 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki OpenFst
34 Group:          Development/Libraries
35 Requires:       %{name} = %{version}-%{release}
36 Requires:       libstdc++-devel >= 6:4.1
37
38 %description devel
39 Header files for OpenFst library.
40
41 %description devel -l pl.UTF-8
42 Pliki nagłówkowe biblioteki OpenFst.
43
44 %package static
45 Summary:        Static OpenFst library
46 Summary(pl.UTF-8):      Statyczna biblioteka OpenFst
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static OpenFst library.
52
53 %description static -l pl.UTF-8
54 Statyczna biblioteka OpenFst.
55
56 %prep
57 %setup -q
58 %patch0 -p1
59
60 %build
61 %{__libtoolize}
62 %{__aclocal} -I m4
63 %{__autoconf}
64 %{__autoheader}
65 %{__automake}
66 %configure \
67         --enable-compact-fsts \
68         --enable-const-fsts \
69         --enable-far \
70         --enable-lookahead-fsts \
71         --enable-pdt \
72         --enable-static \
73         --with-icu
74
75 %{__make}
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 %{__rm} $RPM_BUILD_ROOT%{_libdir}/fst/*.{la,a}
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %post   -p /sbin/ldconfig
89 %postun -p /sbin/ldconfig
90
91 %files
92 %defattr(644,root,root,755)
93 %doc AUTHORS NEWS README
94 %attr(755,root,root) %{_bindir}/far*
95 %attr(755,root,root) %{_bindir}/fst*
96 %attr(755,root,root) %{_bindir}/pdt*
97 %attr(755,root,root) %{_libdir}/libfst.so.*.*.*
98 %attr(755,root,root) %ghost %{_libdir}/libfst.so.0
99 %attr(755,root,root) %{_libdir}/libfstscript.so.*.*.*
100 %attr(755,root,root) %ghost %{_libdir}/libfstscript.so.0
101 %dir %{_libdir}/fst
102 %attr(755,root,root) %{_libdir}/fst/*.so*
103
104 %files devel
105 %defattr(644,root,root,755)
106 %attr(755,root,root) %{_libdir}/libfst.so
107 %attr(755,root,root) %{_libdir}/libfstscript.so
108 %{_libdir}/libfst.la
109 %{_libdir}/libfstscript.la
110 %{_includedir}/fst
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/libfst.a
115 %{_libdir}/libfstscript.a
This page took 0.161568 seconds and 3 git commands to generate.