]> git.pld-linux.org Git - packages/Coin.git/blame - Coin.spec
BR automake for _aclocaldir macro
[packages/Coin.git] / Coin.spec
CommitLineData
fe21aefb 1#
899bef05
JB
2# Conditional build:
3%bcond_without static_libs # static library
e05060fa 4
fe21aefb 5Summary: High-level, retained-mode toolkit for effective 3D graphics development
899bef05 6Summary(pl.UTF-8): Wysokopoziomowy toolkit do efektywnego rozwijania grafiki 3D
fe21aefb
MK
7Name: Coin
8Version: 3.1.3
e05060fa 9Release: 2
899bef05 10License: GPL or Coin PEL or Coin EL
466db9d4 11Group: X11/Libraries
899bef05 12Source0: https://bitbucket.org/Coin3D/coin/downloads/%{name}-%{version}.tar.gz
fe21aefb 13# Source0-md5: 1538682f8d92cdf03e845c786879fbea
899bef05
JB
14Patch0: %{name}-build.patch
15Patch1: %{name}-pc.patch
16Patch2: %{name}-format.patch
fe21aefb 17URL: http://www.coin3d.org/
899bef05 18BuildRequires: OpenAL-devel
466db9d4 19BuildRequires: OpenGL-GLU-devel
20BuildRequires: OpenGL-devel
ad8a76d6 21BuildRequires: automake
899bef05
JB
22BuildRequires: bzip2-devel
23BuildRequires: fontconfig-devel
24BuildRequires: freetype-devel >= 2
25#BuildRequires: js-devel
466db9d4 26BuildRequires: libstdc++-devel
27BuildRequires: xorg-lib-libX11-devel
899bef05 28BuildRequires: zlib-devel
fe21aefb
MK
29BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
466db9d4 31%description
32High-level, retained-mode toolkit for effective 3D graphics
899bef05
JB
33development. It's fully compatible with SGI Open Inventor 2.1.
34
35%description -l pl.UTF-8
36Wysokopoziomowy toolkit trybu przechowującego do efektywnego
37rozwijania grafiki 3D. Jest w pełni kompatybilny z pakietem SGI Open
38Inventor 2.1.
fe21aefb
MK
39
40%package devel
899bef05
JB
41Summary: Header files for Coin3D library
42Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Coin3D
466db9d4 43Group: X11/Development/Libraries
14b3cc83 44Requires: %{name} = %{version}-%{release}
3f4e6aa9
JB
45Obsoletes: openinventor-devel
46Obsoletes: sgi-OpenInventor-devel
fe21aefb
MK
47
48%description devel
899bef05 49Header files for Coin3D library.
fe21aefb
MK
50
51%description devel -l pl.UTF-8
899bef05 52Pliki nagłówkowe biblioteki Coin3D.
fe21aefb 53
899bef05
JB
54%package static
55Summary: Static Coin3D library
56Summary(pl.UTF-8): Statyczna biblioteka Coin3D
57Group: X11/Development/Libraries
58Requires: %{name}-devel = %{version}-%{release}
fe21aefb 59
899bef05
JB
60%description static
61Static Coin3D library.
fe21aefb 62
899bef05
JB
63%description static -l pl.UTF-8
64Statyczna biblioteka Coin3D.
fe21aefb 65
899bef05
JB
66%prep
67%setup -q
68%patch0 -p1
69%patch1 -p1
70%patch2 -p1
fe21aefb
MK
71
72%build
899bef05
JB
73# must include COIN_INTERNAL and COIN_DEBUG in CFLAGS/CXXFLAGS, because
74# internal CPPFLAGS are not propagated everywhere
75CFLAGS="%{rpmcflags} -DCOIN_INTERNAL -DCOIN_DEBUG=0"
76CXXFLAGS="%{rpmcxxflags} -DCOIN_INTERNAL -DCOIN_DEBUG=0"
fe21aefb 77%configure \
899bef05
JB
78 --enable-3ds-import \
79 --disable-debug \
80 --enable-java-wrapper \
81 --enable-man \
82 %{?with_static_libs:--enable-static} \
83 --enable-system-expat \
84 --enable-threadsafe
85
86# FIXME: don't use global LIBS to fix libCoin.la linking
87# (but cannot regenerate ac/am because of missing m4 files)
14b3cc83 88%{__make} \
8fb758e7 89 LIBS="-ldl -lGL -lX11 -lpthread"
fe21aefb
MK
90
91%install
92rm -rf $RPM_BUILD_ROOT
899bef05
JB
93
94# sanitize file list
95%{__sed} -i -ne '/^S/p' man/man3/filelist.txt
fe21aefb
MK
96
97%{__make} install \
98 DESTDIR=$RPM_BUILD_ROOT
99
899bef05
JB
100# obsoleted by pkg-config
101%{__rm} $RPM_BUILD_ROOT%{_libdir}/libCoin.la
102
fe21aefb
MK
103%clean
104rm -rf $RPM_BUILD_ROOT
105
fe21aefb
MK
106%post -p /sbin/ldconfig
107%postun -p /sbin/ldconfig
fe21aefb 108
fe21aefb
MK
109%files
110%defattr(644,root,root,755)
899bef05 111%doc AUTHORS COPYING ChangeLog FAQ FAQ.legal NEWS README README.UNIX RELNOTES THANKS
466db9d4 112%attr(755,root,root) %{_libdir}/libCoin.so.*.*.*
899bef05 113%attr(755,root,root) %ghost %{_libdir}/libCoin.so.60
fe21aefb 114%{_datadir}/%{name}
e05060fa 115%exclude %{_datadir}/%{name}/conf/coin-default.cfg
fe21aefb 116
14b3cc83 117%files devel
fe21aefb 118%defattr(644,root,root,755)
899bef05 119%attr(755,root,root) %{_libdir}/libCoin.so
e05060fa
ER
120%attr(755,root,root) %{_bindir}/coin-config
121%{_datadir}/%{name}/conf/coin-default.cfg
899bef05
JB
122%dir %{_includedir}/Inventor
123%{_includedir}/Inventor/C
124%{_includedir}/Inventor/VRMLnodes
125%{_includedir}/Inventor/actions
126%{_includedir}/Inventor/annex
127%{_includedir}/Inventor/bundles
128%{_includedir}/Inventor/caches
129%{_includedir}/Inventor/collision
130%{_includedir}/Inventor/details
131%{_includedir}/Inventor/draggers
132%{_includedir}/Inventor/elements
133%{_includedir}/Inventor/engines
134%{_includedir}/Inventor/errors
135%{_includedir}/Inventor/events
136%{_includedir}/Inventor/fields
137%{_includedir}/Inventor/lists
138%{_includedir}/Inventor/lock
139%{_includedir}/Inventor/manips
140%{_includedir}/Inventor/misc
141%{_includedir}/Inventor/nodekits
142%{_includedir}/Inventor/nodes
143%{_includedir}/Inventor/projectors
144%{_includedir}/Inventor/scxml
145%{_includedir}/Inventor/sensors
146%{_includedir}/Inventor/system
147%{_includedir}/Inventor/threads
148%{_includedir}/Inventor/tools
149%{_includedir}/Inventor/Sb*.h
150%{_includedir}/Inventor/So*.h
151%{_includedir}/Inventor/non_winsys.h
152%{_includedir}/Inventor/oivwin32.h
14b3cc83
MK
153%{_includedir}/SoDebug.h
154%{_includedir}/SoWinEnterScope.h
155%{_includedir}/SoWinLeaveScope.h
899bef05
JB
156%{_pkgconfigdir}/Coin.pc
157%{_aclocaldir}/coin.m4
e05060fa 158%{_mandir}/man1/coin-config.1*
899bef05
JB
159%{_mandir}/man3/Sb*.3*
160%{_mandir}/man3/Sc*.3*
161%{_mandir}/man3/So*.3*
162
163%if %{with static_libs}
164%files static
165%defattr(644,root,root,755)
166%{_libdir}/libCoin.a
167%endif
This page took 0.047845 seconds and 4 git commands to generate.