Mageia Bugzilla – Attachment 12775 Details for
Bug 28975
opencpn needs a new build, some of its plugin rpms need to be corrected or added
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
opencpn.spec
opencpn.spec (text/plain), 3.92 KB, created by
Barry Jackson
on 2021-06-16 02:02:50 CEST
(
hide
)
Description:
opencpn.spec
Filename:
MIME Type:
Creator:
Barry Jackson
Created:
2021-06-16 02:02:50 CEST
Size:
3.92 KB
patch
obsolete
>## NOTE Please read README_packaging.txt before updating this package. >%define _disable_ld_no_undefined 1 >%global __requires_exclude ^lib(S57ENC|GARMINHOST|TEXCMP|NMEA0183)\\.so.*$ >%define tarname OpenCPN > >Name: opencpn >Summary: A concise Chartplotter and Navigation software >Version: 5.2.4 >Release: %mkrel 2.3 >License: GPLv2+ >Group: Geography >URL: http://opencpn.org/ocpn/ >Source0: https://github.com/%{tarname}/%{tarname}/archive/v%{version}/%{tarname}-%{version}.tar.gz >Source1: README_packaging.txt >Source2: README.urpmi > >Patch1: opencpn-5.0.0-mga-missing_glx_include.patch >Patch2: opencpn-5.0.2-mga-cmaklists.txt_wkgtk_version.patch >Patch3: opencpn-5.2.4-mga-cmakelists.txt_wxgtk_test.patch > >BuildRequires: git >BuildRequires: bzip2-devel >BuildRequires: cmake >BuildRequires: gettext >BuildRequires: pkgconfig(gl) >BuildRequires: pkgconfig(glu) >BuildRequires: pkgconfig(jasper) >BuildRequires: pkgconfig(libarchive) >BuildRequires: pkgconfig(libcurl) >BuildRequires: pkgconfig(libexif) >BuildRequires: pkgconfig(libgps) >BuildRequires: pkgconfig(portaudio-2.0) >BuildRequires: pkgconfig(sndfile) >BuildRequires: pkgconfig(sqlite3) >BuildRequires: pkgconfig(tinyxml) >BuildRequires: pkgconfig(zlib) >BuildRequires: wxgtk3.1-devel > >Requires: gpsd-clients >Obsoletes: opencpn-chartdldr-plugin < 1.2-13 > >Provides: opencpn-chartdldr-plugin = %{version}-%{release} >Provides: opencpn-dashboard-plugin = %{version}-%{release} >Provides: opencpn-grib-plugin = %{version}-%{release} >Provides: opencpn-wmm-plugin = %{version}-%{release} > >Recommends: opencpn-ais-radar-plugin >Recommends: opencpn-celestial-navigation-plugin >Recommends: opencpn-climatology-plugin >Recommends: opencpn-iacfleet-plugin >Recommends: opencpn-logbookkonni-plugin >Recommends: opencpn-objsearch-plugin >Recommends: opencpn-oernc-plugin >Recommends: opencpn-oesenc-plugin >Recommends: opencpn-polar-plugin >Recommends: opencpn-radar-plugin >Recommends: opencpn-route-plugin >Recommends: opencpn-s63-plugin >Recommends: opencpn-sar-plugin >Recommends: opencpn-squiddio-plugin >Recommends: opencpn-statusbar-plugin >Recommends: opencpn-watchdog-plugin >Recommends: opencpn-weather-routing-plugin >Recommends: opencpn-weatherfax-plugin > >%description >A cross-platform ship-borne GUI application supporting >* GPS/GPDS Position Input >* BSB Raster Chart display >* S57 Vector ENC chart display >* CM93 Vector chart display >* AIS Input Decoding >* Waypoint Autopilot Navigation > >Some extra useful plugins can be found in the Mageia core repository >Pilot charts can be downloaded from: >http://opencpn.org/ocpn/pilotcharts > >Nautical charts sources can be found here: >https://opencpn.org/OpenCPN/info/chartsource.html > >NB The commercial charts need the three opencpn plugins >from Mageia nonfree repository > >%prep >%autosetup -p1 -n %{tarname}-%{version} > ># Be sure to use system tinyxml headers and not bundled ones >rm -f src/tinyxml*.cpp include/tinyxml.h > >cp %{SOURCE2} README.urpmi > >%build >%cmake \ > -DBUNDLE_DOCS=ON \ > -DBUNDLE_TCDATA=ON \ > -DBUNDLE_GSHHS=CRUDE \ > -DBUILD_SHARED_LIBS=OFF \ > -DNDEBUG=ON \ > -DOCPN_FORCE_GTK3=ON > >%cmake_build > >%install > >%cmake_install > >mkdir -p %{buildroot}%{_udevrulesdir} >cp %{_builddir}/%{tarname}-%{version}/buildlinux/98-sglock-ocpn.rules %{buildroot}%{_udevrulesdir}/ > >%find_lang %{name} >%find_lang %{name}-chartdldr_pi >%find_lang %{name}-grib_pi >%find_lang %{name}-dashboard_pi >%find_lang %{name}-wmm_pi > >desktop-file-install \ > --dir=%{buildroot}%{_datadir}/applications \ > --remove-category='Science' \ > %{buildroot}%{_datadir}/applications/%{name}.desktop > ># Remove Debian-only docs >rm -rf %{buildroot}%{_datadir}/doc/%{name} > >%files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang -f %{name}-wmm_pi.lang -f %{name}-chartdldr_pi.lang >%doc README.urpmi >%{_bindir}/* >%{_libdir}/%{name}/ >%{_udevrulesdir}/* >%{_datadir}/%{name}/ >%{_datadir}/applications/%{name}.desktop >%{_datadir}/metainfo/%{name}.appdata.xml >%{_iconsdir}/hicolor/*/apps/%{name}.* >%{_mandir}/man1/%{name}.1*
## NOTE Please read README_packaging.txt before updating this package. %define _disable_ld_no_undefined 1 %global __requires_exclude ^lib(S57ENC|GARMINHOST|TEXCMP|NMEA0183)\\.so.*$ %define tarname OpenCPN Name: opencpn Summary: A concise Chartplotter and Navigation software Version: 5.2.4 Release: %mkrel 2.3 License: GPLv2+ Group: Geography URL: http://opencpn.org/ocpn/ Source0: https://github.com/%{tarname}/%{tarname}/archive/v%{version}/%{tarname}-%{version}.tar.gz Source1: README_packaging.txt Source2: README.urpmi Patch1: opencpn-5.0.0-mga-missing_glx_include.patch Patch2: opencpn-5.0.2-mga-cmaklists.txt_wkgtk_version.patch Patch3: opencpn-5.2.4-mga-cmakelists.txt_wxgtk_test.patch BuildRequires: git BuildRequires: bzip2-devel BuildRequires: cmake BuildRequires: gettext BuildRequires: pkgconfig(gl) BuildRequires: pkgconfig(glu) BuildRequires: pkgconfig(jasper) BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libexif) BuildRequires: pkgconfig(libgps) BuildRequires: pkgconfig(portaudio-2.0) BuildRequires: pkgconfig(sndfile) BuildRequires: pkgconfig(sqlite3) BuildRequires: pkgconfig(tinyxml) BuildRequires: pkgconfig(zlib) BuildRequires: wxgtk3.1-devel Requires: gpsd-clients Obsoletes: opencpn-chartdldr-plugin < 1.2-13 Provides: opencpn-chartdldr-plugin = %{version}-%{release} Provides: opencpn-dashboard-plugin = %{version}-%{release} Provides: opencpn-grib-plugin = %{version}-%{release} Provides: opencpn-wmm-plugin = %{version}-%{release} Recommends: opencpn-ais-radar-plugin Recommends: opencpn-celestial-navigation-plugin Recommends: opencpn-climatology-plugin Recommends: opencpn-iacfleet-plugin Recommends: opencpn-logbookkonni-plugin Recommends: opencpn-objsearch-plugin Recommends: opencpn-oernc-plugin Recommends: opencpn-oesenc-plugin Recommends: opencpn-polar-plugin Recommends: opencpn-radar-plugin Recommends: opencpn-route-plugin Recommends: opencpn-s63-plugin Recommends: opencpn-sar-plugin Recommends: opencpn-squiddio-plugin Recommends: opencpn-statusbar-plugin Recommends: opencpn-watchdog-plugin Recommends: opencpn-weather-routing-plugin Recommends: opencpn-weatherfax-plugin %description A cross-platform ship-borne GUI application supporting * GPS/GPDS Position Input * BSB Raster Chart display * S57 Vector ENC chart display * CM93 Vector chart display * AIS Input Decoding * Waypoint Autopilot Navigation Some extra useful plugins can be found in the Mageia core repository Pilot charts can be downloaded from: http://opencpn.org/ocpn/pilotcharts Nautical charts sources can be found here: https://opencpn.org/OpenCPN/info/chartsource.html NB The commercial charts need the three opencpn plugins from Mageia nonfree repository %prep %autosetup -p1 -n %{tarname}-%{version} # Be sure to use system tinyxml headers and not bundled ones rm -f src/tinyxml*.cpp include/tinyxml.h cp %{SOURCE2} README.urpmi %build %cmake \ -DBUNDLE_DOCS=ON \ -DBUNDLE_TCDATA=ON \ -DBUNDLE_GSHHS=CRUDE \ -DBUILD_SHARED_LIBS=OFF \ -DNDEBUG=ON \ -DOCPN_FORCE_GTK3=ON %cmake_build %install %cmake_install mkdir -p %{buildroot}%{_udevrulesdir} cp %{_builddir}/%{tarname}-%{version}/buildlinux/98-sglock-ocpn.rules %{buildroot}%{_udevrulesdir}/ %find_lang %{name} %find_lang %{name}-chartdldr_pi %find_lang %{name}-grib_pi %find_lang %{name}-dashboard_pi %find_lang %{name}-wmm_pi desktop-file-install \ --dir=%{buildroot}%{_datadir}/applications \ --remove-category='Science' \ %{buildroot}%{_datadir}/applications/%{name}.desktop # Remove Debian-only docs rm -rf %{buildroot}%{_datadir}/doc/%{name} %files -f %{name}.lang -f %{name}-dashboard_pi.lang -f %{name}-grib_pi.lang -f %{name}-wmm_pi.lang -f %{name}-chartdldr_pi.lang %doc README.urpmi %{_bindir}/* %{_libdir}/%{name}/ %{_udevrulesdir}/* %{_datadir}/%{name}/ %{_datadir}/applications/%{name}.desktop %{_datadir}/metainfo/%{name}.appdata.xml %{_iconsdir}/hicolor/*/apps/%{name}.* %{_mandir}/man1/%{name}.1*
View Attachment As Raw
Actions:
View
Attachments on
bug 28975
:
12725
|
12726
|
12727
|
12728
|
12729
|
12730
|
12731
|
12732
|
12733
|
12734
|
12735
|
12736
|
12737
|
12738
|
12739
|
12740
|
12741
|
12742
|
12743
|
12744
|
12745
|
12746
|
12747
|
12748
| 12775 |
12776
|
12778
|
12779
|
12780
|
12781
|
12782
|
12783
|
12784
|
12785
|
12786
|
12787
|
12788
|
12789
|
12790
|
12791
|
12792
|
12793
|
12794
|
12795
|
12796
|
12797
|
12798
|
12799
|
12800
|
12801
|
12804
|
12805
|
12806
|
12807
|
12808
|
12809
|
12810
|
12811
|
12812
|
12813
|
12814
|
12815
|
12816
|
12817
|
12818
|
12819