]>
Commit | Line | Data |
---|---|---|
8ca7b3aa JB |
1 | Summary: lttoolbox-based translation modules generator |
2 | Summary(pl.UTF-8): Oparty na pakiecie lttoolbox generator modułów tłumaczących | |
3 | Name: apertium | |
24286f2f | 4 | Version: 3.5.2 |
2136823b | 5 | Release: 1 |
8ca7b3aa JB |
6 | License: GPL v2+ |
7 | Group: Applications/Text | |
8 | Source0: http://downloads.sourceforge.net/apertium/%{name}-%{version}.tar.gz | |
24286f2f | 9 | # Source0-md5: 9cce54e577dd4a1cc6f834e1bdd0bf73 |
8ca7b3aa JB |
10 | URL: http://www.apertium.org/ |
11 | BuildRequires: autoconf >= 2.52 | |
12 | BuildRequires: automake | |
2136823b JB |
13 | BuildRequires: bash |
14 | BuildRequires: flex | |
8ca7b3aa JB |
15 | BuildRequires: libstdc++-devel |
16 | BuildRequires: libtool >= 2:1.5 | |
17 | BuildRequires: libxml2-devel >= 1:2.6.17 | |
2136823b JB |
18 | BuildRequires: libxml2-progs >= 1:2.6.17 |
19 | BuildRequires: libxslt-progs | |
7458519f | 20 | BuildRequires: lttoolbox-devel >= 3.3.3 |
8ca7b3aa JB |
21 | BuildRequires: pcre-cxx-devel >= 6.4 |
22 | BuildRequires: pkgconfig >= 1:0.15 | |
23 | Requires: libxml2 >= 1:2.6.17 | |
24 | Requires: libxslt-progs | |
7458519f | 25 | Requires: lttoolbox >= 3.3.3 |
8ca7b3aa JB |
26 | Requires: pcre-cxx >= 6.4 |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | Apertium is a free/open-source platform for developing rule-based | |
31 | machine translation systems. | |
32 | ||
33 | %description -l pl.UTF-8 | |
34 | Apertium to wolnodostępna platforma do tworzenia maszynowych systemów | |
35 | tłumaczących opartych na regułach. | |
36 | ||
37 | %package devel | |
38 | Summary: Header files for apertium library | |
39 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki apertium | |
40 | Group: Development/Libraries | |
41 | Requires: %{name} = %{version}-%{release} | |
42 | Requires: libstdc++-devel | |
43 | Requires: libxml2-devel >= 1:2.6.17 | |
7458519f | 44 | Requires: lttoolbox-devel >= 3.3.3 |
8ca7b3aa JB |
45 | Requires: pcre-cxx-devel >= 6.4 |
46 | ||
47 | %description devel | |
48 | Header files for apertium library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki apertium. | |
52 | ||
53 | %package static | |
54 | Summary: Static apertium library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka apertium | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static apertium library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka apertium. | |
64 | ||
65 | %prep | |
66 | %setup -q | |
8ca7b3aa JB |
67 | |
68 | %build | |
69 | %{__libtoolize} | |
70 | %{__aclocal} | |
71 | %{__autoconf} | |
72 | %{__autoheader} | |
73 | %{__automake} | |
74 | %configure | |
75 | ||
24286f2f | 76 | %{__make} |
8ca7b3aa JB |
77 | |
78 | %install | |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} install \ | |
82 | DESTDIR=$RPM_BUILD_ROOT | |
83 | ||
84 | %clean | |
85 | rm -rf $RPM_BUILD_ROOT | |
86 | ||
87 | %post -p /sbin/ldconfig | |
88 | %postun -p /sbin/ldconfig | |
89 | ||
90 | %files | |
91 | %defattr(644,root,root,755) | |
92 | %doc AUTHORS ChangeLog NEWS README README-MODES | |
93 | %attr(755,root,root) %{_bindir}/apertium | |
94 | %attr(755,root,root) %{_bindir}/apertium-* | |
24286f2f JR |
95 | %attr(755,root,root) %{_libdir}/libapertium3-3.5.so.*.*.* |
96 | %attr(755,root,root) %ghost %{_libdir}/libapertium3-3.5.so.1 | |
8ca7b3aa JB |
97 | %{_datadir}/apertium |
98 | %{_mandir}/man1/apertium.1* | |
99 | %{_mandir}/man1/apertium-*.1* | |
100 | ||
101 | %files devel | |
102 | %defattr(644,root,root,755) | |
103 | %attr(755,root,root) %{_libdir}/libapertium3.so | |
104 | %{_libdir}/libapertium3.la | |
24286f2f | 105 | %{_includedir}/apertium-3.5 |
2136823b JB |
106 | %{_pkgconfigdir}/apertium.pc |
107 | %{_aclocaldir}/apertium.m4 | |
8ca7b3aa JB |
108 | |
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libapertium3.a |