[libigtl] Initial import (#887911).
mrceresa
mrceresa at fedoraproject.org
Thu Jan 3 17:55:08 UTC 2013
commit e66ed46f1df7cd768661feacbf45656fc9f11750
Author: Mario Ceresa <mrceresa at gmail.com>
Date: Thu Jan 3 18:55:01 2013 +0100
Initial import (#887911).
.gitignore | 1 +
...1-Add-generation-of-doxygen-documentation.patch | 36 +++++
libigtl-0002-Add-doxygen-and-papers-dir.patch | 43 +++++
libigtl-0003-Use-original-doxyfile.patch | 25 +++
libigtl.spec | 167 ++++++++++++++++++++
sources | 1 +
6 files changed, 273 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..38f6958 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/openigtlink-OpenIGTLink-00c007f.tar.gz
diff --git a/libigtl-0001-Add-generation-of-doxygen-documentation.patch b/libigtl-0001-Add-generation-of-doxygen-documentation.patch
new file mode 100644
index 0000000..9a2e252
--- /dev/null
+++ b/libigtl-0001-Add-generation-of-doxygen-documentation.patch
@@ -0,0 +1,36 @@
+From 7aa4f1524da7b74adea4b60cbd92199c12d26059 Mon Sep 17 00:00:00 2001
+From: Mario Ceresa <mrceresa at gmail.com>
+Date: Tue, 18 Dec 2012 10:56:05 +0100
+Subject: [PATCH 1/3] Add generation of doxygen documentation
+
+Removed doxygen.in
+---
+ Documents/Doxygen/CMakeLists.txt | 15 +++++++++++++++
+ 1 file changed, 15 insertions(+)
+ create mode 100644 Documents/Doxygen/CMakeLists.txt
+
+diff --git a/Documents/Doxygen/CMakeLists.txt b/Documents/Doxygen/CMakeLists.txt
+new file mode 100644
+index 0000000..00877c2
+--- /dev/null
++++ b/Documents/Doxygen/CMakeLists.txt
+@@ -0,0 +1,15 @@
++#-- Add an Option to toggle the generation of the API documentation
++if(BUILD_DOCUMENTATION)
++ FIND_PACKAGE(Doxygen)
++ if (NOT DOXYGEN_FOUND)
++ message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly")
++ endif()
++ #-- Configure the Template Doxyfile for our specific project
++ configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Documents/Doxygen/Doxyfile @ONLY IMMEDIATE)
++ #-- Add a custom target to run Doxygen when ever the project is built
++ add_custom_target (doc ALL
++ COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Documents/Doxygen
++ SOURCES ${PROJECT_BINARY_DIR}/Documents/Doxygen)
++ # IF you do NOT want the documentation to be generated EVERY time you build the project
++ # then leave out the 'ALL' keyword from the above command.
++endif()
+\ No newline at end of file
+--
+1.7.11.7
+
diff --git a/libigtl-0002-Add-doxygen-and-papers-dir.patch b/libigtl-0002-Add-doxygen-and-papers-dir.patch
new file mode 100644
index 0000000..0635f7e
--- /dev/null
+++ b/libigtl-0002-Add-doxygen-and-papers-dir.patch
@@ -0,0 +1,43 @@
+From 7c1fe00ed2fe9588d035c921b2c4243609518751 Mon Sep 17 00:00:00 2001
+From: Mario Ceresa <mrceresa at gmail.com>
+Date: Tue, 18 Dec 2012 11:21:24 +0100
+Subject: [PATCH 2/3] Add doxygen and papers dir
+
+---
+ CMakeLists.txt | 8 +++++---
+ 1 file changed, 5 insertions(+), 3 deletions(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index c4a2300..6e797e6 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -269,7 +269,6 @@ SET(CMAKE_MODULE_LINKER_FLAGS "${CMAKE_MODULE_LINKER_FLAGS} ${OpenIGTLink_REQUIR
+
+ ADD_SUBDIRECTORY( Source )
+ ADD_SUBDIRECTORY( Tools )
+-#ADD_SUBDIRECTORY( Documents )
+
+ IF(OpenIGTLink_BUILD_TESTING)
+ ADD_SUBDIRECTORY( Testing )
+@@ -287,13 +286,16 @@ ENDIF(OpenIGTLink_BUILD_EXAMPLES)
+ OPTION(BUILD_DOCUMENTATION "Build OpenIGTLink Documentation" OFF)
+
+ IF(BUILD_DOCUMENTATION)
+- #SUBDIRS(Utilities/Doxygen)
+- ADD_SUBDIRECTORY( Documents/Doxygen )
++
+ CONFIGURE_FILE(${OpenIGTLink_SOURCE_DIR}/Utilities/Doxygen/doxygen.config.in
+ ${OpenIGTLink_BINARY_DIR}/doxygen.config)
+
+ CONFIGURE_FILE(${OpenIGTLink_SOURCE_DIR}/Utilities/Doxygen/igtldoxygen.pl.in
+ ${OpenIGTLink_BINARY_DIR}/igtldoxygen.pl)
++
++ ADD_SUBDIRECTORY( Documents/Doxygen )
++
++ ADD_SUBDIRECTORY(Documents/Papers)
+ ENDIF(BUILD_DOCUMENTATION)
+
+
+--
+1.7.11.7
+
diff --git a/libigtl-0003-Use-original-doxyfile.patch b/libigtl-0003-Use-original-doxyfile.patch
new file mode 100644
index 0000000..952e3f3
--- /dev/null
+++ b/libigtl-0003-Use-original-doxyfile.patch
@@ -0,0 +1,25 @@
+From 1133e01602fb29bb4ae9f66f9b7e3b3b915852ba Mon Sep 17 00:00:00 2001
+From: Mario Ceresa <mrceresa at gmail.com>
+Date: Tue, 18 Dec 2012 11:21:50 +0100
+Subject: [PATCH 3/3] Use original doxyfile
+
+---
+ Documents/Doxygen/CMakeLists.txt | 2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/Documents/Doxygen/CMakeLists.txt b/Documents/Doxygen/CMakeLists.txt
+index 00877c2..dd68b2f 100644
+--- a/Documents/Doxygen/CMakeLists.txt
++++ b/Documents/Doxygen/CMakeLists.txt
+@@ -4,8 +4,6 @@ if(BUILD_DOCUMENTATION)
+ if (NOT DOXYGEN_FOUND)
+ message(FATAL_ERROR "Doxygen is needed to build the documentation. Please install it correctly")
+ endif()
+- #-- Configure the Template Doxyfile for our specific project
+- configure_file(Doxyfile.in ${PROJECT_BINARY_DIR}/Documents/Doxygen/Doxyfile @ONLY IMMEDIATE)
+ #-- Add a custom target to run Doxygen when ever the project is built
+ add_custom_target (doc ALL
+ COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_BINARY_DIR}/Documents/Doxygen
+--
+1.7.11.7
+
diff --git a/libigtl.spec b/libigtl.spec
new file mode 100644
index 0000000..ddc6278
--- /dev/null
+++ b/libigtl.spec
@@ -0,0 +1,167 @@
+%global _short_name igtl
+%global _ver_major 1
+%global _ver_minor 9
+%global _ver_release 7
+
+Name: lib%{_short_name}
+Version: %{_ver_major}.%{_ver_minor}.%{_ver_release}
+Release: 6%{?dist}
+Summary: Network communication library for image-guided therapy
+
+License: BSD
+URL: https://github.com/openigtlink/OpenIGTLink/
+Source0: https://github.com/openigtlink/OpenIGTLink/tarball/development/openigtlink-OpenIGTLink-00c007f.tar.gz
+
+# Generate documentation: sent upstream https://github.com/openigtlink/OpenIGTLink/pull/6
+Patch0: %{name}-0001-Add-generation-of-doxygen-documentation.patch
+Patch1: %{name}-0002-Add-doxygen-and-papers-dir.patch
+Patch2: %{name}-0003-Use-original-doxyfile.patch
+
+BuildRequires: cmake
+# For documentation:
+BuildRequires: tex(latex)
+BuildRequires: gnuplot
+BuildRequires: graphviz
+BuildRequires: doxygen
+# Including fonts for fedora 18 and later
+%if 0%{?fedora} >= 18
+BuildRequires: tex-helvetic
+BuildRequires: tex-symbol
+BuildRequires: tex-times
+%endif
+
+
+%description
+OpenIGTLink provides a standardized mechanism for communications among computers
+and devices in operating rooms (OR) for wide variety of image-guided therapy
+(IGT) applications. Examples of such applications include:
+
+* Stereotactic surgical guidance using optical position sensor.
+* Intraoperative image guidance using real-time MRI.
+* Robot-assisted intervention with robotic device + surgical planning software
+
+OpenIGTLink is a set of digital messaging formats and rules (protocol) used
+for data exchange on a local area network (LAN). The specification of
+OpenIGTLink and its reference implementation, the OpenIGTLink Library, are
+available free of charge for any purpose including commercial use.
+
+An OpenIGTLink interface is available in popular medical image processing and
+visualization software 3D Slicer.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+%package doc
+Summary: Documentation for %{name}
+Group: Documentation
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description doc
+The %{name}-doc package contains documentation for %{name}
+
+%prep
+%setup -q -n openigtlink-OpenIGTLink-4caf9cf
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+
+# Build documentation with pdflatex instead of latex + dvips
+sed -i s/dvips/pdftex/ Documents/Papers/InsightJournal2008/OpenIGTLinkIJ2008.tex
+
+%build
+mkdir -p %{_target_platform}
+pushd %{_target_platform}
+%cmake .. \
+ -DBUILD_SHARED_LIBS:BOOL=ON \
+ -DBUILD_EXAMPLES:BOOL=ON \
+ -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo"\
+ -DCMAKE_VERBOSE_MAKEFILE=ON\
+ -DOpenIGTLink_INSTALL_LIB_DIR=%{_lib} \
+ -DOpenIGTLink_INSTALL_PACKAGE_DIR=%{_datadir}/%{_short_name}/cmake \
+ -DBUILD_TESTING=ON \
+ -DBUILD_DOCUMENTATION=ON \
+ -DPDFLATEX_COMPILER=%{_bindir}/pdflatex
+
+popd
+
+make %{?_smp_mflags} -C %{_target_platform}
+
+%install
+%make_install -C %{_target_platform}
+
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+# Install documentation
+mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
+cp LICENSE.txt %{buildroot}%{_docdir}/%{name}-%{version}/
+cp README %{buildroot}%{_docdir}/%{name}-%{version}/
+
+pushd %{_target_platform}
+cp Documents/Papers/InsightJournal2008/OpenIGTLinkIJ2008.pdf %{buildroot}%{_docdir}/%{name}-%{version}/
+cp -r Documents/Doxygen/html %{buildroot}%{_docdir}/%{name}-%{version}/
+popd
+
+%check
+make test -C %{_target_platform}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+
+%files
+%dir %{_docdir}/%{name}-%{version}
+%{_docdir}/%{name}-%{version}/LICENSE.txt
+%{_docdir}/%{name}-%{version}/README
+%{_libdir}/*.so.*
+
+%files devel
+%dir %{_includedir}/%{_short_name}/
+%dir %{_datadir}/%{_short_name}/
+%{_includedir}/%{_short_name}/*
+%{_libdir}/*.so
+%{_datadir}/%{_short_name}/cmake/
+
+%files doc
+%{_docdir}/%{name}-%{version}/OpenIGTLinkIJ2008.pdf
+%{_docdir}/%{name}-%{version}/html/
+
+
+%changelog
+* Fri Dec 21 2012 Mario Ceresa <mrceresa at fedoraproject.org> 1.9.7-6
+- Fixing documentation
+- Fixing changelogs
+- Fixing miscellaneous rpmlit errors
+
+* Wed Dec 19 2012 Mario Ceresa <mrceresa at fedoraproject.org> 1.9.7-5
+- Fixed compilation of documentation under f18+
+- Fixed double inclusion of doc files
+- Shortened summary
+- Install libraries into _libdir and remove ldconfig file
+- Move cmake files to _datadir
+- Commented patches
+
+
+* Tue Dec 18 2012 Mario Ceresa <mrceresa at fedoraproject.org> 1.9.7-4
+- Added documentation
+
+* Mon Dec 17 2012 Mario Ceresa <mrceresa at fedoraproject.org> 1.9.7-3
+- Added license and README file
+
+* Mon Dec 17 2012 Mario Ceresa <mrceresa at fedoraproject.org> 1.9.7-2
+- Fixing fedora-review detected errors:
+-- Duplicate listing in libdir
+-- Macro consistency improved
+-- Using config noreplace
+-- Use global instead of define
+- Fixed dir ownership
+
+* Mon Dec 17 2012 Mario Ceresa <mrceresa at fedoraproject.org> 1.9.7-1
+- Initial import
+
+
diff --git a/sources b/sources
index e69de29..367c7cc 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+9a32e3338b675f0e909d6cd3f0d2e6f9 openigtlink-OpenIGTLink-00c007f.tar.gz
More information about the scm-commits
mailing list