Additional fixes for #1001298

epel9
Mario Ceresa 11 years ago committed by Sebastian Pölsterl
parent 89330c9c08
commit 74a462fbe1

@ -6,7 +6,7 @@
Name: gdcm Name: gdcm
Version: 2.4.0 Version: 2.4.0
Release: 3%{?dist} Release: 4%{?dist}
Summary: Grassroots DiCoM is a C++ library to parse DICOM medical files Summary: Grassroots DiCoM is a C++ library to parse DICOM medical files
Group: Development/Libraries Group: Development/Libraries
License: BSD License: BSD
@ -223,13 +223,17 @@ popd
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
## Rearranging directory layout and removing version from dir ## Rearranging directory layout and removing version from dir
mv $RPM_BUILD_ROOT%{_libdir}/gdcm/*.cmake $RPM_BUILD_ROOT%{_datadir}/gdcm/ mv $RPM_BUILD_ROOT%{_libdir}/%{name}/*.cmake $RPM_BUILD_ROOT%{_datadir}/%{name}/
rmdir $RPM_BUILD_ROOT%{_libdir}/gdcm rmdir $RPM_BUILD_ROOT%{_libdir}/%{name}
cp %{_builddir}/%{?buildsubdir}/{AUTHORS,Copyright.txt,README.Copyright.txt,README.txt} $RPM_BUILD_ROOT%{_docdir}/%{name}/
## Cleaning Example dir from cmake cache files + remove 0-length files ## Cleaning Example dir from cmake cache files + remove 0-length files
find %{_builddir}/%{?buildsubdir}/Examples -depth -name CMakeFiles | xargs rm -rf find %{_builddir}/%{?buildsubdir}/Examples -depth -name CMakeFiles | xargs rm -rf
find %{_builddir}/%{?buildsubdir}/Examples -depth -size 0 | xargs rm -rf find %{_builddir}/%{?buildsubdir}/Examples -depth -size 0 | xargs rm -rf
## Moving Example dir into _datadir
cp -r %{_builddir}/%{?buildsubdir}/Examples $RPM_BUILD_ROOT%{_datadir}/%{name}/
%check %check
# Making the tests informative only for now. Several failing tests (27/228): # Making the tests informative only for now. Several failing tests (27/228):
# 11,40,48,49,107-109,111-114,130-135,146,149,,151-154,157,194,216,219 # 11,40,48,49,107-109,111-114,130-135,146,149,,151-154,157,194,216,219
@ -241,22 +245,22 @@ make test -C %{_target_platform} || exit 0
%files %files
%doc %{_mandir}/man1/*.1* %{_mandir}/man1/*.1*
%doc AUTHORS Copyright.txt README.Copyright.txt README.txt
%{_bindir}/* %{_bindir}/*
%{_libdir}/*.so.* %{_libdir}/*.so.*
%{_datadir}/gdcm/XML/ %{_datadir}/%{name}/XML/
%files doc %files doc
%{_docdir}/gdcm/html/ %{_docdir}/%{name}/
%files devel %files devel
%{_includedir}/gdcm/ %dir %{_datadir}/%{name}
%{_includedir}/%{name}/
%{_libdir}/*.so %{_libdir}/*.so
%{_datadir}/gdcm/*.cmake %{_datadir}/%{name}/*.cmake
%files examples %files examples
%doc Examples %{_datadir}/%{name}/Examples/
%files python %files python
%{python2_sitearch}/* %{python2_sitearch}/*
@ -265,6 +269,10 @@ make test -C %{_target_platform} || exit 0
%{python3_sitearch}/* %{python3_sitearch}/*
%changelog %changelog
* Wed Dec 11 2013 Mario Ceresa <mrceresa AT fedoraproject DOT org> - 2.4.0-4
- Fixes #1001298
- Minor fixes on the spec
* Tue Nov 19 2013 Sebastian Pölsterl <sebp@k-d-w.org> - 2.4.0-3 * Tue Nov 19 2013 Sebastian Pölsterl <sebp@k-d-w.org> - 2.4.0-3
- More duplicate documentation files fixes - More duplicate documentation files fixes
- Move examples to new subpackage - Move examples to new subpackage

Loading…
Cancel
Save