[7bb8184] | 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: http://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz |
---|
| 10 | URL: http://survex.com/ |
---|
| 11 | Packager: Olly Betts <olly@survex.com> |
---|
| 12 | BuildRequires: wxGTK-devel >= 2.6.0 |
---|
| 13 | Requires: wxGTK >= 2.6.0 |
---|
| 14 | BuildRoot: %{_tmppath}/%{name}-buildroot |
---|
| 15 | |
---|
| 16 | %description |
---|
| 17 | @DESC@ |
---|
| 18 | |
---|
| 19 | %package svxedit |
---|
| 20 | Summary: SvxEdit survey data editor for Survex |
---|
| 21 | Group: Applications/Misc |
---|
| 22 | Requires: survex = @VERSION@ |
---|
| 23 | |
---|
| 24 | %description svxedit |
---|
| 25 | @SVXEDITDESC@ |
---|
| 26 | |
---|
| 27 | %prep |
---|
| 28 | %setup |
---|
| 29 | |
---|
| 30 | %build |
---|
| 31 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 32 | ./configure --prefix=/usr |
---|
| 33 | make |
---|
| 34 | |
---|
| 35 | %install |
---|
| 36 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 37 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 38 | mkdir -p "%{buildroot}" |
---|
| 39 | make install-strip DESTDIR="%{buildroot}" |
---|
| 40 | make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}" |
---|
| 41 | # Rearrange to conform to the FHS. |
---|
| 42 | mv "%{buildroot}"/usr/man "%{buildroot}"/usr/share/man |
---|
| 43 | # Move docs back into build tree to keep rpmbuild happy by letting |
---|
| 44 | # it do the installing. |
---|
| 45 | mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs |
---|
| 46 | |
---|
| 47 | %clean |
---|
| 48 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 49 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 50 | |
---|
| 51 | %files |
---|
| 52 | %defattr(-, root, root) |
---|
| 53 | %doc @EXTRA_TEXT@ |
---|
| 54 | %doc built-docs/* |
---|
| 55 | %doc /usr/share/man/ |
---|
| 56 | %exclude /usr/share/man/man1/svxedit* |
---|
| 57 | /usr/bin/* |
---|
| 58 | %exclude /usr/bin/svxedit |
---|
| 59 | /usr/share/@PACKAGE@/ |
---|
| 60 | /usr/share/mime-info/survex.* |
---|
| 61 | /usr/share/applications/survex-aven.desktop |
---|
| 62 | /usr/share/pixmaps/aven.png |
---|
| 63 | |
---|
| 64 | %files svxedit |
---|
| 65 | %defattr(-, root, root) |
---|
| 66 | %doc /usr/share/man/man1/svxedit* |
---|
| 67 | /usr/bin/svxedit |
---|
| 68 | /usr/share/applications/survex-svxedit.desktop |
---|
| 69 | /usr/share/pixmaps/svxedit.png |
---|