source: git/survex.spec.in

walls-data-hanging-as-warning
Last change on this file was e840570, checked in by Olly Betts <olly@…>, 5 years ago

Drop support for wxWidgets < 3.0

3.0.0 was released over 5 years ago and should be easily available
everywhere by now.

I'm no longer easily able to test with wxWidgets 2.8, and this allows
a significant amount of cruft to be removed.

  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[2b09f38]1# @configure_input@
[96c5d34]2Summary: Cave Surveying Software
3Name: @PACKAGE@
4Vendor: The Survex Project
5Version: @VERSION@
6Release: @RELEASE@
[b462168]7License: GPL
[96c5d34]8Group: Applications/Misc
[d417499]9Source: https://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz
10URL: https://survex.com/
[96c5d34]11Packager: Olly Betts <olly@survex.com>
[58eeab4]12# Fedora have removed gcc from the default build environment so explicitly list it here
13BuildRequires: wxGTK3-devel, proj-devel, gcc-g++
[ad4e7b08]14Requires: wxGTK3, proj, proj-epsg
[b462168]15BuildRoot: %{_tmppath}/%{name}-buildroot
[96c5d34]16
17%description
18@DESC@
19
20%prep
21%setup
22
23%build
[b462168]24[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
[96c5d34]25./configure --prefix=/usr
26make
27
28%install
[b462168]29[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
30[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
31mkdir -p "%{buildroot}"
[129a061]32make install DESTDIR="%{buildroot}"
[839db8b]33make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}"
[64d37a3]34# Move docs back into build tree to keep rpmbuild happy by letting
35# it do the installing.
[d0a7bba]36mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs
[96c5d34]37
38%clean
[b462168]39[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
40[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
[96c5d34]41
42%files
[b462168]43%defattr(-, root, root)
[96c5d34]44%doc @EXTRA_TEXT@
[64d37a3]45%doc built-docs/*
[b462168]46%doc /usr/share/man/
47/usr/bin/*
48/usr/share/@PACKAGE@/
[129a061]49/usr/share/mime/
[fa62c87]50/usr/share/applications/survex-aven.desktop
[66bfec8]51/usr/share/icons/
[034d04dc]52/usr/share/vim/
Note: See TracBrowser for help on using the repository browser.