# @configure_input@ Summary: Cave Surveying Software Name: @PACKAGE@ Vendor: The Survex Project Version: @VERSION@ Release: @RELEASE@ License: GPL Group: Applications/Misc Source: https://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz URL: https://survex.com/ Packager: Olly Betts # Fedora have removed gcc from the default build environment so explicitly list it here BuildRequires: wxGTK3-devel, proj-devel, gcc-g++ Requires: wxGTK3, proj, proj-epsg BuildRoot: %{_tmppath}/%{name}-buildroot %description @DESC@ %prep %setup %build [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 ./configure --prefix=/usr make %install [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} mkdir -p "%{buildroot}" make install DESTDIR="%{buildroot}" make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}" # Move docs back into build tree to keep rpmbuild happy by letting # it do the installing. mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs %clean [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %files %defattr(-, root, root) %doc @EXTRA_TEXT@ %doc built-docs/* %doc /usr/share/man/ /usr/bin/* /usr/share/@PACKAGE@/ /usr/share/mime/ /usr/share/applications/survex-aven.desktop /usr/share/icons/ /usr/share/vim/