Include license file and a few doc files in base package

- Include directory /usr/share/gdcm in base package
- Remove obsolete cleaning of buildroot
- Add %%?_isa to base package deps
- Remove empty lines at beginning of %%descriptions
- Fix base package Group tag to "System Environment/Libraries"
epel9
Michael Schwendt 11 years ago committed by Sebastian Pölsterl
parent d61830533b
commit 314f33da6b

@ -6,9 +6,9 @@
Name: gdcm Name: gdcm
Version: 2.4.1 Version: 2.4.1
Release: 1%{?dist} Release: 2%{?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: System Environment/Libraries
License: BSD License: BSD
URL: http://gdcm.sourceforge.net/wiki/index.php/Main_Page 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 Source0: http://sourceforge.net/projects/gdcm/files/gdcm%202.x/GDCM%20%{version}/%{name}-%{version}.tar.bz2
@ -62,18 +62,16 @@ Group: Documentation
BuildArch: noarch BuildArch: noarch
%description doc %description doc
You should install the gdcm-doc package if you would like to You should install the gdcm-doc package if you would like to
access upstream documentation for gdcm access upstream documentation for gdcm.
%package devel %package devel
Summary: Libraries and headers for GDCM Summary: Libraries and headers for GDCM
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
You should install the gdcm-devel package if you would like to You should install the gdcm-devel package if you would like to
compile applications based on gdcm compile applications based on gdcm
@ -88,20 +86,18 @@ GDCM examples
%package python %package python
Summary: Python binding for GDCM Summary: Python binding for GDCM
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description python %description python
You should install the gdcm-python package if you would like to You should install the gdcm-python package if you would like to
used this library with python used this library with python
%package -n python3-gdcm %package -n python3-gdcm
Summary: Python binding for GDCM Summary: Python binding for GDCM
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description -n python3-gdcm %description -n python3-gdcm
You should install the python3-gdcm package if you would like to You should install the python3-gdcm package if you would like to
used this library with python used this library with python
@ -212,8 +208,6 @@ popd
make %{?_smp_mflags} -C %{_target_platform} make %{?_smp_mflags} -C %{_target_platform}
%install %install
rm -rf $RPM_BUILD_ROOT
# install python3 build # install python3 build
pushd %{py3dir} pushd %{py3dir}
make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform} make install DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
@ -225,7 +219,11 @@ 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}/%{name}/*.cmake $RPM_BUILD_ROOT%{_datadir}/%{name}/ mv $RPM_BUILD_ROOT%{_libdir}/%{name}/*.cmake $RPM_BUILD_ROOT%{_datadir}/%{name}/
rmdir $RPM_BUILD_ROOT%{_libdir}/%{name} rmdir $RPM_BUILD_ROOT%{_libdir}/%{name}
cp %{_builddir}/%{?buildsubdir}/{AUTHORS,Copyright.txt,README.Copyright.txt,README.txt} $RPM_BUILD_ROOT%{_docdir}/%{name}/
# adding to installed docs in order to avoid using %%doc magic
for f in AUTHORS Copyright.txt README.Copyright.txt README.txt ; do
cp -p $f ${RPM_BUILD_ROOT}%{_docdir}/%{name}/${f}
done
## 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
@ -245,16 +243,18 @@ make test -C %{_target_platform} || exit 0
%files %files
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/Copyright.txt
%{_mandir}/man1/*.1* %{_mandir}/man1/*.1*
%{_bindir}/* %{_bindir}/*
%{_libdir}/*.so.* %{_libdir}/*.so.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/XML/ %{_datadir}/%{name}/XML/
%files doc %files doc
%{_docdir}/%{name}/ %{_docdir}/%{name}/
%files devel %files devel
%dir %{_datadir}/%{name}
%{_includedir}/%{name}/ %{_includedir}/%{name}/
%{_libdir}/*.so %{_libdir}/*.so
%{_datadir}/%{name}/*.cmake %{_datadir}/%{name}/*.cmake
@ -269,6 +269,14 @@ make test -C %{_target_platform} || exit 0
%{python3_sitearch}/* %{python3_sitearch}/*
%changelog %changelog
* Sun Dec 15 2013 Michael Schwendt <mschwendt@fedoraproject.org> - 2.4.1-2
- Include license file and a few doc files in base package
- Include directory /usr/share/gdcm in base package
- Remove obsolete cleaning of buildroot
- Add %%?_isa to base package deps
- Remove empty lines at beginning of %%descriptions
- Fix base package Group tag to "System Environment/Libraries"
* Wed Dec 11 2013 Sebastian Pölsterl <sebp@k-d-w.org> - 2.4.1-1 * Wed Dec 11 2013 Sebastian Pölsterl <sebp@k-d-w.org> - 2.4.1-1
- Update to 2.4.1 - Update to 2.4.1

Loading…
Cancel
Save