Blame openigtlink.spec

7e20d2f
%global commit ccb24383e490ea1ddc07dd2d854e0d08efe80abc
7e20d2f
%global comm %(c=%{commit}; echo ${c:0:7})
7e20d2f
%global checkout 20151015git%{comm}
7e20d2f
%global srcname OpenIGTLink
7e20d2f
%global _docdir_fmt %{name}
7e20d2f
7e20d2f
Name:		openigtlink
7e20d2f
Version:	0
9de5f79
Release:	0.2.%{checkout}%{?dist}
7e20d2f
Summary:	Implementation of the OpenIGTLink network communication protocol
7e20d2f
7e20d2f
License:	BSD
7e20d2f
URL:		http://openigtlink.org
7e20d2f
Source0:	https://github.com/openigtlink/OpenIGTLink/archive/%{commit}.tar.gz#/%{srcname}-%{commit}.tar.gz
7e20d2f
7e20d2f
BuildRequires:	gcc-c++
7e20d2f
BuildRequires:	cmake
7e20d2f
7e20d2f
7e20d2f
%description
7e20d2f
OpenIGTLink is a network communication protocol specifically designed and
7e20d2f
developed for research on image-guided and computer-assisted interventions. It
7e20d2f
provides a standardized mechanism for communications among computers and
7e20d2f
devices in operating rooms (OR) for a wide variety of image-guided therapy
7e20d2f
(IGT) applications. Examples of such applications include:
7e20d2f
7e20d2f
- Stereotactic surgical guidance using optical position sensor and medical
7e20d2f
  image visualization software
7e20d2f
- Intraoperative image guidance using real-time MRI and medical image
7e20d2f
  visualization software
7e20d2f
- Robot-assisted interventions using robotic devices and surgical planning
7e20d2f
  software
7e20d2f
7e20d2f
OpenIGTLink is a set of messaging formats and rules (protocol) used for data
7e20d2f
exchange on a local area network (LAN). The specification of OpenIGTLink and
7e20d2f
its reference implementation, the OpenIGTLink Library, are available free of
7e20d2f
charge for any purpose including commercial use.
7e20d2f
7e20d2f
7e20d2f
%package devel
7e20d2f
Summary:	OpenIGTLink development files
7e20d2f
Requires:	%{name}%{?_isa} = %{version}-%{release}
7e20d2f
Requires:	cmake%{?_isa}
7e20d2f
7e20d2f
%description devel
7e20d2f
Development files for the OpenIGTLink library.
7e20d2f
7e20d2f
%prep
7e20d2f
%autosetup -n %{srcname}-%{commit}
7e20d2f
find . -type f -executable -a \( -name '*.h' -o -name '*.cxx' \) -exec chmod a-x {} +
7e20d2f
mkdir build
7e20d2f
7e20d2f
7e20d2f
%build
7e20d2f
pushd build
7e20d2f
7e20d2f
%cmake \
7e20d2f
    -D%{srcname}_INSTALL_LIB_DIR=%{_libdir} \
7e20d2f
    -D%{srcname}_INSTALL_PACKAGE_DIR=%{_libdir}/cmake/%{srcname} \
7e20d2f
    ..
7e20d2f
%make_build
7e20d2f
7e20d2f
popd
7e20d2f
7e20d2f
7e20d2f
%install
7e20d2f
pushd build
7e20d2f
%make_install
7e20d2f
popd
7e20d2f
7e20d2f
7e20d2f
%check
7e20d2f
pushd build
7e20d2f
ctest -VV %{?_smp_mflags}
7e20d2f
popd
7e20d2f
7e20d2f
7e20d2f
%post -p /sbin/ldconfig
7e20d2f
7e20d2f
%postun -p /sbin/ldconfig
7e20d2f
7e20d2f
7e20d2f
%files
7e20d2f
%license LICENSE.txt
7e20d2f
%{_libdir}/lib%{srcname}.so.*
7e20d2f
7e20d2f
%files devel
7e20d2f
%doc README.md
7e20d2f
%{_libdir}/lib%{srcname}.so
7e20d2f
%{_libdir}/cmake/%{srcname}/
7e20d2f
%{_includedir}/igtl/
7e20d2f
7e20d2f
7e20d2f
%changelog
9de5f79
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.20151015gitccb2438
9de5f79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9de5f79
7e20d2f
* Sat Nov 28 2015 Dmitry Mikhirev <mikhirev@gmail.com> 0-0.1.20151015gitccb2438
7e20d2f
- Initial package