gdcm/gdcm.spec

342 lines
9.9 KiB
RPMSpec
Raw Normal View History

2010-10-29 09:46:23 +00:00
# we don't want to provide private python extension libs
%{?filter_setup:
%filter_provides_in %{python_sitearch}/.*\.so$
%filter_setup
}
Name: gdcm
Version: 2.2.4
Release: 1%{?dist}
2010-10-29 09:46:23 +00:00
Summary: Grassroots DiCoM is a C++ library to parse DICOM medical files
Group: Development/Libraries
License: BSD
URL: http://gdcm.sourceforge.net/wiki/index.php/Main_Page
Source0: http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%20%{version}/%{name}-%{version}.tar.bz2
2010-10-29 09:46:23 +00:00
#Source1: http://downloads.sourceforge.net/project/gdcm/gdcmData/gdcmData/gdcmData.tar.bz2
# There is a bug in doxygen preventing compilation on:
2013-05-01 12:12:46 +00:00
#ExcludeArch: ppc ppc64
2010-10-29 09:46:23 +00:00
Patch1: gdcm-2.0.14-inplacebuild.patch
2010-10-29 09:46:23 +00:00
Patch2: gdcm-2.0.14-usecopyright.patch
Patch3: gdcm-2.0.17-install2libarch.patch
Patch4: gdcm-2.0.17-no_versioned_dir.patch
2010-10-29 09:46:23 +00:00
BuildRequires: CharLS-devel >= 1.0
BuildRequires: cmake
BuildRequires: doxygen-latex
2010-10-29 09:46:23 +00:00
BuildRequires: expat-devel
BuildRequires: fontconfig-devel
#BuildRequires: graphviz
BuildRequires: gl2ps-devel
2011-03-17 13:04:13 +00:00
BuildRequires: libogg-devel
BuildRequires: libtheora-devel
BuildRequires: libuuid-devel
BuildRequires: mesa-libOSMesa-devel
2011-03-27 12:35:21 +00:00
BuildRequires: mysql-libs
BuildRequires: mysql-devel
BuildRequires: openssl-devel
BuildRequires: openjpeg-devel
#BuildRequires: /usr/bin/pdflatex
2013-05-01 09:52:12 +00:00
BuildRequires: poppler-devel
BuildRequires: python2-devel
BuildRequires: postgresql-devel
BuildRequires: swig
BuildRequires: texlive-ec
BuildRequires: vtk-devel
2010-10-29 09:46:23 +00:00
%description
GDCM implements the dicom base standard part 5 that concentrates on image file
format. Hence GDCM supports the following formats:
- ACR-NEMA version 1 and 2 (huffman compression is not supported),
- DICOM version 3.0, including various encodings of JPEG - lossless & lossy-,
RLE, J2K, deflated, JPEG-LS (very experimental) (MPEG2 compression is not
supported)
- Papyrus V2 and V3 file headers should be readable,
2013-05-01 09:57:40 +00:00
%package doc
Summary: Includes html documentation for gdcm
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
2013-05-01 09:57:40 +00:00
%description doc
2013-05-01 09:57:40 +00:00
You should install the gdcm-doc package if you would like to
access upstream documentation for gdcm
2010-10-29 09:46:23 +00:00
%package devel
Summary: Libraries and headers for GDCM
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
You should install the gdcm-devel package if you would like to
compile applications based on gdcm
%package python
Summary: Python binding for GDCM
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description python
You should install the gdcm-python package if you would like to
used this library with python
%prep
%setup -q
%patch1
%patch2
%patch3 -p 1
%patch4 -p 1
2010-10-29 09:46:23 +00:00
# Remove bundled utilities (we use Fedora's ones)
rm -rf Utilities/gdcmexpat
rm -rf Utilities/gdcmopenjpeg
rm -rf Utilities/gdcmzlib
rm -rf Utilities/gdcmuuid
rm -rf Utilities/gdcmcharls
# Remove bundled utilities (we don't use them)
rm -rf Utilities/gdcmmd5
rm -rf Utilities/getopt
rm -rf Utilities/pvrg
rm -rf Utilities/rle
rm -rf Utilities/wxWidgets
%build
2013-05-01 09:27:49 +00:00
mkdir -p %{_target_platform}
pushd %{_target_platform}
%cmake .. \
-DCMAKE_VERBOSE_MAKEFILE=ON \
2010-10-29 09:46:23 +00:00
-DGDCM_BUILD_TESTING=OFF \
-DGDCM_BUILD_EXAMPLES:BOOL=ON \
2013-05-01 09:52:12 +00:00
-DGDCM_DOCUMENTATION:BOOL=ON \
2013-04-19 19:30:44 +00:00
-DGDCM_PDF_DOCUMENTATION:BOOL=OFF \
2011-02-14 11:57:23 +00:00
-DGDCM_WRAP_PYTHON:BOOL=ON \
2010-10-29 09:46:23 +00:00
-DGDCM_WRAP_JAVA=OFF \
-DGDCM_BUILD_SHARED_LIBS:BOOL=ON \
-DGDCM_BUILD_APPLICATIONS:BOOL=ON \
-DCMAKE_BUILD_TYPE:STRING="Release" \
-DGDCM_USE_VTK:BOOL=ON \
-DGDCM_USE_SYSTEM_CHARLS=ON \
2010-10-29 09:46:23 +00:00
-DGDCM_USE_SYSTEM_EXPAT=ON \
-DGDCM_USE_SYSTEM_OPENJPEG=ON \
-DGDCM_USE_SYSTEM_ZLIB=ON \
-DGDCM_USE_SYSTEM_UUID=ON \
-DGDCM_USE_SYSTEM_LJPEG=OFF \
-DGDCM_USE_SYSTEM_OPENSSL=ON \
-DGDCM_USE_JPEGLS=ON \
2013-05-01 09:27:49 +00:00
-DGDCM_USE_SYSTEM_POPPLER=ON
2010-10-29 09:46:23 +00:00
#Cannot build wrap_java:
# -DGDCM_VTK_JAVA_JAR:PATH=/usr/share/java/vtk.jar no found!
# yum provides */vtk.jar -> No results found
2013-05-01 09:27:49 +00:00
popd
2010-10-29 09:46:23 +00:00
2013-05-01 09:27:49 +00:00
make %{?_smp_mflags} -C %{_target_platform}
2010-10-29 09:46:23 +00:00
%install
2013-05-01 09:27:49 +00:00
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
2010-10-29 09:46:23 +00:00
2011-02-14 11:57:23 +00:00
install -d $RPM_BUILD_ROOT%{python_sitelib}/
mv $RPM_BUILD_ROOT%{_libdir}/*.py $RPM_BUILD_ROOT%{python_sitelib}/
#mv $RPM_BUILD_ROOT%{_libdir}/gdcmswig.py $RPM_BUILD_ROOT%{python_sitelib}/
2011-02-14 11:57:23 +00:00
mv $RPM_BUILD_ROOT%{_libdir}/_gdcmswig.so $RPM_BUILD_ROOT%{python_sitelib}/
#mv $RPM_BUILD_ROOT%{_libdir}/vtkgdcm.py $RPM_BUILD_ROOT%{python_sitelib}/
2010-10-29 09:46:23 +00:00
## Rearranging directory layout and removing version from dir
2011-02-02 09:17:49 +00:00
mv $RPM_BUILD_ROOT%{_libdir}/gdcm/*.cmake $RPM_BUILD_ROOT%{_datadir}/gdcm/
2011-03-19 19:29:30 +00:00
rmdir $RPM_BUILD_ROOT%{_libdir}/gdcm
2010-10-29 09:46:23 +00:00
## Cleaning Example dir from cmake cache files + remove 0-lenght files
find %{_builddir}/%{?buildsubdir}/Examples -depth -name CMakeFiles | xargs rm -rf
find %{_builddir}/%{?buildsubdir}/Examples -depth -size 0 | xargs rm -rf
%check
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/bin
ctest .
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
2010-10-29 09:46:23 +00:00
%files
%doc %{_mandir}/man1/*.1*
%doc AUTHORS Copyright.txt README.Copyright.txt README.txt
%dir %{_datadir}/gdcm/
%{_bindir}/*
%{_libdir}/*.so.*
%{_datadir}/gdcm/XML
2013-05-01 09:57:40 +00:00
%files doc
%dir %{_docdir}/%{name}/
%{_docdir}/%{name}/*
2010-10-29 09:46:23 +00:00
%files devel
%dir %{_includedir}/gdcm/
%doc Examples
%{_includedir}/gdcm/*
%{_libdir}/*.so
%{_datadir}/gdcm/*.cmake
2011-02-14 11:57:23 +00:00
%files python
%{python_sitelib}/*
2010-10-29 09:46:23 +00:00
%changelog
* Fri Jul 12 2013 Orion Poplawski <orion@cora.nwra.com> - 2.2.4-1
- Update to 2.2.4
- Rebuild for vtk 6.0.0
2013-06-30 15:41:10 +00:00
* Sun Jun 30 2013 Bruno Wolff III <bruno@wolff.to> - 2.2.3-3
- Rebuild for poppler soname bump
* Wed May 1 2013 Mario Ceresa <mrceresa@fedoraproject.org> - 2.2.3-1
- Upgrade to 2.2.3
- Drop upstreamed patches
- Added doc package
- Various fixes to spec file
2013-04-19 19:30:44 +00:00
- Dropped pdf documentation because cmake scripts still search for pdfopt
2013-05-01 09:52:12 +00:00
2013-04-14 13:07:19 +00:00
2013-03-04 15:54:53 +00:00
* Mon Feb 4 2013 Mario Ceresa <mrceresa@fedoraproject.org> - 2.0.18-8
- Added missing BR for pdflatex
2013-01-26 00:59:33 +00:00
* Fri Jan 25 2013 Mario Ceresa <mrceresa@fedoraproject.org> - 2.0.18-7
- Rebuild (poppler-0.22.0)
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.18-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2012-07-02 11:29:52 +00:00
* Mon Jul 2 2012 Marek Kasik <mkasik@redhat.com> - 2.0.18-5
- Rebuild (poppler-0.20.1)
2012-05-16 14:38:37 +00:00
* Wed May 16 2012 Marek Kasik <mkasik@redhat.com> - 2.0.18-4
- Rebuild (poppler-0.20.0)
2012-02-10 04:45:55 +00:00
* Thu Feb 09 2012 Rex Dieter <rdieter@fedoraproject.org> 2.0.18-3
- rebuild (openjpeg)
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.18-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
* Tue Nov 01 2011 Orion Poplawski <orion@cora.nwra.com> - 2.0.18-1
- Update to 2.0.18
- Drop upstreamed patches
- Add -DGDCM_USE_SYSTEM_CHARLS=ON
2011-11-02 14:44:51 +00:00
- Add patch to fix charls include
2011-10-28 18:16:34 +00:00
* Fri Oct 28 2011 Rex Dieter <rdieter@fedoraproject.org> - 2.0.17-9
- rebuild(poppler)
2011-10-19 14:26:47 +00:00
* Wed Oct 19 2011 Mario Ceresa <mrceresa@fedoraproject.org> - 2.0.17-8
- Rebuild for vtk
2011-09-30 09:11:34 +00:00
* Fri Sep 30 2011 Marek Kasik <mkasik@redhat.com> - 2.0.17-7
- Rebuild (poppler-0.18.0)
2011-09-19 13:58:35 +00:00
* Mon Sep 19 2011 Marek Kasik <mkasik@redhat.com> - 2.0.17-6
- Rebuild (poppler-0.17.3)
* Mon Jul 25 2011 Rahul Sundaram <sundaram@fedoraproject.org> - 2.0.17-5
- Rebuild for cmake
- Clean up spec to match current guidelines
2011-07-15 15:29:40 +00:00
* Fri Jul 15 2011 Marek Kasik <mkasik@redhat.com> - 2.0.17-4
- Rebuild (poppler-0.17.0)
2011-04-20 13:10:43 +00:00
* Wed Apr 20 2011 Mario Ceresa <mrceresa@fedoraproject.org> - 2.0.17-3
- Bump release
2011-03-27 12:37:24 +00:00
* Sun Mar 27 2011 Mario Ceresa mrceresa gmailcom - 2.0.17-2
- Fixed BR mysql-libs
2011-03-19 19:29:30 +00:00
* Sat Mar 19 2011 Mario Ceresa mrceresa gmailcom - 2.0.17-1
- Updated to version 2.0.17
2011-03-17 13:04:13 +00:00
* Thu Mar 17 2011 Marek Kasik <mkasik@redhat.com> - 2.0.16-17
- Fix BuildRequires
2011-03-13 10:55:38 +00:00
* Sun Mar 13 2011 Marek Kasik <mkasik@redhat.com> - 2.0.16-16
- Rebuild (poppler-0.16.3)
2011-02-20 15:25:39 +00:00
* Sun Feb 20 2011 Orion Poplawski <orion@cora.nwra.com> - 2.0.16-15
- Rebuild for new vtk with fixed sonames
2011-02-14 11:12:09 +00:00
* Mon Feb 14 2011 Mario Ceresa <mrceresa@gmail.com> - 2.0.16-13
- Adapted to new version of CharLS lib (v 1.0)
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.16-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2011-02-14 11:12:09 +00:00
* Mon Feb 02 2011 Mario Ceresa <mrceresa@gmail.com> - 2.0.16-11
- Removed python bindings because they fail to build with gcc 4.6
2011-02-14 11:12:09 +00:00
* Mon Feb 02 2011 Mario Ceresa <mrceresa@gmail.com> - 2.0.16-10
2011-02-02 09:17:49 +00:00
- Added patch to fix upstream bug #3169784
2011-01-13 16:20:34 +00:00
2011-02-14 11:12:09 +00:00
* Sun Jan 02 2011 Rex Dieter <rdieter@fedoraproject.org> - 2.0.16-11
2011-02-02 09:23:02 +00:00
- rebuild (poppler)
* Wed Dec 15 2010 Rex Dieter <rdieter@fedoraproject.org> - 2.0.16-8
- rebuild (poppler)
2011-02-02 09:17:49 +00:00
* Mon Nov 22 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-7
- Fixed bug 655738
2010-12-15 20:30:25 +00:00
* Tue Nov 19 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-6
- Enabled VTK support
2010-11-06 18:08:14 +00:00
2010-10-29 09:46:23 +00:00
* Tue Oct 19 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-5
- Filtered out private python extension lib
- Added documentation
* Tue Oct 19 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-4
- Changed directory ownership
* Fri Oct 15 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-3
- Rearranged directory layout to remove version in dir names
* Sat Sep 18 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-2
- Added ExcludeArch for ppc and ppc64 because of a bug in doxygen
see https://bugzilla.redhat.com/show_bug.cgi?id=566725#c9
* Sat Sep 18 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.16-1
- Updated to release 2.0.16
- Removed patch "stack_namespace" and "poppler_breaks_api" because
already included upstream
- Added swig and texlive-pdflatex to BuildRequires
- Moved python files to a separate package
* Sun Apr 11 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.14-5
- Fixed some issues pointed out by Martin Gieseking. In details:
- BR to build documentation (tex + graphviz)
- Changed man page inclusion
- Fixed changelog format
- Removed VTK support because cmake 2.8 is needed to recognize vtk 5.4!
- Fixed python support
* Thu Mar 25 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.14-4
- Added VTK support
- Added python support
* Mon Mar 21 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.14-3
- Added BuildRequires fontconfig-devel
- Fixed lib /lib64 issue with base CMakeLists.txt
* Mon Mar 15 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.14-2
- Added BuildRequires CharLS-devel
* Wed Feb 17 2010 Mario Ceresa <mrceresa@gmail.com> 2.0.14
- Initial RPM Release