]> git.pld-linux.org Git - packages/vislcg3.git/blob - vislcg3.spec
- release 2 (by relup.sh)
[packages/vislcg3.git] / vislcg3.spec
1 Summary:        VISL CG-3 constraint grammar system
2 Summary(pl.UTF-8):      VISL CG-3 - system ograniczonej gramatyki
3 Name:           vislcg3
4 Version:        0.9.8.9708
5 Release:        2
6 License:        GPL v3+
7 Group:          Applications/Text
8 Source0:        http://beta.visl.sdu.dk/download/vislcg3/%{name}-%{version}.tar.gz
9 # Source0-md5:  573ffaa88a6850930cbeb7341d66df2e
10 URL:            http://beta.visl.sdu.dk/cg3.html
11 BuildRequires:  cmake >= 2.8.0
12 BuildRequires:  boost-devel >= 1.40.0
13 BuildRequires:  libicu-devel >= 4.2
14 BuildRequires:  libstdc++-devel
15 BuildRequires:  rpmbuild(macros) >= 1.603
16 BuildRequires:  sed >= 4.0
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
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
49 %prep
50 %setup -q
51
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
54
55 %build
56 # it expectls only relative CMAKE_INSTALL_LIBDIR
57 %cmake . \
58         -DCMAKE_INSTALL_LIBDIR=%{_lib} \
59         -DOPT_TCMALLOC=OFF
60
61 %{__make}
62
63 %install
64 rm -rf $RPM_BUILD_ROOT
65
66 %{__make} install \
67         DESTDIR=$RPM_BUILD_ROOT
68
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
73 %clean
74 rm -rf $RPM_BUILD_ROOT
75
76 %post   -p /sbin/ldconfig
77 %postun -p /sbin/ldconfig
78
79 %files
80 %defattr(644,root,root,755)
81 %doc AUTHORS README TODO
82 %attr(755,root,root) %{_bindir}/cg-comp
83 %attr(755,root,root) %{_bindir}/cg-conv
84 %attr(755,root,root) %{_bindir}/cg-proc
85 %attr(755,root,root) %{_bindir}/cg3-autobin.pl
86 %attr(755,root,root) %{_bindir}/vislcg3
87 %attr(755,root,root) %{_libdir}/libcg3.so
88 %{_mandir}/man1/cg-comp.1*
89 %{_mandir}/man1/cg-proc.1*
90 %{_mandir}/man1/vislcg3.1*
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
This page took 0.123141 seconds and 3 git commands to generate.