]>
Commit | Line | Data |
---|---|---|
d6686fbf JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
4 | ||
5 | Summary: Xt/Motif GUI component toolkit library for Coin | |
6 | Summary(pl.UTF-8): Biblioteka komponentu graficznego interfejsu Xt/Motif dla biblioteki Coin | |
7 | Name: SoXt | |
8 | Version: 1.4.0 | |
9 | Release: 1 | |
10 | License: BSD | |
11 | Group: X11/Libraries | |
12 | #Source0Download: https://github.com/coin3d/soxt/releases | |
13 | Source0: https://github.com/coin3d/soxt/releases/download/SoXt-%{version}/soxt-%{version}-src.tar.gz | |
14 | # Source0-md5: 566b79a9b8d88014726ad8054cd03698 | |
15 | Patch0: %{name}-pc.patch | |
16 | URL: https://github.com/coin3d/soxt | |
17 | BuildRequires: Coin-devel >= 4.0.0 | |
18 | BuildRequires: OpenGL-GLX-devel | |
19 | BuildRequires: cmake >= 3.0 | |
20 | %{?with_apidocs:BuildRequires: doxygen} | |
21 | BuildRequires: libstdc++-devel | |
22 | BuildRequires: motif-devel | |
23 | BuildRequires: pkgconfig | |
24 | BuildRequires: rpmbuild(macros) >= 1.752 | |
25 | BuildRequires: xorg-lib-libX11-devel | |
26 | BuildRequires: xorg-lib-libXext-devel | |
27 | BuildRequires: xorg-lib-libXmu-devel | |
28 | BuildRequires: xorg-lib-libXpm-devel | |
29 | BuildRequires: xorg-lib-libXt-devel | |
30 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
31 | ||
32 | %description | |
33 | SoXt is a Xt/Motif GUI component toolkit library for Coin. It is also | |
34 | compatible with SGI and TGS Open Inventor, and the API is based on the | |
35 | API of the InventorXt GUI component toolkit. | |
36 | ||
37 | %description -l pl.UTF-8 | |
38 | SoXt to biblioteka toolkitu komponentu graficznego interfejsu | |
39 | użytkownika (GUI) Xt/Motif dla biblioteki Coin. Jest zgodna także z | |
40 | biblioteką SGI i TGS Open Inventor, a API jest oparte na API toolkitu | |
41 | komponentu graficznego interfejsu użytkownika InventorXt. | |
42 | ||
43 | %package devel | |
44 | Summary: Header files for SoXt library | |
45 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki SoXt | |
46 | Group: X11/Development/Libraries | |
47 | Requires: %{name} = %{version}-%{release} | |
48 | Requires: Coin-devel >= 4.0.0 | |
49 | Requires: OpenGL-GLX-devel | |
50 | Requires: motif-devel | |
51 | Requires: xorg-lib-libX11-devel | |
52 | Requires: xorg-lib-libXt-devel | |
53 | ||
54 | %description devel | |
55 | Header files for SoXt library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki SoXt. | |
59 | ||
60 | %package apidocs | |
61 | Summary: API documentation for SoXt library | |
62 | Summary(pl.UTF-8): Dokumentacja API biblioteki SoXt | |
63 | Group: Documentation | |
61be8c4d | 64 | BuildArch: noarch |
d6686fbf JB |
65 | |
66 | %description apidocs | |
67 | API documentation for SoXt library. | |
68 | ||
69 | %description apidocs -l pl.UTF-8 | |
70 | Dokumentacja API biblioteki SoXt. | |
71 | ||
72 | %prep | |
73 | %setup -q -n soxt | |
74 | %patch0 -p1 | |
75 | ||
76 | %build | |
77 | install -d builddir | |
78 | cd builddir | |
79 | %cmake .. \ | |
80 | %if %{with apidocs} | |
81 | -DSOXT_BUILD_DOCUMENTATION=ON \ | |
82 | -DSOXT_BUILD_DOC_MAN=ON | |
83 | %endif | |
84 | ||
85 | %{__make} | |
86 | cd .. | |
87 | ||
88 | %install | |
89 | rm -rf $RPM_BUILD_ROOT | |
90 | ||
91 | %{__make} -C builddir install \ | |
92 | DESTDIR=$RPM_BUILD_ROOT | |
93 | ||
94 | %if %{with apidocs} | |
95 | # packaged as %doc | |
96 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/html | |
97 | # to common names etc. | |
98 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/{_*_,components,devices,misc,viewers}.3 | |
99 | %endif | |
100 | # bogus location | |
101 | %{__rm} -r $RPM_BUILD_ROOT%{_infodir}/SoXt1 | |
102 | ||
103 | %clean | |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc AUTHORS BUGS.txt COPYING ChangeLog NEWS README TODO | |
112 | %attr(755,root,root) %{_libdir}/libSoXt.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libSoXt.so.20 | |
114 | %{_datadir}/SoXt | |
115 | ||
116 | %files devel | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_libdir}/libSoXt.so | |
119 | %{_includedir}/Inventor/Xt | |
120 | %{_pkgconfigdir}/SoXt.pc | |
121 | %{_libdir}/cmake/SoXt-%{version} | |
122 | %if %{with apidocs} | |
123 | %{_mandir}/man3/SoXt*.3* | |
124 | %endif | |
125 | ||
126 | %if %{with apidocs} | |
127 | %files apidocs | |
128 | %defattr(644,root,root,755) | |
129 | %doc builddir/html/*.{css,html,js,png} | |
130 | %endif |