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