[2b09f38] | 1 | # @configure_input@ |
---|
[96c5d34] | 2 | Summary: Cave Surveying Software |
---|
| 3 | Name: @PACKAGE@ |
---|
| 4 | Vendor: The Survex Project |
---|
| 5 | Version: @VERSION@ |
---|
| 6 | Release: @RELEASE@ |
---|
[b98055b] | 7 | License: GPL |
---|
[96c5d34] | 8 | Group: Applications/Misc |
---|
| 9 | Source: http://www.survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz |
---|
| 10 | URL: http://www.survex.com/ |
---|
| 11 | Packager: Olly Betts <olly@survex.com> |
---|
[28b8159] | 12 | #Can't build with rpm on debian with this next line uncommented: |
---|
| 13 | #BuildRequires: wxGTK-devel >= 2.4.0 |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-buildroot |
---|
[96c5d34] | 15 | |
---|
| 16 | %description |
---|
| 17 | @DESC@ |
---|
| 18 | |
---|
| 19 | %package aven |
---|
| 20 | Summary: Aven viewer for Survex |
---|
| 21 | Group: Applications/Misc |
---|
[28b8159] | 22 | Requires: survex = @VERSION@, wxGTK >= 2.4.0 |
---|
[96c5d34] | 23 | |
---|
| 24 | %description aven |
---|
| 25 | @AVENDESC@ |
---|
| 26 | |
---|
[750a2dd] | 27 | %package svxedit |
---|
| 28 | Summary: SvxEdit survey data editor for Survex |
---|
| 29 | Group: Applications/Misc |
---|
| 30 | Requires: survex = @VERSION@ |
---|
| 31 | |
---|
| 32 | %description svxedit |
---|
[4363ca4] | 33 | @SVXEDITDESC@ |
---|
[750a2dd] | 34 | |
---|
[96c5d34] | 35 | %prep |
---|
| 36 | %setup |
---|
| 37 | |
---|
| 38 | %build |
---|
[b98055b] | 39 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
[96c5d34] | 40 | ./configure --prefix=/usr |
---|
| 41 | make |
---|
| 42 | |
---|
| 43 | %install |
---|
[b98055b] | 44 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 45 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 46 | mkdir -p "%{buildroot}" |
---|
| 47 | make install-strip DESTDIR="%{buildroot}" |
---|
[48e336e] | 48 | # Rearrange to conform to the FHS. |
---|
[b98055b] | 49 | mv "%{buildroot}"/usr/man "%{buildroot}"/usr/share/man |
---|
[48e336e] | 50 | # Move docs back into build tree to keep rpmbuild happy by letting |
---|
| 51 | # it do the installing. |
---|
[da83c18] | 52 | mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs |
---|
[96c5d34] | 53 | |
---|
| 54 | %clean |
---|
[851c965] | 55 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
[b98055b] | 56 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
[96c5d34] | 57 | |
---|
| 58 | %files |
---|
[851c965] | 59 | %defattr(-, root, root) |
---|
[96c5d34] | 60 | %doc @EXTRA_TEXT@ |
---|
[48e336e] | 61 | %doc built-docs/* |
---|
[851c965] | 62 | %doc /usr/share/man/ |
---|
| 63 | %exclude /usr/share/man/man1/aven* |
---|
| 64 | %exclude /usr/share/man/man1/svxedit* |
---|
| 65 | /usr/bin/* |
---|
| 66 | %exclude /usr/bin/aven |
---|
| 67 | %exclude /usr/bin/svxedit |
---|
| 68 | /usr/share/@PACKAGE@/ |
---|
| 69 | %exclude /usr/share/@PACKAGE@/icons/????*.png |
---|
[b98055b] | 70 | /usr/share/mime-info/survex.* |
---|
[96c5d34] | 71 | %files aven |
---|
[851c965] | 72 | %defattr(-, root, root) |
---|
[5069ca2] | 73 | %doc /usr/share/man/man1/aven* |
---|
[96c5d34] | 74 | /usr/bin/aven |
---|
[ea3ff04] | 75 | /usr/share/@PACKAGE@/icons/????*.png |
---|
[750a2dd] | 76 | %files svxedit |
---|
[851c965] | 77 | %defattr(-, root, root) |
---|
[5069ca2] | 78 | %doc /usr/share/man/man1/svxedit* |
---|
[750a2dd] | 79 | /usr/bin/svxedit |
---|