]>
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 |
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 | |
8ca7b3aa JB |
70 | |
71 | %build | |
72 | %{__libtoolize} | |
73 | %{__aclocal} | |
74 | %{__autoconf} | |
75 | %{__autoheader} | |
76 | %{__automake} | |
77 | %configure | |
78 | ||
24286f2f | 79 | %{__make} |
8ca7b3aa JB |
80 | |
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %{__make} install \ | |
85 | DESTDIR=$RPM_BUILD_ROOT | |
86 | ||
5a34afb9 JR |
87 | cp -p %{SOURCE1} $RPM_BUILD_ROOT/%{_bindir} |
88 | ||
8ca7b3aa JB |
89 | %clean |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
95 | %files | |
96 | %defattr(644,root,root,755) | |
97 | %doc AUTHORS ChangeLog NEWS README README-MODES | |
98 | %attr(755,root,root) %{_bindir}/apertium | |
99 | %attr(755,root,root) %{_bindir}/apertium-* | |
24286f2f JR |
100 | %attr(755,root,root) %{_libdir}/libapertium3-3.5.so.*.*.* |
101 | %attr(755,root,root) %ghost %{_libdir}/libapertium3-3.5.so.1 | |
8ca7b3aa JB |
102 | %{_datadir}/apertium |
103 | %{_mandir}/man1/apertium.1* | |
104 | %{_mandir}/man1/apertium-*.1* | |
105 | ||
106 | %files devel | |
107 | %defattr(644,root,root,755) | |
108 | %attr(755,root,root) %{_libdir}/libapertium3.so | |
109 | %{_libdir}/libapertium3.la | |
24286f2f | 110 | %{_includedir}/apertium-3.5 |
2136823b JB |
111 | %{_pkgconfigdir}/apertium.pc |
112 | %{_aclocaldir}/apertium.m4 | |
8ca7b3aa JB |
113 | |
114 | %files static | |
115 | %defattr(644,root,root,755) | |
116 | %{_libdir}/libapertium3.a |