b7c62ee
%define boost_version 1.33
b7c62ee
%define qt_version 4.2
a6ff46e
a6ff46e
Name:           CGAL
b7c62ee
Version:        3.5
b7c62ee
Release:        0.1.beta1%{?dist}
a6ff46e
Summary:        Computational Geometry Algorithms Library
a6ff46e
a6ff46e
Group:          System Environment/Libraries
7f56283
License:        QPL and LGPLv2 and LGPLv2+
a6ff46e
URL:            http://www.cgal.org/
b7c62ee
Source0:        http://gforge.inria.fr/frs/download.php/22710/CGAL-3.5-beta1.tar.gz
a6ff46e
Source10:       CGAL-README.Fedora
a6ff46e
a6ff46e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
a6ff46e
370e0a2
# Required devel packages.
b7c62ee
BuildRequires: cmake
a6ff46e
BuildRequires: gmp-devel
b7c62ee
BuildRequires: boost-devel >= %{boost_version}
aff5a2d
BuildRequires: qt3-devel
b7c62ee
BuildRequires: qt-devel >= %{qt_version}
a6ff46e
BuildRequires: zlib-devel
2deb8fb
BuildRequires: blas-devel lapack-devel
916273b
BuildRequires: mpfr-devel
a6ff46e
a6ff46e
%description
a6ff46e
Libraries for CGAL applications.
a6ff46e
CGAL is a collaborative effort of several sites in Europe and
a6ff46e
Israel. The goal is to make the most important of the solutions and
a6ff46e
methods developed in computational geometry available to users in
a6ff46e
industry and academia in a C++ library. The goal is to provide easy
a6ff46e
access to useful, reliable geometric algorithms.
a6ff46e
a6ff46e
a6ff46e
%package devel
a6ff46e
Group:          Development/Libraries
a6ff46e
Summary:        Development files and tools for CGAL applications
b7c62ee
Requires:       cmake
a6ff46e
Requires:       %{name} = %{version}-%{release}
a6ff46e
Requires:       boost-devel >= %{boost_version}
b7c62ee
Requires:       qt-devel >= %{qt_version}
b7c62ee
Requires:       blas-devel lapack-devel qt3-develzlib-devel gmp-devel
2deb8fb
Requires:       %{_sysconfdir}/profile.d
e08b403
Requires:        mpfr-devel
a6ff46e
%description devel
a6ff46e
The %{name}-devel package provides the headers files and tools you may need to 
a6ff46e
develop applications using CGAL.
a6ff46e
a6ff46e
a6ff46e
%package demos-source
a6ff46e
Group:          Documentation
a6ff46e
Summary:        Examples and demos of CGAL algorithms
b7c62ee
Requires:       %{name}-devel = %{version}-%{release}
a6ff46e
%description demos-source
a6ff46e
The %{name}-demos-source package provides the sources of examples and demos of
a6ff46e
CGAL algorithms.
a6ff46e
a6ff46e
a6ff46e
%prep
b7c62ee
%setup -q -n CGAL-3.5-beta1
3a16e47
b7c62ee
chmod a-x demo/Circular_kernel_2/Circular_kernel_2.qrc
a6ff46e
7c5c14b
# Install README.Fedora here, to include it in %doc
9ab6864
install -p -m 644 %{SOURCE10} ./README.Fedora
a6ff46e
a6ff46e
%build
b7c62ee
mkdir build
b7c62ee
pushd build
b7c62ee
%cmake -DCGAL_INSTALL_LIB_DIR=%{_lib} ..
b7c62ee
make VERBOSE=1 %{?_smp_mflags}
b7c62ee
popd
a6ff46e
a6ff46e
a6ff46e
%install
a6ff46e
rm -rf %{buildroot}
a6ff46e
b7c62ee
pushd build
b7c62ee
b7c62ee
make install DESTDIR=$RPM_BUILD_ROOT
b7c62ee
b7c62ee
popd
a6ff46e
a6ff46e
# Install demos and examples
b7c62ee
mkdir -p %{buildroot}%{_datadir}/CGAL
2deb8fb
touch -r demo %{buildroot}%{_datadir}/CGAL/
a6ff46e
cp -a demo %{buildroot}%{_datadir}/CGAL/demo
a6ff46e
cp -a examples %{buildroot}%{_datadir}/CGAL/examples
a6ff46e
a6ff46e
%clean
a6ff46e
rm -rf %{buildroot}
a6ff46e
a6ff46e
a6ff46e
%post -p /sbin/ldconfig
a6ff46e
a6ff46e
%postun -p /sbin/ldconfig
a6ff46e
a6ff46e
a6ff46e
%files
a6ff46e
%defattr(-,root,root,-)
2deb8fb
%doc AUTHORS LICENSE LICENSE.FREE_USE LICENSE.LGPL LICENSE.QPL CHANGES README.Fedora
b7c62ee
%{_libdir}/libCGAL*.so.4
b7c62ee
%{_libdir}/libCGAL*.so.4.0.0
a6ff46e
a6ff46e
a6ff46e
%files devel
a6ff46e
%defattr(-,root,root,-)
a6ff46e
%{_includedir}/CGAL
2deb8fb
%{_libdir}/libCGAL*.so
b7c62ee
%{_libdir}/CGAL
87a50b1
%dir %{_datadir}/CGAL
a6ff46e
%{_bindir}/*
3a16e47
%exclude %{_bindir}/cgal_make_macosx_app
b7c62ee
%{_mandir}/man1/cgal_create_cmake_script.1.gz
a6ff46e
a6ff46e
a6ff46e
%files demos-source
a6ff46e
%defattr(-,root,root,-)
2deb8fb
%dir %{_datadir}/CGAL
a6ff46e
%{_datadir}/CGAL/demo
a6ff46e
%{_datadir}/CGAL/examples
ed4b7bf
%exclude %{_datadir}/CGAL/*/*/skip_vcproj_auto_generation
a6ff46e
a6ff46e
%changelog
b7c62ee
* Thu Jul 30 2009 Laurent Rineau <Laurent.Rineau__fedora@normalesup.org> - 3.5-0.1.beta1
b7c62ee
- Update to CGAL-3.5-beta1.
b7c62ee
- New compilation process: CMake.
b7c62ee
- No longer any need for patches.
b7c62ee
359c03d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-14
359c03d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
359c03d
1804bdd
* Thu Feb 26 2009  <Laurent.Rineau__fedora@normalesup.org> - 3.3.1-13
1804bdd
- noarch CGAL-demos-source, which is purely data.
1804bdd
0b0aead
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3.1-12
0b0aead
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
0b0aead
a8a57f2
* Tue Apr  1 2008 Rex Dieter <rdieter@fedoraproject.org> - 3.3.1-11
a8a57f2
- -devel: Requires: qt3-devel
a8a57f2
a9efb9b
* Tue Apr  1 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-10
a9efb9b
- Rebuild for Rawhide. BR: qt3-devel instead of qt-devel (which is now Qt-4.x).
a9efb9b
b7c62ee
* Mon Feb 11 2008 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-9
69cadee
- Rebuild with g++-4.3.
3f97dde
b7c62ee
* Mon Nov  5 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-8
e08b403
- Add Requires: mpfr-devel for CGAL-devel.
e08b403
b7c62ee
* Mon Oct 22 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-6
5d2203f
- fix /etc/profile.d/cgal.*
5d2203f
b7c62ee
* Sun Oct 21 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-3
9ab6864
- gawk and coreutils are not required in BR (see exceptions list)
9ab6864
- fix multilib issues (bug #340821):
9ab6864
  - rename %%{_datadir}/CGAL/cgal.mk to %%{_datadir}/CGAL/cgal-%%{_arch}.mk
9ab6864
  - remove the arch-specific comment from %%{_includedir}/CGAL/compiler_config.h
9ab6864
b7c62ee
* Mon Sep  3 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-2
5e71678
- Fix soversion.
5e71678
b7c62ee
* Mon Sep  3 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3.1-1
dcbdd9c
- New upstream bug-fixes release.
dcbdd9c
b7c62ee
* Fri Aug 24 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3-7
916273b
- Add BR: mpfr since F-8.
916273b
b7c62ee
* Fri Aug 24 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3-6
370e0a2
- Add BR: gawk
370e0a2
b7c62ee
* Thu Aug 23 2007 Laurent Rineau <laurent.rineau__fedora@normalesup.org> - 3.3-5
7f56283
- License: tag fixed.
7f56283
b7c62ee
* Thu Jun  7 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.3-4
87a50b1
- Move the makefile back to %%{_datadir}/CGAL, and rename it cgal.mk (sync
87a50b1
  with Debian package). That file is not a config file, but just an example
87a50b1
  .mk file that can be copied and adapted by users.
87a50b1
- Fix the %%{_sysconfdir}/profile.d/cgal.* files (the csh one was buggy).
9cf2eac
- CGAL-devel now requires all its dependancies.
87a50b1
b7c62ee
* Sat Jun  2 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.3-2
9ab6864
- Official CGAL-3.3 release
ed4b7bf
- Skip file named "skip_vcproj_auto_generation"
ed4b7bf
b7c62ee
* Wed May 30 2007 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.3-0.1.RC1
2deb8fb
- New upstream version: 3.3-RC1
2deb8fb
- Obsolete patches CGAL-3.2.1-build-libCGALQt-shared.patch,
2deb8fb
                   CGAL-3.2.1-build-no-static-lib.patch,
2deb8fb
                   CGAL-3.2.1-config.h-endianness_detection.patch.
2deb8fb
  These patchs have been merged and adapted by upstream.
2deb8fb
- New option --disable-static
2deb8fb
- Shipped OpenNL and CORE have been renamed by upstream:
2deb8fb
    - %%{_includedir}/OpenNL is now %{_includedir}/CGAL/OpenNL
2deb8fb
    - %%{_includedir}/CORE is now %{_includedir}/CGAL/CORE
2deb8fb
    - libCORE has been rename libCGALcore++
2deb8fb
  Reasons:
2deb8fb
    - CGAL/OpenNL is a special version of OpenNL, rewritten for CGAL 
2deb8fb
      in C++ by the OpenNL author,
2deb8fb
    - CGAL/CORE is a fork of CORE-1.7. CORE-1.7 is no longer maintained by 
2deb8fb
      its authors, and CORE-2.0 is awaited since 2004.
2deb8fb
  In previous releases of this package, CORE was excluded from the package, 
2deb8fb
  because %%{_includedir}/CORE/ was a name too generic (see comment #8 of
2deb8fb
  #bug #199168). Since the headers of CORE have been moved to
2deb8fb
  %%{_includedir}/CGAL/CORE, CORE is now shipped with CGAL.
2deb8fb
- move %%{_datadir}/CGAL/make/makefile to %%{_sysconfdir}/CGAL/makefile
2deb8fb
(because it is a config file).
2deb8fb
2585e96
* Thu Nov  2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-19
2585e96
- Fix CGAL-3.2.1-build-libCGALQt-shared.patch (bug #213675)
2585e96
7c5c14b
* Fri Sep 15 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-18
2deb8fb
- Move LICENSE.OPENNL to %%doc CGAL-devel (bug #206575).
7c5c14b
3a16e47
* Mon Sep 11 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-17
3a16e47
- libCGALQt.so needs -lGL
2deb8fb
- remove %%{_bindir}/cgal_make_macosx_app
3a16e47
3a16e47
* Sat Sep  11 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-16
3a16e47
- Remove CORE support. Its acceptance in Fedora is controversial (bug #199168).
3a16e47
- Exclude .vcproj files from the -demos-source subpackage.
3a16e47
- Added a patch to build *shared* library libCGALQt.
3a16e47
- Added a patch to avoid building static libraries.
3a16e47
- Fixed the License: tag.
3a16e47
a6ff46e
* Thu Aug 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-15
2deb8fb
- Change the permissions of %%{_sysconfdir}/profile.d/cgal.*sh
a6ff46e
- Remove the meta package CGAL. CGAL-libs is renamed CGAL.
a6ff46e
- Added two patchs:
a6ff46e
  - CGAL-3.2.1-config.h-endianness_detection.patch which is an upstream patch
a6ff46e
    to fix the endianness detection, so that is is no longer hard-coded in
a6ff46e
    <CGAL/compiler_config.h>,
a6ff46e
  - CGAL-3.2.1-install_cgal-no_versions_in_compiler_config.h.patch that
a6ff46e
    removes hard-coded versions in <CGAL/compiler_config.h>.
a6ff46e
a6ff46e
* Wed Aug 16 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-14
a6ff46e
- Simplified spec file, for Fedora Extras.
a6ff46e
a6ff46e
* Mon Jul 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-13
a6ff46e
- Change CGAL-README.Fedora, now that Installation.pdf is no longer in the
a6ff46e
tarball.
a6ff46e
a6ff46e
* Mon Jul 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-12
a6ff46e
- Remove unneeded  -R/-L/-I flags from %%{_datadir}/CGAL/make/makefile
a6ff46e
a6ff46e
* Mon Jul 17 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-11
a6ff46e
- Fix the soversion.
a6ff46e
- Fix %%{cgal_prefix} stuff!!
a6ff46e
- Quote 'EOF', so that the lines are not expanded by the shell.
a6ff46e
a6ff46e
* Tue Jul  4 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-10
a6ff46e
- Fix makefile.sed so that %%{buildroot} does not appear in 
a6ff46e
  %%{_datadir}/CGAL/make/makefile.
a6ff46e
a6ff46e
* Sun Jul  2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-9
a6ff46e
- Remove Obsoletes: in the meta-package CGAL.
a6ff46e
a6ff46e
* Sun Jul  2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-8
a6ff46e
- Fix the localisation of demo and examples.
a6ff46e
a6ff46e
* Sun Jul  2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-6
a6ff46e
- Set Requires, in sub-packages.
a6ff46e
a6ff46e
* Sun Jul  2 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2.1-5
a6ff46e
- CGAL-3.2.1
a6ff46e
- Sub-package "demo" is now named "demos-source" (Fedora guidelines).
a6ff46e
- Fix some rpmlint warnings
a6ff46e
- Added README.Fedora, to explain why the documentation is not shipped, and how CGAL is divided in sub-packages.
a6ff46e
a6ff46e
a6ff46e
* Sat Jul  1 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-4
a6ff46e
- Use %%{_datadir}/CGAL instead of %%{_datadir}/%%{name}-%%{version}
a6ff46e
- Fix %%{_datadir}/CGAL/makefile, with a sed script.
a6ff46e
- Added a new option %%set_prefix (see top of spec file).
a6ff46e
a6ff46e
* Sat Jul  1 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-3
a6ff46e
- Use less "*" in %%files, to avoid futur surprises.
2deb8fb
- Remove %%{_sysconfdir}/profile.d/cgal.* from %%files if %%cgal_prefix is not empty.
a6ff46e
- Fix %%build_doc=0 when %%fedora is set. New option macro: %%force_build_doc.
a6ff46e
a6ff46e
* Fri Jun 30 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-2
a6ff46e
- Fix some end-of-lines in %%prep, to please rpmlint.
a6ff46e
a6ff46e
* Mon May 22 2006 Laurent Rineau <laurent.rineau__fedora_extras@normalesup.org> - 3.2-1
a6ff46e
- Remove README from %%doc file: it describes the tarball layout.
a6ff46e
- Updated to CGAL-3.2.
a6ff46e
- Added examples in the -demo subpackage.
a6ff46e
- Cleaning up, to follow Fedora Guidelines.
a6ff46e
- The -doc subpackage cannot be build on Fedora (no license).
a6ff46e
- Add ldconfig back.
a6ff46e
- No prefix.
a6ff46e
a6ff46e
* Fri Apr 28 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.447
a6ff46e
- Update to CGAL-3.2-447.
a6ff46e
a6ff46e
* Fri Apr 21 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.440
a6ff46e
- Updated to CGAL-3.2-I-440.
a6ff46e
a6ff46e
* Wed Apr 19 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.438
a6ff46e
- Added a patch to install_cgal, to require support for BOOST, BOOST_PROGRAM_OPTIONS, X11, GMP, MPFR, GMPXX, CORE, ZLIB, and QT.
a6ff46e
- Move scripts to %%{_bindir}
a6ff46e
- %%{_libdir}/CGAL-I now belong to CGAL and CGAL-devel, so that it disappears when the packages are removed.
a6ff46e
a6ff46e
* Wed Apr 12 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org> - 3.2-0.431
a6ff46e
- Updated to CGAL-3.2-I-431.
a6ff46e
- Remove the use of ldconfig.
a6ff46e
- Changed my email address.
a6ff46e
- No longer need for patch0.
a6ff46e
- Pass of rpmlint.
a6ff46e
- Remove unneeded Requires: tags (rpm find them itself).
a6ff46e
- Change the release tag.
a6ff46e
- Added comments at the beginning of the file.
a6ff46e
- Added custom ld flags, on 64bits archs (so that X11 is detected).
a6ff46e
a6ff46e
* Tue Apr 11 2006 Laurent Rineau <laurent.rineau__fc_extra@normalesup.org>
a6ff46e
- Removed -g and -O2 from CUSTOM_CXXFLAGS, in the makefile only.
a6ff46e
  They are kept during the compilation of libraries.
a6ff46e
- Added zlib in dependencies.
a6ff46e
- Added a patch to test_ZLIB.C, until it is merged upstream.
a6ff46e
a6ff46e
* Fri Mar 31 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
a6ff46e
- adding a test in the setup section.
a6ff46e
a6ff46e
* Mon Mar 13 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
a6ff46e
- delete the patch that fixes the perl path.
a6ff46e
- add build_doc and build_demo flags.
a6ff46e
a6ff46e
* Fri Mar 10 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
a6ff46e
- Adding new sub-packages doc(pdf&html) and demo.
a6ff46e
- Add internal_release flag. 
a6ff46e
a6ff46e
* Thu Mar 09 2006 Naceur MESKINI <nmeskini@sophia.inria.fr>
a6ff46e
- Cleanup a specfile.
a6ff46e