aven: Handle "info:" in cavern log
[survex.git] / survex.spec.in
blobe59628264acf2063dd8fb4e70b3c833fe9efae13
1 # @configure_input@
2 Summary: Cave Surveying Software
3 Name: @PACKAGE@
4 Vendor: The Survex Project
5 Version: @VERSION@
6 Release: @RELEASE@
7 License: GPL
8 Group: Applications/Misc
9 Source: https://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz
10 URL: https://survex.com/
11 Packager: Olly Betts <olly@survex.com>
12 # Fedora have removed gcc from the default build environment so explicitly list it here
13 BuildRequires: wxGTK3-devel, proj-devel, gcc-g++
14 Requires: wxGTK3, proj, proj-epsg
15 BuildRoot: %{_tmppath}/%{name}-buildroot
17 %description
18 @DESC@
20 %prep
21 %setup
23 %build
24 [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
25 ./configure --prefix=/usr
26 make
28 %install
29 [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
30 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
31 mkdir -p "%{buildroot}"
32 make install DESTDIR="%{buildroot}"
33 make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}"
34 # Move docs back into build tree to keep rpmbuild happy by letting
35 # it do the installing.
36 mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs
38 %clean
39 [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
40 [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
42 %files
43 %defattr(-, root, root)
44 %doc @EXTRA_TEXT@
45 %doc built-docs/*
46 %doc /usr/share/man/
47 /usr/bin/*
48 /usr/share/@PACKAGE@/
49 /usr/share/mime/
50 /usr/share/applications/survex-aven.desktop
51 /usr/share/icons/
52 /usr/share/vim/