14bef66
Name:           vfrnav
3b666c8
Version:        20130510
595a322
Release:        1%{?dist}
97414c4
Summary:        VFR/IFR Navigation
14bef66
14bef66
Group:          Applications/Productivity
14bef66
License:        GPLv2+
14bef66
URL:            http://www.baycom.org/~tom/vfrnav
14bef66
Source0:        http://download.gna.org/vfrnav/%{name}-%{version}.tar.gz
14bef66
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
14bef66
b4ed9c7
BuildRequires:  gtkmm30-devel
14bef66
BuildRequires:  libxml++-devel >= 2.14.0
14bef66
BuildRequires:  sqlite-devel >= 3.0
14bef66
BuildRequires:  gpsd-devel
14bef66
BuildRequires:  libsqlite3x-devel
14bef66
BuildRequires:  gdal-devel
14bef66
BuildRequires:  gypsy-devel
b4ed9c7
BuildRequires:  bluez-libs-devel
b4ed9c7
BuildRequires:  eigen3-devel
14bef66
BuildRequires:  boost-devel
14bef66
BuildRequires:  cairomm-devel
14bef66
BuildRequires:  cairo-devel
14bef66
BuildRequires:  zfstream-devel
14bef66
BuildRequires:  gettext
091e2ef
%ifnarch s390 s390x
14bef66
BuildRequires:  pilot-link-devel
979355d
BuildRequires:  gnome-bluetooth-libs-devel
4c2ff45
%endif
14bef66
BuildRequires:  desktop-file-utils
14bef66
BuildRequires:  ImageMagick
b4ed9c7
BuildRequires:  geoclue-devel
b4ed9c7
BuildRequires:  gsl-devel
b4ed9c7
BuildRequires:  libftdi-devel
b4ed9c7
BuildRequires:  libftdi-c++-devel
979355d
BuildRequires:  libudev-devel
979355d
BuildRequires:  libXScrnSaver-devel
979355d
BuildRequires:  evince-devel
979355d
BuildRequires:  libusb1-devel
65b4e90
BuildRequires:  libcurl-devel
65b4e90
BuildRequires:  webkitgtk3-devel
9cd61d8
BuildRequires:  openjpeg-devel
9cd61d8
BuildRequires:  libsoup-devel
02d651d
BuildRequires:  transfig
49aa5af
BuildRequires:  texlive
49aa5af
BuildRequires:  texlive-texconfig
02d651d
BuildRequires:  texlive-latex
e9cab1d
BuildRequires:  texlive-latex-bin-bin
e56b65f
BuildRequires:  texlive-epstopdf-bin
63de55d
BuildRequires:  texlive-umlaute
cdc7280
BuildRequires:  texlive-multirow
cdc7280
BuildRequires:  texlive-oberdiek
cdc7280
BuildRequires:  texlive-tools
01c97b6
BuildRequires:  poppler-utils
2f6f841
BuildRequires:  readline-devel
5bef83d
BuildRequires:  geos-devel
5bef83d
BuildRequires:  polyclipping-devel
1377bf1
BuildRequires:  octave
87bb3ca
BuildRequires:  octave-devel
704bb97
BuildRequires:  inkscape
b4ed9c7
Requires:       gypsy
6d1f84d
Requires:       libreoffice-core
6d1f84d
Requires:       libreoffice-calc
14bef66
14bef66
%description
97414c4
This is a navigation application for VFR and IFR flying.
14bef66
14bef66
%package utils
14bef66
Summary:        VFR Navigation Utilities
14bef66
Group:          Applications/Productivity
14bef66
14bef66
Requires:       %{name} = %{version}
14bef66
14bef66
%description utils
14bef66
This package contains utilities for database creation and manipulation
14bef66
for the VFR navigation application.
14bef66
14bef66
%prep
14bef66
%setup -q
14bef66
14bef66
%build
14bef66
%configure
14bef66
make %{?_smp_mflags}
14bef66
14bef66
%install
14bef66
rm -rf $RPM_BUILD_ROOT
14bef66
make install DESTDIR=$RPM_BUILD_ROOT
14bef66
14bef66
for i in $RPM_BUILD_ROOT/%{_datadir}/applications/*.desktop; do
14bef66
  grep -v '^\(\(X-\)\|\(Version\)\|\(Encoding\)\)' $i > $i.tmp
14bef66
  sed -e s,Exec=/usr/bin/,Exec=, < $i.tmp > $i
14bef66
  rm -f $i.tmp
14bef66
done
14bef66
14bef66
for i in $RPM_BUILD_ROOT/%{_datadir}/applications/*.desktop; do
14bef66
  desktop-file-validate $i
14bef66
done
14bef66
14bef66
# convert icons to sane dimensions
14bef66
install -d $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps
14bef66
install -d $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps
86d5023
convert -size 32x32 $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/26x26/apps/vfrnav.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/32x32/apps/vfrnav.png
86d5023
convert -size 48x48 $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/40x40/apps/vfrnav.png $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/48x48/apps/vfrnav.png
14bef66
rm -rf $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/26x26/
14bef66
rm -rf $RPM_BUILD_ROOT/%{_datadir}/icons/hicolor/40x40/
14bef66
14bef66
%post
14bef66
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
14bef66
14bef66
%postun
14bef66
if [ $1 -eq 0 ] ; then
14bef66
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
14bef66
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
14bef66
fi
14bef66
14bef66
%posttrans
14bef66
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
14bef66
14bef66
%clean
14bef66
rm -rf $RPM_BUILD_ROOT
14bef66
14bef66
%files
14bef66
%defattr(-,root,root,-)
bc8b93c
%doc AUTHORS ChangeLog COPYING NEWS README TODO doc/flightdeck.pdf
14bef66
%{_datadir}/applications/vfrnav.desktop
7dadf4b
%{_datadir}/applications/flightdeck.desktop
14bef66
%{_datadir}/applications/vfrairporteditor.desktop
14bef66
%{_datadir}/applications/vfrairspaceeditor.desktop
14bef66
%{_datadir}/applications/vfrnavaideditor.desktop
14bef66
%{_datadir}/applications/vfrtrackeditor.desktop
14bef66
%{_datadir}/applications/vfrwaypointeditor.desktop
14bef66
%{_datadir}/applications/acftperf.desktop
14bef66
%{_datadir}/icons/hicolor/32x32/apps/vfrnav.png
14bef66
%{_datadir}/icons/hicolor/48x48/apps/vfrnav.png
14bef66
%dir %{_datadir}/%{name}
14bef66
%{_datadir}/%{name}/vfrnav.png
14bef66
%{_datadir}/%{name}/bluetooth.png
14bef66
%{_datadir}/%{name}/BlankMap-World_gray.svg
b4ed9c7
%{_datadir}/%{name}/dbeditor.ui
b4ed9c7
%{_datadir}/%{name}/navigate.ui
b4ed9c7
%{_datadir}/%{name}/routeedit.ui
b4ed9c7
%{_datadir}/%{name}/prefs.ui
b4ed9c7
%{_datadir}/%{name}/acftperformance.ui
97414c4
%{_datadir}/%{name}/cfmuvalidate.ui
6d1f84d
%{_libdir}/libreoffice/share/registry/vfrnav.xcd
14bef66
%{_bindir}/vfrnav
14bef66
%{_bindir}/vfrnavaideditor
14bef66
%{_bindir}/vfrwaypointeditor
14bef66
%{_bindir}/vfrairwayeditor
14bef66
%{_bindir}/vfrairporteditor
14bef66
%{_bindir}/vfrairspaceeditor
14bef66
%{_bindir}/vfrtrackeditor
14bef66
%{_bindir}/vfrnavdb2xml
14bef66
%{_bindir}/vfrnavfplan
14bef66
%{_bindir}/vfrnavxml2db
14bef66
%{_bindir}/acftperf
b4ed9c7
%{_bindir}/flightdeck
97414c4
%{_bindir}/cfmuvalidate
97414c4
%{_bindir}/cfmuautoroute
5bef83d
%{_bindir}/checkfplan
97414c4
%dir %{_libexecdir}/%{name}
97414c4
%{_libexecdir}/%{name}/cfmuvalidateserver
b4ed9c7
%{_datadir}/%{name}/flightdeck.ui
3b666c8
%{_datadir}/%{name}/flightdeck/hbdhg.cfg
b4ed9c7
%{_datadir}/%{name}/flightdeck/hbpbx.cfg
b0d82ee
%{_datadir}/%{name}/flightdeck/hbpho.cfg
b0d82ee
%{_datadir}/%{name}/flightdeck/hbtda.cfg
b0d82ee
%{_datadir}/%{name}/flightdeck/hbtdb.cfg
69366f0
%{_datadir}/%{name}/flightdeck/hbtdc.cfg
b4ed9c7
%{_datadir}/%{name}/flightdeck/sim.cfg
3b666c8
%{_datadir}/%{name}/aircraft/hbdhg.xml
b0d82ee
%{_datadir}/%{name}/aircraft/hbpbx.xml
b0d82ee
%{_datadir}/%{name}/aircraft/hbpho.xml
b0d82ee
%{_datadir}/%{name}/aircraft/hbtda.xml
b0d82ee
%{_datadir}/%{name}/aircraft/hbtdb.xml
69366f0
%{_datadir}/%{name}/aircraft/hbtdc.xml
b0d82ee
%{_datadir}/%{name}/navlogtemplates/navlog.ods
14bef66
14bef66
%files utils
14bef66
%defattr(-,root,root,-)
14bef66
%{_bindir}/vfrdbdafif
14bef66
%{_bindir}/vfrdbmapelementsdb
14bef66
%{_bindir}/vfrdboptimizelabelplacement
14bef66
%{_bindir}/vfrdbrebuildspatialindex
14bef66
%{_bindir}/vfrdbsrtm30db
14bef66
%{_bindir}/vfrdbsrtmwatermask
14bef66
%{_bindir}/vfrdbsettopo30
14bef66
%{_bindir}/vfrdbtopo30zerotiles
14bef66
%{_bindir}/vfrdbupdategndelev
14bef66
%{_bindir}/vfrdbcamelcase
14bef66
%{_bindir}/vfrnavwmmconv
14bef66
%{_bindir}/vfrnavwmmtest
14bef66
%{_bindir}/vfrdbxplane
14bef66
%{_bindir}/vfrdbcsv
14bef66
%{_bindir}/vfrdbxplaneexport
b4ed9c7
%{_bindir}/flightdeckftdieeprog
b4ed9c7
%{_bindir}/vfrdbairwaydump
b4ed9c7
%{_bindir}/vfrdbeadimport
b0d82ee
%{_bindir}/vfrdbaixmimport
b4ed9c7
%{_bindir}/vfrdbopenair
87a3770
%{_bindir}/vfrdbfasimport
14bef66
14bef66
%changelog
3b666c8
* Thu May 16 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130510-1
3b666c8
- update to 20130510
3b666c8
9cd61d8
* Mon Apr 29 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130429-1
9cd61d8
- update to 20130429
9cd61d8
595a322
* Sun Mar 10 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130303-1
595a322
- update and rebuild for geos
595a322
764a89c
* Mon Mar  4 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130123-2
764a89c
- rebuild for polyclipping
764a89c
a40bd81
* Sat Jan 26 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130123-1
a40bd81
- rebuild for geos
a40bd81
615f943
* Tue Jan 15 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130113-1
615f943
- update to 20130113
615f943
bc8b93c
* Thu Jan 10 2013 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20130110-1
bc8b93c
- update to 20130110
bc8b93c
- rebuild for polyclipping
bc8b93c
4c2ff45
* Sat Dec 29 2012 Dan Horák <dan[at]danny.cz> - 20121212-3
4c2ff45
- update BR for s390(x)
4c2ff45
3343e36
* Thu Dec 27 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20121212-2
3343e36
- rebuild for polyclipping 4.10.0
3343e36
8e252dc
* Sun Dec 16 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20121212-1
8e252dc
- update to 20121212
8e252dc
5bef83d
* Sat Dec  1 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20121111-1
5bef83d
- update to 20121111
5bef83d
ac9a894
* Fri Aug 31 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20120831-1
ac9a894
- update to 20120831
ac9a894
2f6f841
* Thu Aug 23 2012 Dan Horák <dan[at]danny.cz> - 20120815-2
2f6f841
- add explicit BR: readline-devel so we don't depend on pilot-link-devel to bring it in
2f6f841
40a84dd
* Wed Aug 15 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20120815-1
40a84dd
- update to 20120815; rebuild for dependencies
40a84dd
57bcaca
* Fri Aug 10 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20120810-1
57bcaca
- update to 20120810
57bcaca
97414c4
* Wed Aug  1 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 20120801-1
97414c4
- update to 20120801, now with CFMU/IFPS routing and validation tools
97414c4
bd09ad3
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9-3
bd09ad3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
bd09ad3
b48bd2b
* Fri Jul  6 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.9-2
b48bd2b
- gtkmm3 size allocation fixes
b48bd2b
900cd70
* Thu Jul  5 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.9-1
900cd70
- update to 0.9
900cd70
b4ed9c7
* Fri Jun 22 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.8-1
b4ed9c7
- update to 0.8 (flightdeck application, gtkmm30)
b4ed9c7
5dd8176
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7-2
5dd8176
- Rebuilt for c++ ABI breakage
5dd8176
b2e2a74
* Sat Jan 14 2012 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.7-1
b2e2a74
- update to 0.7
b2e2a74
f990bc4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6-4
f990bc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f990bc4
091e2ef
* Wed Nov 30 2011 Dan Horák <dan[at]danny.cz> - 0.6-3
091e2ef
- no pilot-link on s390(x)
091e2ef
9464700
* Wed Aug 24 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.6-2
9464700
- rebuild for new gpsd
9464700
4638f53
* Sun Feb 13 2011 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.6-1
4638f53
- update to 0.6
b9d23b9
d8873b0
* Sat Nov 20 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.5-1
d8873b0
- update to 0.5
d8873b0
f7845ae
* Fri Jul  9 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.4-2
f7845ae
- rebuilt
f7845ae
6d1f84d
* Wed Jan 13 2010 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.4-1
476985e
- update to 0.4
476985e
83b769d
* Sun Sep 20 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-10
83b769d
- fix for BZ#523309
83b769d
ad41e92
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-9
ad41e92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ad41e92
14bef66
* Fri May 29 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-8
14bef66
- convert icons to a standard size
14bef66
- vfrnav-utils now requires vfrnav
14bef66
14bef66
* Thu May 28 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-7
14bef66
- fix BRs
14bef66
14bef66
* Sun May 10 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-6
14bef66
- also remove Encoding tags from desktop files
14bef66
14bef66
* Sun May 10 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-5
14bef66
- remove X- tags from desktop file
14bef66
- remove absolute paths from desktop file
14bef66
14bef66
* Thu Apr 30 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-4
14bef66
- change second group too
14bef66
- handle icon cache
14bef66
- validate desktop files
14bef66
14bef66
* Thu Apr 30 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-3
14bef66
- change group
14bef66
- drop unneeded R/BR
14bef66
- implement Igor Juriskovic's suggestions
14bef66
14bef66
* Thu Apr 30 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-2
14bef66
- cleanups for review submission
14bef66
14bef66
* Wed Mar 25 2009 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.3-1
14bef66
- move to gypsy, add airways
14bef66
14bef66
* Sat Feb  2 2008 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.1-2
14bef66
- move utilities into their own subpackage
14bef66
14bef66
* Sat Aug 25 2007 Thomas Sailer <t.sailer@alumni.ethz.ch> - 0.1-1
14bef66
- initial spec file
14bef66