]>
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 | |
bc4b9588 | 4 | Version: 0.9.8.9708 |
0b464283 | 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 | |
bc4b9588 | 9 | # Source0-md5: 573ffaa88a6850930cbeb7341d66df2e |
be300adb | 10 | URL: http://beta.visl.sdu.dk/cg3.html |
bc4b9588 JB |
11 | BuildRequires: cmake >= 2.8.0 |
12 | BuildRequires: boost-devel >= 1.40.0 | |
de5f74dc | 13 | BuildRequires: libicu-devel >= 4.2 |
be300adb | 14 | BuildRequires: libstdc++-devel |
73625fe9 | 15 | BuildRequires: rpmbuild(macros) >= 1.603 |
bc4b9588 | 16 | BuildRequires: sed >= 4.0 |
be300adb JB |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
20 | VISL CG-3 constraint grammar system. | |
21 | ||
22 | %description -l pl.UTF-8 | |
23 | VISL CG-3 - system ograniczonej gramatyki. | |
24 | ||
bc4b9588 JB |
25 | %package devel |
26 | Summary: Header file for VISL CG-3 library | |
27 | Summary(pl.UTF-8): Plik nagłówkowy biblioteki VISL CG-3 | |
28 | Group: Development/Libraries | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description devel | |
32 | Header file for VISL CG-3 library. | |
33 | ||
34 | %description devel -l pl.UTF-8 | |
35 | Plik nagłówkowy biblioteki VISL CG-3. | |
36 | ||
37 | %package static | |
38 | Summary: Static VISL CG-3 library | |
39 | Summary(pl.UTF-8): Statyczna biblioteka VISL CG-3 | |
40 | Group: Development/Libraries | |
41 | Requires: %{name}-devel = %{version}-%{release} | |
42 | ||
43 | %description static | |
44 | Static VISL CG-3 library. | |
45 | ||
46 | %description static -l pl.UTF-8 | |
47 | Statyczna biblioteka VISL CG-3. | |
48 | ||
be300adb JB |
49 | %prep |
50 | %setup -q | |
be300adb | 51 | |
bc4b9588 JB |
52 | %{__sed} -i -e 's#DESTINATION lib/pkgconfig#DESTINATION %{_lib}/pkgconfig#g' CMakeLists.txt |
53 | %{__sed} -i -e 's#DESTINATION lib#DESTINATION %{_lib}#g' src/CMakeLists.txt | |
de8d4947 | 54 | |
be300adb | 55 | %build |
bc4b9588 JB |
56 | # it expectls only relative CMAKE_INSTALL_LIBDIR |
57 | %cmake . \ | |
58 | -DCMAKE_INSTALL_LIBDIR=%{_lib} \ | |
59 | -DOPT_TCMALLOC=OFF | |
be300adb JB |
60 | |
61 | %{__make} | |
62 | ||
63 | %install | |
64 | rm -rf $RPM_BUILD_ROOT | |
65 | ||
66 | %{__make} install \ | |
67 | DESTDIR=$RPM_BUILD_ROOT | |
68 | ||
73625fe9 JB |
69 | # "improved" cmake scripts don't install it |
70 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
71 | install src/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
72 | ||
be300adb JB |
73 | %clean |
74 | rm -rf $RPM_BUILD_ROOT | |
75 | ||
bc4b9588 JB |
76 | %post -p /sbin/ldconfig |
77 | %postun -p /sbin/ldconfig | |
78 | ||
be300adb JB |
79 | %files |
80 | %defattr(644,root,root,755) | |
40c86dee | 81 | %doc AUTHORS README TODO |
be300adb JB |
82 | %attr(755,root,root) %{_bindir}/cg-comp |
83 | %attr(755,root,root) %{_bindir}/cg-conv | |
84 | %attr(755,root,root) %{_bindir}/cg-proc | |
adc38418 | 85 | %attr(755,root,root) %{_bindir}/cg3-autobin.pl |
be300adb | 86 | %attr(755,root,root) %{_bindir}/vislcg3 |
73625fe9 | 87 | %attr(755,root,root) %{_libdir}/libcg3.so |
be300adb JB |
88 | %{_mandir}/man1/cg-comp.1* |
89 | %{_mandir}/man1/cg-proc.1* | |
90 | %{_mandir}/man1/vislcg3.1* | |
bc4b9588 JB |
91 | |
92 | %files devel | |
93 | %defattr(644,root,root,755) | |
94 | %{_includedir}/cg3.h | |
95 | %{_pkgconfigdir}/cg3.pc | |
96 | ||
97 | %files static | |
98 | %defattr(644,root,root,755) | |
99 | %{_libdir}/libcg3.a |