]>
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 | |
4 | Version: 3.2.0 | |
417a621b | 5 | Release: 5 |
8ca7b3aa JB |
6 | License: GPL v2+ |
7 | Group: Applications/Text | |
8 | Source0: http://downloads.sourceforge.net/apertium/%{name}-%{version}.tar.gz | |
9 | # Source0-md5: 803562e5ea0a5cd9ccb5ea79cca0d76d | |
10 | Patch0: %{name}-opt.patch | |
11 | Patch1: %{name}-DESTDIR.patch | |
73d24304 | 12 | Patch2: pcre.patch |
8ca7b3aa JB |
13 | URL: http://www.apertium.org/ |
14 | BuildRequires: autoconf >= 2.52 | |
15 | BuildRequires: automake | |
16 | BuildRequires: libstdc++-devel | |
17 | BuildRequires: libtool >= 2:1.5 | |
18 | BuildRequires: libxml2-devel >= 1:2.6.17 | |
19 | BuildRequires: lttoolbox-devel >= 3.2.0 | |
20 | BuildRequires: pcre-cxx-devel >= 6.4 | |
21 | BuildRequires: pkgconfig >= 1:0.15 | |
22 | Requires: libxml2 >= 1:2.6.17 | |
23 | Requires: libxslt-progs | |
24 | Requires: pcre-cxx >= 6.4 | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Apertium is a free/open-source platform for developing rule-based | |
29 | machine translation systems. | |
30 | ||
31 | %description -l pl.UTF-8 | |
32 | Apertium to wolnodostępna platforma do tworzenia maszynowych systemów | |
33 | tłumaczących opartych na regułach. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for apertium library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki apertium | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
40 | Requires: libstdc++-devel | |
41 | Requires: libxml2-devel >= 1:2.6.17 | |
42 | Requires: apertium-devel >= 3.2.0 | |
43 | Requires: pcre-cxx-devel >= 6.4 | |
44 | ||
45 | %description devel | |
46 | Header files for apertium library. | |
47 | ||
48 | %description devel -l pl.UTF-8 | |
49 | Pliki nagłówkowe biblioteki apertium. | |
50 | ||
51 | %package static | |
52 | Summary: Static apertium library | |
53 | Summary(pl.UTF-8): Statyczna biblioteka apertium | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-devel = %{version}-%{release} | |
56 | ||
57 | %description static | |
58 | Static apertium library. | |
59 | ||
60 | %description static -l pl.UTF-8 | |
61 | Statyczna biblioteka apertium. | |
62 | ||
63 | %prep | |
64 | %setup -q | |
65 | %patch0 -p1 | |
66 | %patch1 -p1 | |
73d24304 | 67 | %patch2 -p1 |
8ca7b3aa JB |
68 | |
69 | %build | |
70 | %{__libtoolize} | |
71 | %{__aclocal} | |
72 | %{__autoconf} | |
73 | %{__autoheader} | |
74 | %{__automake} | |
75 | %configure | |
76 | ||
b2ba0898 | 77 | %{__make} -j1 |
8ca7b3aa JB |
78 | |
79 | %install | |
80 | rm -rf $RPM_BUILD_ROOT | |
81 | ||
82 | %{__make} install \ | |
83 | DESTDIR=$RPM_BUILD_ROOT | |
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 ChangeLog NEWS README README-MODES | |
94 | %attr(755,root,root) %{_bindir}/apertium | |
95 | %attr(755,root,root) %{_bindir}/apertium-* | |
96 | %attr(755,root,root) %{_libdir}/libapertium3-3.2.so.*.*.* | |
97 | %attr(755,root,root) %ghost %{_libdir}/libapertium3-3.2.so.0 | |
98 | %{_datadir}/apertium | |
99 | %{_mandir}/man1/apertium.1* | |
100 | %{_mandir}/man1/apertium-*.1* | |
101 | ||
102 | %files devel | |
103 | %defattr(644,root,root,755) | |
104 | %attr(755,root,root) %{_libdir}/libapertium3.so | |
105 | %{_libdir}/libapertium3.la | |
106 | %{_includedir}/apertium-3.2 | |
107 | %{_pkgconfigdir}/apertium-3.2.pc | |
108 | ||
109 | %files static | |
110 | %defattr(644,root,root,755) | |
111 | %{_libdir}/libapertium3.a |