| 1 |
%define boost_version 1.33
|
| 2 |
%define qt_version 4.2
|
| 3 |
|
| 4 |
Name: CGAL
|
| 5 |
Version: 3.5
|
| 6 |
Release: 2%{?dist}
|
| 7 |
Summary: Computational Geometry Algorithms Library
|
| 8 |
|
| 9 |
Group: System Environment/Libraries
|
| 10 |
License: QPL and LGPLv2 and LGPLv2+
|
| 11 |
URL: http://www.cgal.org/
|
| 12 |
Source0: http://gforge.inria.fr/frs/download.php/24197/CGAL-3.5.tar.gz
|
| 13 |
Source10: CGAL-README.Fedora
|
| 14 |
|
| 15 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
| 16 |
|
| 17 |
# Required devel packages.
|
| 18 |
BuildRequires: cmake
|
| 19 |
BuildRequires: gmp-devel
|
| 20 |
BuildRequires: boost-devel >= %{boost_version}
|
| 21 |
BuildRequires: qt3-devel
|
| 22 |
BuildRequires: qt-devel >= %{qt_version}
|
| 23 |
BuildRequires: zlib-devel
|
| 24 |
BuildRequires: blas-devel lapack-devel
|
| 25 |
BuildRequires: mpfr-devel
|
| 26 |
|
| 27 |
%description
|
| 28 |
Libraries for CGAL applications.
|
| 29 |
CGAL is a collaborative effort of several sites in Europe and
|
| 30 |
Israel. The goal is to make the most important of the solutions and
|
| 31 |
methods developed in computational geometry available to users in
|
| 32 |
industry and academia in a C++ library. The goal is to provide easy
|
| 33 |
access to useful, reliable geometric algorithms.
|
| 34 |
|
| 35 |
|
| 36 |
%package devel
|
| 37 |
Group: Development/Libraries
|
| 38 |
Summary: Development files and tools for CGAL applications
|
| 39 |
Requires: cmake
|
| 40 |
Requires: %{name} = %{version}-%{release}
|
| 41 |
Requires: boost-devel >= %{boost_version}
|
| 42 |
Requires: qt-devel >= %{qt_version}
|
| 43 |
Requires: blas-devel lapack-devel qt3-devel zlib-devel gmp-devel
|
| 44 |
Requires: mpfr-devel
|
| 45 |
%description devel
|
| 46 |
The %{name}-devel package provides the headers files and tools you may need to
|
| 47 |
develop applications using CGAL.
|
| 48 |
|
| 49 |
|
| 50 |
%package demos-source
|
| 51 |
Group: Documentation
|
| 52 |
Summary: Examples and demos of CGAL algorithms
|
| 53 |
Requires: %{name}-devel = %{version}-%{release}
|
| 54 |
%description demos-source
|
| 55 |
The %{name}-demos-source package provides the sources of examples and demos of
|
| 56 |
CGAL algorithms.
|
| 57 |
|
| 58 |
|
| 59 |
%prep
|
| 60 |
%setup -q
|
| 61 |
|
| 62 |
chmod a-x demo/Circular_kernel_2/Circular_kernel_2.qrc
|
| 63 |
|
| 64 |
# Install README.Fedora here, to include it in %doc
|
| 65 |
install -p -m 644 %{SOURCE10} ./README.Fedora
|
| 66 |
|
| 67 |
# remove the shipped copy of FindBoost.cmake (see bug #532431)
|
| 68 |
rm cmake/modules/FindBoost.cmake
|
| 69 |
|
| 70 |
%build
|
| 71 |
mkdir build
|
| 72 |
pushd build
|
| 73 |
%cmake -DCGAL_INSTALL_LIB_DIR=%{_lib} ..
|
| 74 |
make VERBOSE=1 %{?_smp_mflags}
|
| 75 |
popd
|
| 76 |
|
| 77 |
|
| 78 |
%install
|
| 79 |
rm -rf %{buildroot}
|
| 80 |
|
| 81 |
pushd build
|
| 82 |
|
| 83 |
make install DESTDIR=$RPM_BUILD_ROOT
|
| 84 |
|
| 85 |
popd
|
| 86 |
|
| 87 |
# Install demos and examples
|
| 88 |
mkdir -p %{buildroot}%{_datadir}/CGAL
|
| 89 |
touch -r demo %{buildroot}%{_datadir}/CGAL/
|
| 90 |
cp -a demo %{buildroot}%{_datadir}/CGAL/demo
|
| 91 |
cp -a examples %{buildroot}%{_datadir}/CGAL/examples
|
| 92 |
|
| 93 |
%clean
|
| 94 |
rm -rf %{buildroot}
|
| 95 |
|
| 96 |
|
| 97 |
%post -p /sbin/ldconfig
|
| 98 |
|
| 99 |
%postun -p /sbin/ldconfig
|
| 100 |
|
| 101 |
|
| 102 |
%files
|
| 103 |
%defattr(-,root,root,-)
|
| 104 |
%doc AUTHORS LICENSE LICENSE.FREE_USE LICENSE.LGPL LICENSE.QPL CHANGES README.Fedora
|
| 105 |
%{_libdir}/libCGAL*.so.4
|
| 106 |
%{_libdir}/libCGAL*.so.4.0.0
|
| 107 |
|
| 108 |
|
| 109 |
%files devel
|
| 110 |
%defattr(-,root,root,-)
|
| 111 |
%{_includedir}/CGAL
|
| 112 |
%{_libdir}/libCGAL*.so
|
| 113 |
%{_libdir}/CGAL
|
| 114 |
%dir %{_datadir}/CGAL
|
| 115 |
%{_bindir}/*
|
| 116 |
%exclude %{_bindir}/cgal_make_macosx_app
|
| 117 |
%{_mandir}/man1/cgal_create_cmake_script.1.gz
|
| 118 |
|
| 119 |
|
| 120 |
%files demos-source
|
| 121 |
%defattr(-,root,root,-)
|
| 122 |
%dir %{_datadir}/CGAL
|
| 123 |
%{_datadir}/CGAL/demo
|
| 124 |
%{_datadir}/CGAL/examples
|
| 125 |
%exclude %{_datadir}/CGAL/*/*/skip_vcproj_auto_generation
|
| 126 |
|
| 127 |
%changelog
|
| 128 |
* Mon Nov 2 2009 <Laurent.Rineau__fedora@normalesup.org> - 3.5-2
|
| 129 |
- Use system's FindBoost macro instead of a copy from CGAL (bug #532431).
|
| 130 |
|
| 131 |
* Sun Oct 18 2009 <Laurent.Rineau__fedora@normalesup.org> - 3.5-1
|
| 132 |
- New upstream release: finale version of CGAL-3.5.
|
| 133 |
|
| 134 |
* Thu Jul 30 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 3.5-0.2.beta1
|
| 135 |
- No longer requires /etc/profile.d/
|
| 136 |
|
| 137 |
* Thu Jul 30 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 3.5-0.1.beta1
|
| 138 |
- Update to CGAL-3.5-beta1.
|
| 139 |
- New compilation process: CMake.
|
| 140 |
- No longer any need for patches.
|
| 141 |
|
| 142 |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-14
|
| 143 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
| 144 |
|
| 145 |
* Thu Feb 26 2009 <Laurent.Rineau__fedora@normalesup.org> - 3.3.1-13
|
| 146 |
- noarch CGAL-demos-source, which is purely data.
|
| 147 |
|
| 148 |
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-12
|
| 149 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
| 150 |
|
| 151 |
* Tue Apr 1 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.3.1-11
|
| 152 |
- -devel: Requires: qt3-devel
|
| 153 |
|
| 154 |
* Tue Apr 1 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-10
|
| 155 |
- Rebuild for Rawhide. BR: qt3-devel instead of qt-devel (which is now Qt-4.x).
|
| 156 |
|
| 157 |
* Mon Feb 11 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-9
|
| 158 |
- Rebuild with g++-4.3.
|
| 159 |
|
| 160 |
* Mon Nov 5 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-8
|
| 161 |
- Add Requires: mpfr-devel for CGAL-devel.
|
| 162 |
|
| 163 |
* Mon Oct 22 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-6
|
| 164 |
- fix /etc/profile.d/cgal.*
|
| 165 |
|
| 166 |
* Sun Oct 21 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-3
|
| 167 |
- gawk and coreutils are not required in BR (see exceptions list)
|
| 168 |
- fix multilib issues (bug #340821):
|
| 169 |
- rename %%{_datadir}/CGAL/cgal.mk to %%{_datadir}/CGAL/cgal-%%{_arch}.mk
|
| 170 |
- remove the arch-specific comment from %%{_includedir}/CGAL/compiler_config.h
|
| 171 |
|
| 172 |
* Mon Sep 3 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-2
|
| 173 |
- Fix soversion.
|
| 174 |
|
| 175 |
* Mon Sep 3 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-1
|
| 176 |
- New upstream bug-fixes release.
|
| 177 |
|
| 178 |
* Fri Aug 24 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3-7
|
| 179 |
- Add BR: mpfr since F-8.
|
| 180 |
|
| 181 |
* Fri Aug 24 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3-6
|
| 182 |
- Add BR: gawk
|
| 183 |
|
| 184 |
* Thu Aug 23 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3-5
|
| 185 |
- License: tag fixed.
|
| 186 |
|
| 187 |
* Thu Jun 7 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.3-4
|
| 188 |
- Move the makefile back to %%{_datadir}/CGAL, and rename it cgal.mk (sync
|
| 189 |
with Debian package). That file is not a config file, but just an example
|
| 190 |
.mk file that can be copied and adapted by users.
|
| 191 |
- Fix the %%{_sysconfdir}/profile.d/cgal.* files (the csh one was buggy).
|
| 192 |
- CGAL-devel now requires all its dependancies.
|
| 193 |
|
| 194 |
* Sat Jun 2 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.3-2
|
| 195 |
- Official CGAL-3.3 release
|
| 196 |
- Skip file named "skip_vcproj_auto_generation"
|
| 197 |
|
| 198 |
* Wed May 30 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.3-0.1.RC1
|
| 199 |
- New upstream version: 3.3-RC1
|
| 200 |
- Obsolete patches CGAL-3.2.1-build-libCGALQt-shared.patch,
|
| 201 |
CGAL-3.2.1-build-no-static-lib.patch,
|
| 202 |
CGAL-3.2.1-config.h-endianness_detection.patch.
|
| 203 |
These patchs have been merged and adapted by upstream.
|
| 204 |
- New option --disable-static
|
| 205 |
- Shipped OpenNL and CORE have been renamed by upstream:
|
| 206 |
- %%{_includedir}/OpenNL is now %{_includedir}/CGAL/OpenNL
|
| 207 |
- %%{_includedir}/CORE is now %{_includedir}/CGAL/CORE
|
| 208 |
- libCORE has been rename libCGALcore++
|
| 209 |
Reasons:
|
| 210 |
- CGAL/OpenNL is a special version of OpenNL, rewritten for CGAL
|
| 211 |
in C++ by the OpenNL author,
|
| 212 |
- CGAL/CORE is a fork of CORE-1.7. CORE-1.7 is no longer maintained by
|
| 213 |
its authors, and CORE-2.0 is awaited since 2004.
|
| 214 |
In previous releases of this package, CORE was excluded from the package,
|
| 215 |
because %%{_includedir}/CORE/ was a name too generic (see comment #8 of
|
| 216 |
#bug #199168). Since the headers of CORE have been moved to
|
| 217 |
%%{_includedir}/CGAL/CORE, CORE is now shipped with CGAL.
|
| 218 |
- move %%{_datadir}/CGAL/make/makefile to %%{_sysconfdir}/CGAL/makefile
|
| 219 |
(because it is a config file).
|
| 220 |
|
| 221 |
* Thu Nov 2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-19
|
| 222 |
- Fix CGAL-3.2.1-build-libCGALQt-shared.patch (bug #213675)
|
| 223 |
|
| 224 |
* Fri Sep 15 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-18
|
| 225 |
- Move LICENSE.OPENNL to %%doc CGAL-devel (bug #206575).
|
| 226 |
|
| 227 |
* Mon Sep 11 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-17
|
| 228 |
- libCGALQt.so needs -lGL
|
| 229 |
- remove %%{_bindir}/cgal_make_macosx_app
|
| 230 |
|
| 231 |
* Sat Sep 11 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-16
|
| 232 |
- Remove CORE support. Its acceptance in Fedora is controversial (bug #199168).
|
| 233 |
- Exclude .vcproj files from the -demos-source subpackage.
|
| 234 |
- Added a patch to build *shared* library libCGALQt.
|
| 235 |
- Added a patch to avoid building static libraries.
|
| 236 |
- Fixed the License: tag.
|
| 237 |
|
| 238 |
* Thu Aug 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-15
|
| 239 |
- Change the permissions of %%{_sysconfdir}/profile.d/cgal.*sh
|
| 240 |
- Remove the meta package CGAL. CGAL-libs is renamed CGAL.
|
| 241 |
- Added two patchs:
|
| 242 |
- CGAL-3.2.1-config.h-endianness_detection.patch which is an upstream patch
|
| 243 |
to fix the endianness detection, so that is is no longer hard-coded in
|
| 244 |
<CGAL/compiler_config.h>,
|
| 245 |
- CGAL-3.2.1-install_cgal-no_versions_in_compiler_config.h.patch that
|
| 246 |
removes hard-coded versions in <CGAL/compiler_config.h>.
|
| 247 |
|
| 248 |
* Wed Aug 16 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-14
|
| 249 |
- Simplified spec file, for Fedora Extras.
|
| 250 |
|
| 251 |
* Mon Jul 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-13
|
| 252 |
- Change CGAL-README.Fedora, now that Installation.pdf is no longer in the
|
| 253 |
tarball.
|
| 254 |
|
| 255 |
* Mon Jul 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-12
|
| 256 |
- Remove unneeded -R/-L/-I flags from %%{_datadir}/CGAL/make/makefile
|
| 257 |
|
| 258 |
* Mon Jul 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-11
|
| 259 |
- Fix the soversion.
|
| 260 |
- Fix %%{cgal_prefix} stuff!!
|
| 261 |
- Quote 'EOF', so that the lines are not expanded by the shell.
|
| 262 |
|
| 263 |
* Tue Jul 4 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-10
|
| 264 |
- Fix makefile.sed so that %%{buildroot} does not appear in
|
| 265 |
%%{_datadir}/CGAL/make/makefile.
|
| 266 |
|
| 267 |
* Sun Jul 2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-9
|
| 268 |
- Remove Obsoletes: in the meta-package CGAL.
|
| 269 |
|
| 270 |
* Sun Jul 2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-8
|
| 271 |
- Fix the localisation of demo and examples.
|
| 272 |
|
| 273 |
* Sun Jul 2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-6
|
| 274 |
- Set Requires, in sub-packages.
|
| 275 |
|
| 276 |
* Sun Jul 2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-5
|
| 277 |
- CGAL-3.2.1
|
| 278 |
- Sub-package "demo" is now named "demos-source" (Fedora guidelines).
|
| 279 |
- Fix some rpmlint warnings
|
| 280 |
- Added README.Fedora, to explain why the documentation is not shipped, and how CGAL is divided in sub-packages.
|
| 281 |
|
| 282 |
|
| 283 |
* Sat Jul 1 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-4
|
| 284 |
- Use %%{_datadir}/CGAL instead of %%{_datadir}/%%{name}-%%{version}
|
| 285 |
- Fix %%{_datadir}/CGAL/makefile, with a sed script.
|
| 286 |
- Added a new option %%set_prefix (see top of spec file).
|
| 287 |
|
| 288 |
* Sat Jul 1 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-3
|
| 289 |
- Use less "*" in %%files, to avoid futur surprises.
|
| 290 |
- Remove %%{_sysconfdir}/profile.d/cgal.* from %%files if %%cgal_prefix is not empty.
|
| 291 |
- Fix %%build_doc=0 when %%fedora is set. New option macro: %%force_build_doc.
|
| 292 |
|
| 293 |
* Fri Jun 30 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-2
|
| 294 |
- Fix some end-of-lines in %%prep, to please rpmlint.
|
| 295 |
|
| 296 |
* Mon May 22 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-1
|
| 297 |
- Remove README from %%doc file: it describes the tarball layout.
|
| 298 |
- Updated to CGAL-3.2.
|
| 299 |
- Added examples in the -demo subpackage.
|
| 300 |
- Cleaning up, to follow Fedora Guidelines.
|
| 301 |
- The -doc subpackage cannot be build on Fedora (no license).
|
| 302 |
- Add ldconfig back.
|
| 303 |
- No prefix.
|
| 304 |
|
| 305 |
* Fri Apr 28 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.447
|
| 306 |
- Update to CGAL-3.2-447.
|
| 307 |
|
| 308 |
* Fri Apr 21 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.440
|
| 309 |
- Updated to CGAL-3.2-I-440.
|
| 310 |
|
| 311 |
* Wed Apr 19 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.438
|
| 312 |
- Added a patch to install_cgal, to require support for BOOST, BOOST_PROGRAM_OPTIONS, X11, GMP, MPFR, GMPXX, CORE, ZLIB, and QT.
|
| 313 |
- Move scripts to %%{_bindir}
|
| 314 |
- %%{_libdir}/CGAL-I now belong to CGAL and CGAL-devel, so that it disappears when the packages are removed.
|
| 315 |
|
| 316 |
* Wed Apr 12 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.431
|
| 317 |
- Updated to CGAL-3.2-I-431.
|
| 318 |
- Remove the use of ldconfig.
|
| 319 |
- Changed my email address.
|
| 320 |
- No longer need for patch0.
|
| 321 |
- Pass of rpmlint.
|
| 322 |
- Remove unneeded Requires: tags (rpm find them itself).
|
| 323 |
- Change the release tag.
|
| 324 |
- Added comments at the beginning of the file.
|
| 325 |
- Added custom ld flags, on 64bits archs (so that X11 is detected).
|
| 326 |
|
| 327 |
* Tue Apr 11 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org>
|
| 328 |
- Removed -g and -O2 from CUSTOM_CXXFLAGS, in the makefile only.
|
| 329 |
They are kept during the compilation of libraries.
|
| 330 |
- Added zlib in dependencies.
|
| 331 |
- Added a patch to test_ZLIB.C, until it is merged upstream.
|
| 332 |
|
| 333 |
* Fri Mar 31 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
|
| 334 |
- adding a test in the setup section.
|
| 335 |
|
| 336 |
* Mon Mar 13 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
|
| 337 |
- delete the patch that fixes the perl path.
|
| 338 |
- add build_doc and build_demo flags.
|
| 339 |
|
| 340 |
* Fri Mar 10 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
|
| 341 |
- Adding new sub-packages doc(pdf&html) and demo.
|
| 342 |
- Add internal_release flag.
|
| 343 |
|
| 344 |
* Thu Mar 09 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
|
| 345 |
- Cleanup a specfile.
|
| 346 |
|