]>
Commit | Line | Data |
---|---|---|
e16225c3 | 1 | # TODO: package /usr/share/emacs/site-lisp/cg.el |
be300adb JB |
2 | Summary: VISL CG-3 constraint grammar system |
3 | Summary(pl.UTF-8): VISL CG-3 - system ograniczonej gramatyki | |
4 | Name: vislcg3 | |
e16225c3 JB |
5 | Version: 0.9.9.10800 |
6 | Release: 1 | |
be300adb JB |
7 | License: GPL v3+ |
8 | Group: Applications/Text | |
e16225c3 JB |
9 | Source0: http://beta.visl.sdu.dk/download/vislcg3/cg3-0.9.9~r10800.tar.bz2 |
10 | # Source0-md5: c6a6549cf040077949ee33ca239d3128 | |
be300adb | 11 | URL: http://beta.visl.sdu.dk/cg3.html |
e16225c3 JB |
12 | BuildRequires: cmake >= 2.8.9 |
13 | BuildRequires: boost-devel >= 1.48.0 | |
de5f74dc | 14 | BuildRequires: libicu-devel >= 4.2 |
be300adb | 15 | BuildRequires: libstdc++-devel |
73625fe9 | 16 | BuildRequires: rpmbuild(macros) >= 1.603 |
bc4b9588 | 17 | BuildRequires: sed >= 4.0 |
be300adb JB |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
19 | ||
20 | %description | |
21 | VISL CG-3 constraint grammar system. | |
22 | ||
23 | %description -l pl.UTF-8 | |
24 | VISL CG-3 - system ograniczonej gramatyki. | |
25 | ||
bc4b9588 JB |
26 | %package devel |
27 | Summary: Header file for VISL CG-3 library | |
28 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki VISL CG-3 | |
29 | Group: Development/Libraries | |
30 | Requires: %{name} = %{version}-%{release} | |
31 | ||
32 | %description devel | |
33 | Header file for VISL CG-3 library. | |
34 | ||
35 | %description devel -l pl.UTF-8 | |
36 | Plik nagłówkowy biblioteki VISL CG-3. | |
37 | ||
38 | %package static | |
39 | Summary: Static VISL CG-3 library | |
40 | Summary(pl.UTF-8): Statyczna biblioteka VISL CG-3 | |
41 | Group: Development/Libraries | |
42 | Requires: %{name}-devel = %{version}-%{release} | |
43 | ||
44 | %description static | |
45 | Static VISL CG-3 library. | |
46 | ||
47 | %description static -l pl.UTF-8 | |
48 | Statyczna biblioteka VISL CG-3. | |
49 | ||
be300adb | 50 | %prep |
e16225c3 | 51 | %setup -q -n cg3 |
de8d4947 | 52 | |
be300adb | 53 | %build |
bc4b9588 JB |
54 | # it expectls only relative CMAKE_INSTALL_LIBDIR |
55 | %cmake . \ | |
56 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
57 | -DOPT_TCMALLOC=OFF | |
be300adb JB |
58 | |
59 | %{__make} | |
60 | ||
61 | %install | |
62 | rm -rf $RPM_BUILD_ROOT | |
63 | ||
64 | %{__make} install \ | |
65 | DESTDIR=$RPM_BUILD_ROOT | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
bc4b9588 JB |
70 | %post -p /sbin/ldconfig |
71 | %postun -p /sbin/ldconfig | |
72 | ||
be300adb JB |
73 | %files |
74 | %defattr(644,root,root,755) | |
40c86dee | 75 | %doc AUTHORS README TODO |
be300adb JB |
76 | %attr(755,root,root) %{_bindir}/cg-comp |
77 | %attr(755,root,root) %{_bindir}/cg-conv | |
78 | %attr(755,root,root) %{_bindir}/cg-proc | |
adc38418 | 79 | %attr(755,root,root) %{_bindir}/cg3-autobin.pl |
be300adb | 80 | %attr(755,root,root) %{_bindir}/vislcg3 |
e16225c3 | 81 | %attr(755,root,root) %{_libdir}/libcg3.so.0 |
be300adb | 82 | %{_mandir}/man1/cg-comp.1* |
e16225c3 | 83 | %{_mandir}/man1/cg-conv.1* |
be300adb | 84 | %{_mandir}/man1/cg-proc.1* |
e16225c3 | 85 | %{_mandir}/man1/cg3-autobin.pl.1* |
be300adb | 86 | %{_mandir}/man1/vislcg3.1* |
bc4b9588 JB |
87 | |
88 | %files devel | |
89 | %defattr(644,root,root,755) | |
e16225c3 | 90 | %attr(755,root,root) %{_libdir}/libcg3.so |
bc4b9588 JB |
91 | %{_includedir}/cg3.h |
92 | %{_pkgconfigdir}/cg3.pc | |
93 | ||
94 | %files static | |
95 | %defattr(644,root,root,755) | |
96 | %{_libdir}/libcg3.a |