| 1 |
#
|
| 2 |
# Copyright (c) 2004, 2005, 2006, 2007, 2008, 2009 Ralf Corsepius, Ulm, Germany.
|
| 3 |
# This file and all modifications and additions to the pristine
|
| 4 |
# package are under the same license as the package itself.
|
| 5 |
#
|
| 6 |
|
| 7 |
%define coin_includedir %{_includedir}/Coin2
|
| 8 |
%define coin_htmldir %{_datadir}/Coin2
|
| 9 |
|
| 10 |
%if 0%{fedora} < 12
|
| 11 |
%define libopenal_SONAME libopenal.so.0
|
| 12 |
%else
|
| 13 |
%define libopenal_SONAME libopenal.so.1
|
| 14 |
%endif
|
| 15 |
%define libsimage_SONAME libsimage.so.20
|
| 16 |
|
| 17 |
Summary: High-level 3D visualization library
|
| 18 |
Name: Coin2
|
| 19 |
Version: 2.5.0
|
| 20 |
Release: 7%{?dist}
|
| 21 |
|
| 22 |
License: GPLv2+
|
| 23 |
Group: System Environment/Libraries
|
| 24 |
URL: http://www.coin3d.org
|
| 25 |
|
| 26 |
Source: ftp://ftp.coin3d.org/pub/coin/src/Coin-%{version}.tar.gz
|
| 27 |
|
| 28 |
Patch0: Coin-2.4.6-simage-soname.diff
|
| 29 |
Patch1: Coin-2.4.6-openal-soname.diff
|
| 30 |
Patch5: Coin-2.4.6-man3.diff
|
| 31 |
|
| 32 |
BuildRequires: libGLU-devel
|
| 33 |
BuildRequires: libXext-devel
|
| 34 |
|
| 35 |
BuildRequires: zlib-devel
|
| 36 |
BuildRequires: bzip2-devel
|
| 37 |
BuildRequires: fontconfig-devel
|
| 38 |
BuildRequires: freetype-devel
|
| 39 |
BuildRequires: doxygen
|
| 40 |
BuildRequires: /usr/bin/rename
|
| 41 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 42 |
|
| 43 |
Requires(post): /sbin/ldconfig
|
| 44 |
Requires(postun): /sbin/ldconfig
|
| 45 |
|
| 46 |
%description
|
| 47 |
Coin is a 3D graphics library with an Application Programming Interface
|
| 48 |
based on the Open Inventor 2.1 API.
|
| 49 |
|
| 50 |
%package devel
|
| 51 |
Summary: Development files for Coin
|
| 52 |
Group: Development/Libraries
|
| 53 |
Requires: %{name} = %{version}-%{release}
|
| 54 |
Requires: zlib-devel bzip2-devel
|
| 55 |
Requires: fontconfig-devel
|
| 56 |
Requires: freetype-devel
|
| 57 |
Requires: libGLU-devel
|
| 58 |
Requires: pkgconfig
|
| 59 |
|
| 60 |
%description devel
|
| 61 |
Development package for Coin
|
| 62 |
|
| 63 |
%prep
|
| 64 |
%setup -q -n Coin-%{version}
|
| 65 |
%patch0 -p1
|
| 66 |
%patch1 -p1
|
| 67 |
%patch5 -p1
|
| 68 |
|
| 69 |
# bogus permissions
|
| 70 |
for a in $(find . \( -name '*.h' -o -name '*.cpp' -o -name '*.c' \)); do \
|
| 71 |
test -x $a && chmod -x $a; \
|
| 72 |
done
|
| 73 |
|
| 74 |
# convert sources to utf-8
|
| 75 |
for a in $(find . -type f -exec file -i {} \; | grep -i iso | sed -e 's,:.*,,'); do \
|
| 76 |
/usr/bin/iconv -f ISO-8859-1 -t utf-8 $a > $a~; \
|
| 77 |
mv $a~ $a; \
|
| 78 |
done
|
| 79 |
|
| 80 |
sed -i -e 's,@LIBSIMAGE_SONAME@,"%{libsimage_SONAME}",' \
|
| 81 |
src/glue/simage_wrapper.c
|
| 82 |
sed -i -e 's,@LIBOPENAL_SONAME@,"%{libopenal_SONAME}",' \
|
| 83 |
src/glue/openal_wrapper.c
|
| 84 |
|
| 85 |
%build
|
| 86 |
%configure \
|
| 87 |
--includedir=%{coin_includedir} \
|
| 88 |
--disable-dependency-tracking \
|
| 89 |
--enable-shared \
|
| 90 |
--disable-dl-libbzip2 \
|
| 91 |
--disable-dl-glu \
|
| 92 |
--disable-dl-zlib \
|
| 93 |
--disable-dl-freetype \
|
| 94 |
--disable-dl-fontconfig \
|
| 95 |
--disable-spidermonkey \
|
| 96 |
--enable-man \
|
| 97 |
--enable-html \
|
| 98 |
--enable-3ds-import \
|
| 99 |
htmldir=%{coin_htmldir}/Coin \
|
| 100 |
CPPFLAGS=$(pkg-config --cflags freetype2)
|
| 101 |
make %{?_smp_mflags}
|
| 102 |
|
| 103 |
# Strip the default libdir
|
| 104 |
sed -i -e "s,\-L%{_libdir} ,," coin-default.cfg
|
| 105 |
|
| 106 |
# coin-config is arch dependent
|
| 107 |
sed -i -e "s,/share/Coin/conf/,/%{_lib}/Coin2/conf/,g" bin/coin-config
|
| 108 |
|
| 109 |
%install
|
| 110 |
rm -rf $RPM_BUILD_ROOT
|
| 111 |
make DESTDIR=$RPM_BUILD_ROOT install
|
| 112 |
/usr/bin/rename .3 .3sim $RPM_BUILD_ROOT%{_mandir}/man3/*
|
| 113 |
rm -f ${RPM_BUILD_ROOT}%{_libdir}/lib*.la
|
| 114 |
|
| 115 |
install -d -m 755 ${RPM_BUILD_ROOT}%{_libdir}/Coin2
|
| 116 |
mv ${RPM_BUILD_ROOT}%{_datadir}/Coin/conf ${RPM_BUILD_ROOT}%{_libdir}/Coin2
|
| 117 |
|
| 118 |
%clean
|
| 119 |
rm -rf $RPM_BUILD_ROOT
|
| 120 |
|
| 121 |
%post -p /sbin/ldconfig
|
| 122 |
|
| 123 |
%postun -p /sbin/ldconfig
|
| 124 |
|
| 125 |
%files
|
| 126 |
%defattr(-,root,root,-)
|
| 127 |
%doc AUTHORS ChangeLog* COPYING README* LICENSE* THANKS FAQ*
|
| 128 |
%{_libdir}/libCoin.so.*
|
| 129 |
|
| 130 |
%files devel
|
| 131 |
%defattr(-,root,root,-)
|
| 132 |
%{_bindir}/*
|
| 133 |
%{coin_includedir}
|
| 134 |
%{_libdir}/libCoin.so
|
| 135 |
%{_datadir}/aclocal/coin.m4
|
| 136 |
%dir %{_datadir}/Coin
|
| 137 |
%{_datadir}/Coin/draggerDefaults
|
| 138 |
%{_datadir}/Coin/shaders
|
| 139 |
%{_libdir}/Coin2
|
| 140 |
%{_mandir}/man?/*
|
| 141 |
%doc %{coin_htmldir}
|
| 142 |
%{_libdir}/pkgconfig/Coin.pc
|
| 143 |
|
| 144 |
%changelog
|
| 145 |
* Mon Sep 28 2009 Ralf Corsépius <corsepiu@fedoraproject.org> - 2.5.0-7
|
| 146 |
- Reflect openal/openal-soft changes.
|
| 147 |
- Work-around "file" reporting bogus results (BZ 526054).
|
| 148 |
|
| 149 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-6
|
| 150 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 151 |
|
| 152 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-5
|
| 153 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 154 |
|
| 155 |
* Sun Feb 10 2008 Ralf Corsépius <rc040203@freenet.de> - 2.5.0-4
|
| 156 |
- Rebuild for gcc43.
|
| 157 |
- Update copyright.
|
| 158 |
|
| 159 |
* Thu Nov 29 2007 Ralf Corsépius <rc040203@freenet.de> - 2.5.0-3
|
| 160 |
- Rebuild with doxygen-1.5.3-1 (BZ 343601).
|
| 161 |
|
| 162 |
* Wed Oct 03 2007 Ralf Corsépius <rc040203@freenet.de> - 2.5.0-2
|
| 163 |
- Fix permissions on source files.
|
| 164 |
- Convert sources to utf-8.
|
| 165 |
|
| 166 |
* Tue Oct 02 2007 Ralf Corsépius <rc040203@freenet.de> - 2.5.0-1
|
| 167 |
- Upstream update.
|
| 168 |
|
| 169 |
* Fri Aug 17 2007 Ralf Corsépius <rc040203@freenet.de> - 2.4.6-2
|
| 170 |
- Update license tag.
|
| 171 |
|
| 172 |
* Sat Apr 15 2007 Ralf Corsépius <rc040203@freenet.de> - 2.4.6-1
|
| 173 |
- Upstream update.
|
| 174 |
- Re-base the patches to 2.4.6.
|
| 175 |
- Spec file massage.
|
| 176 |
|
| 177 |
* Tue Feb 20 2007 Ralf Corsépius <rc040203@freenet.de> - 2.4.5-5
|
| 178 |
- Install coin-default.cfg into %%{_prefix}/%%{_lib}
|
| 179 |
|
| 180 |
* Mon Feb 19 2007 Ralf Corsépius <rc040203@freenet.de> - 2.4.5-4
|
| 181 |
- Filter errant -L%%_libdir from coin-config.cfg.
|
| 182 |
- Remove *.la.
|
| 183 |
|
| 184 |
* Fri Sep 15 2006 Ralf Corsépius <rc040203@freenet.de> - 2.4.5-3
|
| 185 |
- Add doxygen hack.
|
| 186 |
|
| 187 |
* Tue Sep 05 2006 Ralf Corsépius <rc040203@freenet.de> - 2.4.5-2
|
| 188 |
- Mass rebuild.
|
| 189 |
|
| 190 |
* Tue May 30 2006 Ralf Corsépius <rc040203@freenet.de> - 2.4.5-1
|
| 191 |
- Upstream update.
|
| 192 |
- Drop gcc-4.1 patch.
|
| 193 |
- Spec file cleanup.
|
| 194 |
|
| 195 |
* Wed Feb 22 2006 Ralf Corsépius <rc040203@freenet.de> - 2.4.4-10
|
| 196 |
- Rename man3 manpages to .3sim (PR 182212).
|
| 197 |
|
| 198 |
* Sun Feb 16 2006 Ralf Corsepius <rc040203@freenet.de> - 2.4.4-9
|
| 199 |
- Rebuild.
|
| 200 |
|
| 201 |
* Mon Jan 16 2006 Ralf Corsepius <rc040203@freenet.de> - 2.4.4-8
|
| 202 |
- Add R: fontconfig-devel to devel package.
|
| 203 |
|
| 204 |
* Mon Jan 16 2006 Ralf Corsepius <rc040203@freenet.de> - 2.4.4-7
|
| 205 |
- Add R: freetype-devel to devel package.
|
| 206 |
|
| 207 |
* Thu Dec 22 2005 Ralf Corsepius <rc040203@freenet.de> - 2.4.4-6
|
| 208 |
- Remove hacks to mesa/X11 packaging bugs now reported to be fixed.
|
| 209 |
|
| 210 |
* Thu Dec 15 2005 Ralf Corsepius <rc040203@freenet.de> - 2.4.4-5
|
| 211 |
- More hacks for modular X11.
|
| 212 |
- Add Coin-2.4.4-gcc-4.1.diff.
|
| 213 |
|
| 214 |
* Mon Nov 21 2005 Ralf Corsepius <rc040203@freenet.de> - 2.4.4-4
|
| 215 |
- Try to work around modular X having broken package deps.
|
| 216 |
|
| 217 |
* Thu Sep 22 2005 Ralf Corsepius <ralf@links2linux.de> - 2.4.4-3
|
| 218 |
- Remove simacros patch.
|
| 219 |
- Remove libtool patch.
|
| 220 |
- Link against freetype2.
|
| 221 |
|
| 222 |
* Tue Sep 20 2005 Ralf Corsepius <ralf@links2linux.de> - 2.4.4-1
|
| 223 |
- Upstream update.
|
| 224 |
|
| 225 |
* Thu Jul 07 2005 Ralf Corsepius <ralf@links2linux.de> - 0:2.4.3-1
|
| 226 |
- Upstream update.
|
| 227 |
|
| 228 |
* Wed May 17 2005 Ralf Corsepius <ralf@links2linux.de> - 0:2.4.1-1
|
| 229 |
- Upstream update.
|