]> git.pld-linux.org Git - SPECS.git/blob - sphinx3.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / sphinx3.spec
1 Summary:        CMU Sphinx III - Speech recognitnion engine
2 Summary(pl.UTF-8):      CMU Sphinx III - System rozpoznawania mowy
3 Name:           sphinx3
4 Version:        0.8
5 Release:        1
6 License:        BSD-like
7 Group:          Applications/Communications
8 Source0:        http://downloads.sourceforge.net/cmusphinx/%{name}-%{version}.tar.bz2
9 # Source0-md5:  e32bf4c507509b27482adf4cfc467e8f
10 Patch0:         %{name}-am.patch
11 Patch1:         %{name}-update.patch
12 Patch2:         %{name}-format.patch
13 Patch3:         %{name}-install.patch
14 Patch4:         %{name}-link.patch
15 URL:            https://cmusphinx.github.io/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  libtool
19 BuildRequires:  sphinxbase-devel >= 0.8
20 Requires:       sphinxbase >= 0.8
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 One of Carnegie Mellon University's open source large vocabulary,
25 speaker-independent continuous speech recognition engine.
26
27 Plug your microphone, launch sphinx3-simple, and test it!
28
29 %description -l pl.UTF-8
30 System rozpoznawania ciągłej mowy, niezależny od mówiącego, z dużym
31 słownikiem, pochodzący z Carnegie Mellon University.
32
33 Podłącz mikrofon, uruchom sphinx3-simple i testuj!
34
35 %package devel
36 Summary:        CMU Sphinx III header files
37 Summary(pl.UTF-8):      Pliki nagłówkowe bibliotek CMU Sphinx III
38 Group:          Development/Libraries
39 Requires:       %{name} = %{version}-%{release}
40 Requires:       sphinxbase-devel >= 0.8
41
42 %description devel
43 CMU Sphinx III header files.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe bibliotek CMU Sphinx III.
47
48 %package static
49 Summary:        Static CMU Sphinx III libraries
50 Summary(pl.UTF-8):      Biblioteki statyczne CMU Sphinx III
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{version}-%{release}
53
54 %description static
55 Static version of CMU Sphinx III libraries.
56
57 %description static -l pl.UTF-8
58 Statyczne wersje bibliotek CMU Sphinx III.
59
60 %package doc
61 Summary:        Documentation for CMU Sphinx III
62 Summary(pl.UTF-8):      Dokumentacja pakietu CMU Sphinx III
63 Group:          Documentation
64
65 %description doc
66 Documentation for CMU Sphinx III.
67
68 %description doc -l pl.UTF-8
69 Dokumentacja pakietu CMU Sphinx III.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74 %patch1 -p1
75 %patch2 -p1
76 %patch3 -p1
77 %patch4 -p1
78
79 find doc -name .svn | xargs %{__rm} -r
80
81 # subdirs install is broken
82 mkdir -p doc/.hidden
83 %{__mv} doc/{images,s3,s3-2_files} doc/.hidden
84
85 %build
86 %{__libtoolize}
87 %{__aclocal}
88 %{__autoconf}
89 %{__automake}
90 %configure
91 %{__make}
92
93 %install
94 rm -rf $RPM_BUILD_ROOT
95
96 %{__make} install \
97         DESTDIR=$RPM_BUILD_ROOT
98
99 # obsoleted by pkg-config
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libs3decoder.la
101
102 install -d $RPM_BUILD_ROOT%{_docdir}
103 %{__mv} $RPM_BUILD_ROOT%{_datadir}/%{name}/doc $RPM_BUILD_ROOT%{_docdir}/%{name}
104 %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/doxygen.{cfg,main}
105 # remaining files, not handled properly by automake install
106 cp -pr doc/.hidden/{images,s3,s3-2_files} $RPM_BUILD_ROOT%{_docdir}/%{name}
107 %{__rm} $RPM_BUILD_ROOT%{_docdir}/%{name}/{images/Makefile,s3-2_files/{Makefile,filelist.xml}}
108
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc AUTHORS COPYING ChangeLog NEWS README
119 %attr(755,root,root) %{_bindir}/sphinx3-simple
120 %attr(755,root,root) %{_bindir}/sphinx3_*
121 %attr(755,root,root) %{_libdir}/libs3decoder.so.*.*.*
122 %attr(755,root,root) %ghost %{_libdir}/libs3decoder.so.0
123 %{_datadir}/%{name}
124
125 %files devel
126 %defattr(644,root,root,755)
127 %attr(755,root,root) %{_libdir}/libs3decoder.so
128 %{_includedir}/sphinx3
129 %{_pkgconfigdir}/sphinx3.pc
130
131 %files static
132 %defattr(644,root,root,755)
133 %{_libdir}/libs3decoder.a
134
135 %files doc
136 %defattr(644,root,root,755)
137 %{_docdir}/%{name}
This page took 0.114909 seconds and 3 git commands to generate.