]> Creatis software - gdcm.git/commitdiff
* Builder/gdcm.spec.in : this spec file works on Fedora Core 4.
authorbellet <bellet>
Tue, 11 Oct 2005 13:07:42 +0000 (13:07 +0000)
committerbellet <bellet>
Tue, 11 Oct 2005 13:07:42 +0000 (13:07 +0000)
Builder/gdcm.spec.in

index b05a14162c3a7dc7f302e1246d81bc1bd97741f1..3860f90575ec8daae667a3944b280febef47b5a3 100644 (file)
@@ -1,20 +1,51 @@
-Summary: Dicom library
+# Note that this is NOT a relocatable package
+Summary: gdcm
 Name: gdcm
 Version: @GDCM_VERSION@
 Release: @GDCM_VERSION@.@GDCM_DATE@
 License: BSD
 Group: Development/Libraries
-URL: http://www.creatis.insa-lyon.fr/Public/Gdcm
-#Source: ftp://ftp.creatis.insa-lyon.fr/gdcm/gdcm/gdcm.tar.gz
-Source: ../SOURCES/gdcm.tar.gz
+Source: gdcm.tar.gz
 BuildRoot: /var/tmp/gdcm-%{version}-root
-Requires: python2
-BuildRequires: doxygen, swig13, python2
 Prereq: /sbin/install-info
-Packager: Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
+Requires: glib
+BuildRequires: cmake >= 2.2.0, swig = 1.3.24
 
 %description
-gdcm is a library dedicated to read and write DICOM files.
+write something here
+
+%changelog
+* Tue Oct 11 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-0.cvs.2.fc4
+- enable vtk
+- fix python path
+
+* Tue Oct 11 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-0.cvs.1.fc4
+- rebuild from CVS
+- changed the release tag
+
+* Wed May 04 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.1-1.20050504
+- rebuild from CVS
+
+* Fri Apr 15 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.0-1.20050415
+- rebuild a post 1.0.0 CVS version with cmake
+
+* Wed Mar 23 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-4
+- rebuild for VTK cvs20040114.
+
+* Thu Nov 11 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-3
+- fix vtk/Makefile.am for FC3 automake
+- rebuild for Fedora Core 3
+
+* Thu May 27 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-2
+- rebuild for Fedora Core 2
+- debuginfo rebuild
+
+* Mon May  3 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
+- fixed some python paths.
+- update to version of 2004-04-20, for use with DaVaW.
+
+* Tue Feb 24 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
+- initial packaging.
 
 %prep
 %setup -q -n gdcm
@@ -25,15 +56,15 @@ export MAKE='make %{?_smp_mflags}'
 export CFLAGS="$RPM_OPT_FLAGS"
 export CXXFLAGS="$RPM_OPT_FLAGS -Wno-deprecated"
 cmake . \
--DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
--DCMAKE_C_COMPILER:FILEPATH=$CC \
--DCMAKE_INSTALL_PREFIX:STRING="/usr" \
--DGDCM_DATA_DIR:STRING="/usr/shared/gdcm" \
--DBUILD_TESTING:BOOL=OFF \
--DBUILD_EXAMPLES:BOOL=ON \
--DGDCM_VTK:BOOL=ON \
--DGDCM_WRAP_PYTHON:BOOL=ON \
--DGDCM_DOCUMENTATION:BOOL=ON
+       -DCMAKE_CXX_COMPILER:FILEPATH=$CXX \
+       -DCMAKE_C_COMPILER:FILEPATH=$CC \
+       -DCMAKE_INSTALL_PREFIX:STRING="%{_prefix}" \
+       -DBUILD_TESTING:BOOL=OFF \
+       -DGDCM_DATA_DIR:STRING="%{_datadir}/gdcm" \
+       -DGDCM_VTK:BOOL=ON \
+       -DGDCM_WRAP_PYTHON:BOOL=ON \
+       -DGDCM_DOCUMENTATION:BOOL=ON \
+       -DSWIG_DIR:PATH="%{_datadir}/swig/1.3.24"
 
 %build
 make
@@ -42,6 +73,8 @@ make
 rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
+install -d $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d
+echo "%{_libdir}/gdcm" > $RPM_BUILD_ROOT/%{_sysconfdir}/ld.so.conf.d/gdcm.conf
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -52,32 +85,13 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(-, root, root)
-%doc AUTHORS ChangeLog NEWS README DEVELOPPER INSTALL
-%{_prefix}/bin/*
-%{_prefix}/lib/*
-%{_prefix}/include/*
-%{_prefix}/share/gdcm/*
-
-%changelog
-* Fri Apr 15 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 1.0.0-1.20050415
-- rebuild a post 1.0.0 CVS version with cmake
-
-* Wed Mar 23 2005 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-4
-- rebuild for VTK cvs20040114.
-
-* Thu Nov 11 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-3
-- fix vtk/Makefile.am for FC3 automake
-- rebuild for Fedora Core 3
-
-* Thu May 27 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr> 0.4.1-2
-- rebuild for Fedora Core 2
-- debuginfo rebuild
-
-* Mon May  3 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
-- fixed some python paths.
-- update to version of 2004-04-20, for use with DaVaW.
-
-* Tue Feb 24 2004 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
-- initial packaging.
-
 
+%doc AUTHORS ChangeLog README TODO DEVELOPPER INSTALL PACKAGER
+%doc Doc
+%{_bindir}/*
+%{_includedir}/*
+%{_libdir}/gdcm
+%{_libdir}/*.cmake
+%{_libdir}/python*/site-packages/*.pth
+%{_datadir}/gdcm
+%{_sysconfdir}/ld.so.conf.d/gdcm.conf