146 lines
4.9 KiB
RPMSpec
146 lines
4.9 KiB
RPMSpec
Name: PyMca
|
|
Version: 4.7.3
|
|
Release: 1%{?dist}
|
|
Summary: PyMca X-ray Fluorescence Toolkit
|
|
License: GPLv2+
|
|
URL: http://pymca.sourceforge.net/
|
|
Source0: http://downloads.sourceforge.net/sourceforge/pymca/pymca%{version}-src.tgz
|
|
Source1: PyMca.desktop
|
|
BuildRequires: desktop-file-utils
|
|
BuildRequires: ImageMagick
|
|
BuildRequires: python2-devel
|
|
BuildRequires: python-setuptools
|
|
BuildRequires: mesa-libGL-devel
|
|
BuildRequires: mesa-libGLU-devel
|
|
BuildRequires: numpy
|
|
BuildRequires: PyQt4
|
|
BuildRequires: PyQwt
|
|
BuildRequires: qhull-devel
|
|
Requires: hicolor-icon-theme
|
|
Requires: numpy
|
|
Requires: PyQt4
|
|
Requires: PyQwt
|
|
|
|
%description
|
|
PyMCA provides a graphical interface for multi-channel analyser spectra
|
|
visualization and analysis. PyMca can display spectra from a file or directly
|
|
from SPEC during acquisitions.
|
|
|
|
%prep
|
|
%setup -q
|
|
rm -frv third-party/
|
|
|
|
# Fix wrong shebang of pymcapostbatch.
|
|
sed -i "s|!python|!%{__python2}|g" PyMca/scripts/pymcapostbatch
|
|
|
|
%build
|
|
%{__python2} setup.py build
|
|
|
|
%install
|
|
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}
|
|
|
|
# Install desktop file.
|
|
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{S:1}
|
|
|
|
# Convert to various sizes, via the 256x256 source.
|
|
for size in 192x192 128x128 96x96 72x72 64x64 48x48 40x40 36x36 32x32 26x26 24x24 22x22 16x16 ; do
|
|
install -pdm755 \
|
|
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps
|
|
convert -resize ${size} icons/PyMca_256x256.png \
|
|
%{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
|
|
done
|
|
|
|
# Get rid of spurious executable rights.
|
|
find %{buildroot}%{python2_sitearch}/PyMca/ -type f -exec chmod 644 {} \;
|
|
find %{buildroot}%{python2_sitearch}/PyMca/ -name *.so -exec chmod 755 {} \;
|
|
|
|
# Get rid of /usr/bin/env in libraries.
|
|
for lib in %{buildroot}%{python2_sitearch}/PyMca/*.py; do
|
|
sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
|
|
touch -r $lib $lib.new &&
|
|
mv $lib.new $lib
|
|
done
|
|
|
|
%post
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%postun
|
|
if [ $1 -eq 0 ] ; then
|
|
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
fi
|
|
|
|
%posttrans
|
|
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
%files
|
|
%doc changelog.txt LICENSE.GPL README
|
|
%{_bindir}/edfviewer
|
|
%{_bindir}/elementsinfo
|
|
%{_bindir}/mca2edf
|
|
%{_bindir}/peakidentifier
|
|
%{_bindir}/pymca*
|
|
%{_bindir}/rgbcorrelator
|
|
%{_datadir}/applications/PyMca.desktop
|
|
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
|
|
%{_mandir}/man1/*.1*
|
|
%{python2_sitearch}/PyMca/
|
|
%{python2_sitearch}/PyMca-%{version}-py%{python2_version}.egg-info
|
|
|
|
%changelog
|
|
* Fri Jul 04 2014 Christopher Meng <rpm@cicku.me> - 4.7.3-1
|
|
- Update to 4.7.3
|
|
|
|
* Wed Jun 18 2014 Yaakov Selkowitz <yselkowi@redhat.com> - 4.5.0-6
|
|
- Fix FTBFS with -Werror=format-security (#1105919)
|
|
- Cleanup spec
|
|
|
|
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-5
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* Fri Aug 02 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-3
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Sat Mar 24 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.5.0-1
|
|
- Update to 4.5.0.
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-5.p1
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Thu Jul 14 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.4.1-4.p1
|
|
- Fix binary permissions (BZ #721149).
|
|
|
|
* Fri Feb 25 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.4.1-3.p1
|
|
- Update to 4.4.1p1.
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.1-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Fri Dec 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.4.1-1
|
|
- Update to 4.4.1.
|
|
|
|
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 4.4.0-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
* Sat Jun 19 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.4.0-1
|
|
- Update to 4.4.0.
|
|
|
|
* Fri Oct 30 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.3.0-4
|
|
- Keep time stamps also on binfiles.
|
|
|
|
* Fri Oct 30 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.3.0-3
|
|
- Added BR: python-devel.
|
|
- Added desktop file.
|
|
|
|
* Fri Oct 30 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.3.0-2
|
|
- Keep time stamps during sed of libraries.
|
|
- Changed BR: python-setuptools-devel to python-setuptools-devel.
|
|
|
|
* Thu Oct 08 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 4.3.0-1
|
|
- First release.
|