]> git.pld-linux.org Git - packages/openfst.git/blob - openfst.spec
74bf133b77f4b4957c15759ba6b1dbecdce006e7
[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.3.2
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:  9b0d777f177d9917bb93adef19b7098a
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 BuildRequires:  sed >= 4.0
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 # modules dlopened from libfst refer to symbols from the library
22 %define         skip_post_check_so      .*%{_libdir}/fst/.*\.so.*
23
24 %description
25 OpenFst is a library for constructing, combining, optimizing, and
26 searching weighted finite-state transducers (FSTs).
27
28 %description -l pl.UTF-8
29 OpenFst to biblioteka do konstruowania, łączenia, optymalizacji i
30 przeszukiwania automatów skończonych z wyjściem (FST) i wagami.
31
32 %package devel
33 Summary:        Header files for OpenFst library
34 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki OpenFst
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37 Requires:       libstdc++-devel >= 6:4.1
38
39 %description devel
40 Header files for OpenFst library.
41
42 %description devel -l pl.UTF-8
43 Pliki nagłówkowe biblioteki OpenFst.
44
45 %package static
46 Summary:        Static OpenFst library
47 Summary(pl.UTF-8):      Statyczna biblioteka OpenFst
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}-%{release}
50
51 %description static
52 Static OpenFst library.
53
54 %description static -l pl.UTF-8
55 Statyczna biblioteka OpenFst.
56
57 %prep
58 %setup -q
59 %patch0 -p1
60
61 # kill am portability warning (there is -Werror)
62 sed -i -e '/AC_PROG_LIBTOOL/aAM_PROG_AR' configure.ac
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I m4
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         --enable-compact-fsts \
72         --enable-const-fsts \
73         --enable-far \
74         --enable-lookahead-fsts \
75         --enable-ngram-fsts \
76         --enable-pdt \
77         --enable-static \
78         --with-icu
79
80 %{__make}
81
82 %install
83 rm -rf $RPM_BUILD_ROOT
84
85 %{__make} install \
86         DESTDIR=$RPM_BUILD_ROOT
87
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/fst/*.{la,a}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %post   -p /sbin/ldconfig
94 %postun -p /sbin/ldconfig
95
96 %files
97 %defattr(644,root,root,755)
98 %doc AUTHORS COPYING NEWS README
99 %attr(755,root,root) %{_bindir}/far*
100 %attr(755,root,root) %{_bindir}/fst*
101 %attr(755,root,root) %{_bindir}/pdt*
102 %attr(755,root,root) %{_libdir}/libfst.so.*.*.*
103 %attr(755,root,root) %ghost %{_libdir}/libfst.so.0
104 %attr(755,root,root) %{_libdir}/libfstscript.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libfstscript.so.0
106 %dir %{_libdir}/fst
107 %attr(755,root,root) %{_libdir}/fst/*.so*
108
109 %files devel
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_libdir}/libfst.so
112 %attr(755,root,root) %{_libdir}/libfstscript.so
113 %{_libdir}/libfst.la
114 %{_libdir}/libfstscript.la
115 %{_includedir}/fst
116
117 %files static
118 %defattr(644,root,root,755)
119 %{_libdir}/libfst.a
120 %{_libdir}/libfstscript.a
This page took 0.046108 seconds and 2 git commands to generate.