]>
Commit | Line | Data |
---|---|---|
be300adb JB |
1 | Summary: VISL CG-3 constraint grammar system |
2 | Summary(pl.UTF-8): VISL CG-3 - system ograniczonej gramatyki | |
3 | Name: vislcg3 | |
40c86dee | 4 | Version: 0.9.8.9063 |
7eb2e7b1 | 5 | Release: 2 |
be300adb JB |
6 | License: GPL v3+ |
7 | Group: Applications/Text | |
8 | Source0: http://beta.visl.sdu.dk/download/vislcg3/%{name}-%{version}.tar.gz | |
40c86dee | 9 | # Source0-md5: f88a3d6bd907219e28bd616e6dfa0f12 |
be300adb | 10 | URL: http://beta.visl.sdu.dk/cg3.html |
73625fe9 | 11 | BuildRequires: cmake >= 2.6.4 |
be300adb | 12 | BuildRequires: boost-devel >= 1.36.0 |
de5f74dc | 13 | BuildRequires: libicu-devel >= 4.2 |
be300adb | 14 | BuildRequires: libstdc++-devel |
73625fe9 | 15 | BuildRequires: rpmbuild(macros) >= 1.603 |
be300adb JB |
16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | VISL CG-3 constraint grammar system. | |
20 | ||
21 | %description -l pl.UTF-8 | |
22 | VISL CG-3 - system ograniczonej gramatyki. | |
23 | ||
24 | %prep | |
25 | %setup -q | |
be300adb | 26 | |
61dbc74e JB |
27 | sed -i -e 's#DESTINATION lib#DESTINATION %{_lib}#g' \ |
28 | -e 's#GOOGLE_TCMALLOC_LIB tcmalloc#GOOGLE_TCMALLOC_LIB tcmalloc_disabled#' \ | |
29 | src/CMakeLists.txt | |
de8d4947 | 30 | |
be300adb | 31 | %build |
73625fe9 | 32 | %cmake . |
be300adb JB |
33 | |
34 | %{__make} | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | ||
39 | %{__make} install \ | |
40 | DESTDIR=$RPM_BUILD_ROOT | |
41 | ||
73625fe9 JB |
42 | # "improved" cmake scripts don't install it |
43 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
44 | install src/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
45 | ||
46 | # API not installed | |
47 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libcg3.a | |
48 | ||
be300adb JB |
49 | %clean |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %files | |
53 | %defattr(644,root,root,755) | |
40c86dee | 54 | %doc AUTHORS README TODO |
be300adb JB |
55 | %attr(755,root,root) %{_bindir}/cg-comp |
56 | %attr(755,root,root) %{_bindir}/cg-conv | |
57 | %attr(755,root,root) %{_bindir}/cg-proc | |
adc38418 | 58 | %attr(755,root,root) %{_bindir}/cg3-autobin.pl |
be300adb | 59 | %attr(755,root,root) %{_bindir}/vislcg3 |
73625fe9 | 60 | %attr(755,root,root) %{_libdir}/libcg3.so |
be300adb JB |
61 | %{_mandir}/man1/cg-comp.1* |
62 | %{_mandir}/man1/cg-proc.1* | |
63 | %{_mandir}/man1/vislcg3.1* |