%define oname zyGrib Name: zygrib Version: 5.0.6 Release: %mkrel 2 Summary: Weather data visualization, GRIB file viewer License: GPLv3 Group: Sciences/Geosciences Url: http://www.zygrib.org # Sources downloaded at : # http://www.zygrib.org/getfile.php?file=zyGrib-3.8.3.tgz # http://www.zygrib.org/getfile.php?file=zyGrib_maps2.tgz Source0: %{oname}-%{version}.tgz Source1: %{oname}_maps2.4.tgz # From the Debian package Source2: %{name}.png Patch0: %{name}-5.0.6-fix-qwt-flag.patch BuildRequires: qt4-devel BuildRequires: proj-devel BuildRequires: libqwt-devel BuildRequires: bzip2-devel Suggests: %{name}-maps-high %description ZyGrib is a GRIB file viewer. It enables : o Visualisation of meteo data from files in GRIB Format 1 o Automatic GRIB data download o Automatic Download from IAC (fleetcode) Data o Roh or compressed GRIB Data (gzip *.gz; bzip2 *.bz2) can be used %package maps-high Summary: High resolution maps for %{oname} Group: Sciences/Geosciences BuildArch: noarch Requires: %{name} %description maps-high This package contains maps for %{oname} in higher resolution than the ones provided in the main package. %prep %setup -q -n %{oname}-%{version} %setup -q -n %{oname}-%{version} -T -D -a 1 %patch0 -p0 # fix paths so that the executable can be relocated in %{_bindir} sed -i -e 's:"data\/:"%{_datadir}\/%{name}\/:g' src/util/Util.h src/Makefile src/zyGrib.pro %build make %install rm -rf %{buildroot} install -d -m755 %{buildroot}%{_bindir} install -D -m755 src/%{oname} %{buildroot}%{_bindir} install -d -m755 %{buildroot}%{_datadir}/%{name}/tr cp -pr data/maps %{buildroot}%{_datadir}/%{name}/maps cp -pr data/img %{buildroot}%{_datadir}/%{name}/img cp -pr data/colors %{buildroot}%{_datadir}/%{name}/colors cp -pr data/fonts %{buildroot}%{_datadir}/%{name}/fonts cp -pr data/gis %{buildroot}%{_datadir}/%{name}/gis cp -pr data/stuff %{buildroot}%{_datadir}/%{name}/stuff install -D -m644 data/tr/*.qm %{buildroot}%{_datadir}/%{name}/tr # desktop file install -d -m755 %{buildroot}%{_datadir}/applications cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop [Desktop Entry] Name=%{oname} GenericName=GRIB file viewer Comment=Multi-protocol Messaging Client Exec=%{_bindir}/%{oname} Icon=%{name} Terminal=false Type=Application StartupNotify=true Categories=Science;Geoscience; EOF # icon install -d -m755 %{buildroot}%{_datadir}/pixmaps install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps %files %defattr(-,root,root,-) %{_bindir}/%{oname} %{_datadir}/%{name} %exclude %{_datadir}/%{name}/maps/gshhs/gshhs_0.rim %exclude %{_datadir}/%{name}/maps/gshhs/gshhs_1.rim %exclude %{_datadir}/%{name}/maps/gshhs/rangs_0.* %exclude %{_datadir}/%{name}/maps/gshhs/rangs_1.* %exclude %{_datadir}/%{name}/maps/gshhs/wdb_*_f.b %exclude %{_datadir}/%{name}/maps/gshhs/wdb_*_h.b %{_datadir}/pixmaps/%{name}.png %{_datadir}/applications/%{name}.desktop %files maps-high %defattr(-,root,root,-) %{_datadir}/%{name}/maps/gshhs/gshhs_0.rim %{_datadir}/%{name}/maps/gshhs/gshhs_1.rim %{_datadir}/%{name}/maps/gshhs/rangs_0.* %{_datadir}/%{name}/maps/gshhs/rangs_1.* %{_datadir}/%{name}/maps/gshhs/wdb_*_f.b %{_datadir}/%{name}/maps/gshhs/wdb_*_h.b %changelog * Mon Jan 14 2013 umeabot <umeabot> 5.0.6-2.mga3 + Revision: 387785 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Sun Nov 20 2011 grenoya <grenoya> 5.0.6-1.mga2 + Revision: 169780 -add BR on bzip2-devel - new version 5.0.6 - clean spec - fix requirement for qwt - add patch #0 to fix qwt flag - fix issue of missong maps, cities name... * Fri Sep 02 2011 tv <tv> 3.9.2-2.mga2 + Revision: 137794 - make the huge maps subpackage be noarch * Thu Apr 21 2011 grenoya <grenoya> 3.9.2-1.mga1 + Revision: 89433 - imported package zygrib