]>
Commit | Line | Data |
---|---|---|
77e529fa KK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
cc3a4f07 | 5 | Summary: An English-language thesaurus library |
c0dc630f | 6 | Summary(pl.UTF-8): Angielskojęzyczna biblioteka słownika wyrazów bliskoznacznych |
cc3a4f07 | 7 | Name: aiksaurus |
7c6dbb83 | 8 | Version: 1.2.1 |
26138baa | 9 | Release: 13 |
cc3a4f07 JB |
10 | License: GPL |
11 | Group: Libraries | |
12 | Source0: http://dl.sourceforge.net/aiksaurus/%{name}-%{version}.tar.gz | |
7c6dbb83 | 13 | # Source0-md5: 3eae03b7c49843ccc9262e52846ea6b4 |
5597ed0e | 14 | Patch0: %{name}-pkgconfig.patch |
ca7af1a0 | 15 | Patch1: %{name}-configure_fix.patch |
cd62f1c2 | 16 | Patch2: %{name}-gcc43.patch |
cc3a4f07 | 17 | URL: http://aiksaurus.sourceforge.net/ |
cc3a4f07 | 18 | BuildRequires: autoconf |
7bc9cbd1 | 19 | BuildRequires: automake |
871e8913 | 20 | BuildRequires: gtk+2-devel >= 2:2.0.0 |
cc3a4f07 | 21 | BuildRequires: libstdc++-devel |
7bc9cbd1 | 22 | BuildRequires: libtool >= 2:1.5 |
cc3a4f07 JB |
23 | BuildRequires: pkgconfig |
24 | Obsoletes: Aiksaurus | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | Aiksaurus is an English-language thesaurus library that can be | |
29 | embedded in word processors, email composers, and other authoring | |
30 | software to provide thesaurus capabilities. A basic command line | |
31 | thesaurus program is also included. | |
32 | ||
39e4696f JR |
33 | %description -l pl.UTF-8 |
34 | Angielskojęzyczna biblioteka słownika wyrazów bliskoznacznych, która | |
35 | może być stosowana w procesorach tekstu, klientach pocztowych i innym | |
36 | oprogramowaniu. Prosty program działający z linii poleceń również | |
37 | został dołączony. | |
cc3a4f07 JB |
38 | |
39 | %package devel | |
40 | Summary: Header files for Aiksaurus | |
c0dc630f | 41 | Summary(pl.UTF-8): Pliki nagłówkowe Aiksaurus |
cc3a4f07 | 42 | Group: Development/Libraries |
7bc9cbd1 | 43 | Requires: %{name} = %{version}-%{release} |
cc3a4f07 JB |
44 | Requires: libstdc++-devel |
45 | Obsoletes: Aiksaurus-devel | |
46 | ||
47 | %description devel | |
48 | The header files are only needed for development of programs using the | |
49 | Aiksaurus. | |
50 | ||
39e4696f JR |
51 | %description devel -l pl.UTF-8 |
52 | W pakiecie tym znajdują się pliki nagłówkowe, przeznaczone dla | |
53 | programistów używających bibliotek Aiksaurus. | |
cc3a4f07 JB |
54 | |
55 | %package static | |
56 | Summary: Static Aiksaurus library | |
c0dc630f | 57 | Summary(pl.UTF-8): Biblioteka statyczna Aiksaurus |
cc3a4f07 | 58 | Group: Development/Libraries |
7bc9cbd1 | 59 | Requires: %{name}-devel = %{version}-%{release} |
cc3a4f07 JB |
60 | Obsoletes: Aiksaurus-static |
61 | ||
62 | %description static | |
63 | Static Aiksaurus library. | |
64 | ||
39e4696f | 65 | %description static -l pl.UTF-8 |
cc3a4f07 JB |
66 | Biblioteka statyczna Aiksaurus. |
67 | ||
68 | %package gtk | |
69 | Summary: GTK+ frontend for Aiksaurus, an English thesaurus | |
c0dc630f | 70 | Summary(pl.UTF-8): Frontend GTK+ dla Aiksaurusa - angielskojęzycznego słownika wyrazów bliskoznacznych |
cc3a4f07 | 71 | Group: Libraries |
7bc9cbd1 | 72 | Requires: %{name} = %{version}-%{release} |
871e8913 | 73 | Requires: gtk+2 >= 2:2.0.0 |
cc3a4f07 JB |
74 | |
75 | %description gtk | |
76 | GTK+ frontend for Aiksaurus, an English thesaurus. | |
77 | ||
39e4696f JR |
78 | %description gtk -l pl.UTF-8 |
79 | Frontend GTK+ dla Aiksaurusa - angielskojęzycznego słownika wyrazów | |
cc3a4f07 JB |
80 | bliskoznacznych. |
81 | ||
82 | %package gtk-devel | |
83 | Summary: Header files for GTK+ frontend for Aiksaurus | |
c0dc630f | 84 | Summary(pl.UTF-8): Pliki nagłówkowe frontendu GTK+ dla Aiksaurusa |
cc3a4f07 | 85 | Group: Development/Libraries |
7bc9cbd1 | 86 | Requires: %{name}-devel = %{version}-%{release} |
87 | Requires: %{name}-gtk = %{version}-%{release} | |
871e8913 | 88 | Requires: gtk+2-devel >= 2:2.0.0 |
cc3a4f07 JB |
89 | |
90 | %description gtk-devel | |
91 | Header files for GTK+ frontend for Aiksaurus. | |
92 | ||
39e4696f JR |
93 | %description gtk-devel -l pl.UTF-8 |
94 | Pliki nagłówkowe frontendu GTK+ dla Aiksaurusa. | |
cc3a4f07 JB |
95 | |
96 | %package gtk-static | |
97 | Summary: Static version of GTK+ frontend for Aiksaurus | |
c0dc630f | 98 | Summary(pl.UTF-8): Statycza wersja frontendu GTK+ dla Aiksaurusa |
cc3a4f07 | 99 | Group: Development/Libraries |
7bc9cbd1 | 100 | Requires: %{name}-gtk-devel = %{version}-%{release} |
cc3a4f07 JB |
101 | |
102 | %description gtk-static | |
103 | Static version of GTK+ frontend for Aiksaurus. | |
104 | ||
39e4696f | 105 | %description gtk-static -l pl.UTF-8 |
cc3a4f07 JB |
106 | Statycza wersja frontendu GTK+ dla Aiksaurusa. |
107 | ||
108 | %prep | |
109 | %setup -q | |
5597ed0e | 110 | %patch0 -p1 |
ca7af1a0 | 111 | %patch1 -p0 |
cd62f1c2 | 112 | %patch2 -p1 |
cc3a4f07 JB |
113 | |
114 | %build | |
115 | %{__libtoolize} | |
116 | %{__aclocal} | |
117 | %{__autoconf} | |
118 | %{__automake} | |
947376ea | 119 | LDFLAGS="%{rpmldflags} -Wl,--as-needed" |
cc3a4f07 | 120 | %configure \ |
77e529fa | 121 | %{?with_static_libs:--enable-static} |
cc3a4f07 JB |
122 | %{__make} |
123 | ||
124 | %install | |
125 | rm -rf $RPM_BUILD_ROOT | |
126 | ||
127 | %{__make} install \ | |
128 | DESTDIR=$RPM_BUILD_ROOT | |
129 | ||
26138baa AF |
130 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libAiksaurus.la |
131 | ||
cc3a4f07 JB |
132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
135 | %post -p /sbin/ldconfig | |
136 | %postun -p /sbin/ldconfig | |
137 | ||
138 | %post gtk -p /sbin/ldconfig | |
139 | %postun gtk -p /sbin/ldconfig | |
140 | ||
141 | %files | |
142 | %defattr(644,root,root,755) | |
143 | %doc AUTHORS ChangeLog README base/CHANGES | |
144 | %attr(755,root,root) %{_bindir}/aiksaurus | |
145 | %attr(755,root,root) %{_bindir}/caiksaurus | |
146 | %attr(755,root,root) %{_libdir}/libAiksaurus-*.so.*.*.* | |
147 | %{_datadir}/%{name} | |
148 | ||
149 | %files devel | |
150 | %defattr(644,root,root,755) | |
151 | %attr(755,root,root) %{_libdir}/libAiksaurus.so | |
cc3a4f07 JB |
152 | %{_includedir}/Aiksaurus |
153 | %exclude %{_includedir}/Aiksaurus/AiksaurusGTK*.h | |
154 | %{_pkgconfigdir}/aiksaurus-*.pc | |
155 | ||
77e529fa | 156 | %if %{with static_libs} |
cc3a4f07 JB |
157 | %files static |
158 | %defattr(644,root,root,755) | |
159 | %{_libdir}/libAiksaurus.a | |
77e529fa | 160 | %endif |
cc3a4f07 JB |
161 | |
162 | %files gtk | |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_bindir}/gaiksaurus | |
165 | %attr(755,root,root) %{_libdir}/libAiksaurusGTK-*.so.*.*.* | |
166 | ||
167 | %files gtk-devel | |
168 | %defattr(644,root,root,755) | |
169 | %attr(755,root,root) %{_libdir}/libAiksaurusGTK.so | |
170 | %{_libdir}/libAiksaurusGTK.la | |
171 | %{_includedir}/Aiksaurus/AiksaurusGTK*.h | |
172 | %{_pkgconfigdir}/gaiksaurus-*.pc | |
173 | ||
77e529fa | 174 | %if %{with static_libs} |
cc3a4f07 JB |
175 | %files gtk-static |
176 | %defattr(644,root,root,755) | |
177 | %{_libdir}/libAiksaurusGTK.a | |
77e529fa | 178 | %endif |