]>
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 |
bd169dcc | 5 | Release: 2 |
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 |
5a34afb9 JR |
10 | Source1: https://raw.githubusercontent.com/apertium/apertium-get/master/apertium-get |
11 | # Source1-md5: e5c863207affed7db787138ae878ad56 | |
12 | Patch0: no-apertium-get.patch | |
8ca7b3aa JB |
13 | URL: http://www.apertium.org/ |
14 | BuildRequires: autoconf >= 2.52 | |
15 | BuildRequires: automake | |
2136823b JB |
16 | BuildRequires: bash |
17 | BuildRequires: flex | |
8ca7b3aa JB |
18 | BuildRequires: libstdc++-devel |
19 | BuildRequires: libtool >= 2:1.5 | |
20 | BuildRequires: libxml2-devel >= 1:2.6.17 | |
2136823b JB |
21 | BuildRequires: libxml2-progs >= 1:2.6.17 |
22 | BuildRequires: libxslt-progs | |
7458519f | 23 | BuildRequires: lttoolbox-devel >= 3.3.3 |
8ca7b3aa JB |
24 | BuildRequires: pcre-cxx-devel >= 6.4 |
25 | BuildRequires: pkgconfig >= 1:0.15 | |
26 | Requires: libxml2 >= 1:2.6.17 | |
27 | Requires: libxslt-progs | |
7458519f | 28 | Requires: lttoolbox >= 3.3.3 |
8ca7b3aa JB |
29 | Requires: pcre-cxx >= 6.4 |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | Apertium is a free/open-source platform for developing rule-based | |
34 | machine translation systems. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Apertium to wolnodostępna platforma do tworzenia maszynowych systemów | |
38 | tłumaczących opartych na regułach. | |
39 | ||
40 | %package devel | |
41 | Summary: Header files for apertium library | |
42 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki apertium | |
43 | Group: Development/Libraries | |
44 | Requires: %{name} = %{version}-%{release} | |
45 | Requires: libstdc++-devel | |
46 | Requires: libxml2-devel >= 1:2.6.17 | |
7458519f | 47 | Requires: lttoolbox-devel >= 3.3.3 |
8ca7b3aa JB |
48 | Requires: pcre-cxx-devel >= 6.4 |
49 | ||
50 | %description devel | |
51 | Header files for apertium library. | |
52 | ||
53 | %description devel -l pl.UTF-8 | |
54 | Pliki nagłówkowe biblioteki apertium. | |
55 | ||
56 | %package static | |
57 | Summary: Static apertium library | |
58 | Summary(pl.UTF-8): Statyczna biblioteka apertium | |
59 | Group: Development/Libraries | |
60 | Requires: %{name}-devel = %{version}-%{release} | |
61 | ||
62 | %description static | |
63 | Static apertium library. | |
64 | ||
65 | %description static -l pl.UTF-8 | |
66 | Statyczna biblioteka apertium. | |
67 | ||
68 | %prep | |
69 | %setup -q | |
eb145aea | 70 | %patch0 -p1 |
8ca7b3aa JB |
71 | |
72 | %build | |
73 | %{__libtoolize} | |
74 | %{__aclocal} | |
75 | %{__autoconf} | |
76 | %{__autoheader} | |
77 | %{__automake} | |
78 | %configure | |
79 | ||
24286f2f | 80 | %{__make} |
8ca7b3aa JB |
81 | |
82 | %install | |
83 | rm -rf $RPM_BUILD_ROOT | |
84 | ||
85 | %{__make} install \ | |
86 | DESTDIR=$RPM_BUILD_ROOT | |
87 | ||
5a34afb9 JR |
88 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir} |
89 | ||
8ca7b3aa JB |
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 ChangeLog NEWS README README-MODES | |
99 | %attr(755,root,root) %{_bindir}/apertium | |
100 | %attr(755,root,root) %{_bindir}/apertium-* | |
24286f2f JR |
101 | %attr(755,root,root) %{_libdir}/libapertium3-3.5.so.*.*.* |
102 | %attr(755,root,root) %ghost %{_libdir}/libapertium3-3.5.so.1 | |
8ca7b3aa JB |
103 | %{_datadir}/apertium |
104 | %{_mandir}/man1/apertium.1* | |
105 | %{_mandir}/man1/apertium-*.1* | |
106 | ||
107 | %files devel | |
108 | %defattr(644,root,root,755) | |
109 | %attr(755,root,root) %{_libdir}/libapertium3.so | |
110 | %{_libdir}/libapertium3.la | |
24286f2f | 111 | %{_includedir}/apertium-3.5 |
2136823b JB |
112 | %{_pkgconfigdir}/apertium.pc |
113 | %{_aclocaldir}/apertium.m4 | |
8ca7b3aa JB |
114 | |
115 | %files static | |
116 | %defattr(644,root,root,755) | |
117 | %{_libdir}/libapertium3.a |