[2b09f38] | 1 | # @configure_input@ |
---|
[96c5d34] | 2 | Summary: Cave Surveying Software |
---|
| 3 | Name: @PACKAGE@ |
---|
| 4 | Vendor: The Survex Project |
---|
| 5 | Version: @VERSION@ |
---|
| 6 | Release: @RELEASE@ |
---|
[b462168] | 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> |
---|
[b462168] | 12 | #Can't build with rpm on debian with this next line uncommented: |
---|
| 13 | #BuildRequires: wxGTK-devel >= 2.4.0 |
---|
[fa62c87] | 14 | Requires: wxGTK >= 2.4.0 |
---|
[b462168] | 15 | BuildRoot: %{_tmppath}/%{name}-buildroot |
---|
[96c5d34] | 16 | |
---|
| 17 | %description |
---|
| 18 | @DESC@ |
---|
| 19 | |
---|
[27b8b59] | 20 | %package svxedit |
---|
| 21 | Summary: SvxEdit survey data editor for Survex |
---|
| 22 | Group: Applications/Misc |
---|
| 23 | Requires: survex = @VERSION@ |
---|
| 24 | |
---|
| 25 | %description svxedit |
---|
| 26 | @SVXEDITDESC@ |
---|
| 27 | |
---|
[96c5d34] | 28 | %prep |
---|
| 29 | %setup |
---|
| 30 | |
---|
| 31 | %build |
---|
[b462168] | 32 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
[96c5d34] | 33 | ./configure --prefix=/usr |
---|
| 34 | make |
---|
| 35 | |
---|
| 36 | %install |
---|
[b462168] | 37 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 38 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 39 | mkdir -p "%{buildroot}" |
---|
| 40 | make install-strip DESTDIR="%{buildroot}" |
---|
[839db8b] | 41 | make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}" |
---|
[64d37a3] | 42 | # Rearrange to conform to the FHS. |
---|
[b462168] | 43 | mv "%{buildroot}"/usr/man "%{buildroot}"/usr/share/man |
---|
[64d37a3] | 44 | # Move docs back into build tree to keep rpmbuild happy by letting |
---|
| 45 | # it do the installing. |
---|
| 46 | mv "%{buildroot}"/usr/doc/@PACKAGE@ ./built-docs |
---|
[96c5d34] | 47 | |
---|
| 48 | %clean |
---|
[b462168] | 49 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 50 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
[96c5d34] | 51 | |
---|
| 52 | %files |
---|
[b462168] | 53 | %defattr(-, root, root) |
---|
[96c5d34] | 54 | %doc @EXTRA_TEXT@ |
---|
[64d37a3] | 55 | %doc built-docs/* |
---|
[b462168] | 56 | %doc /usr/share/man/ |
---|
| 57 | %exclude /usr/share/man/man1/svxedit* |
---|
| 58 | /usr/bin/* |
---|
| 59 | %exclude /usr/bin/svxedit |
---|
| 60 | /usr/share/@PACKAGE@/ |
---|
| 61 | /usr/share/mime-info/survex.* |
---|
[fa62c87] | 62 | /usr/share/applications/survex-aven.desktop |
---|
| 63 | /usr/share/pixmaps/aven.png |
---|
| 64 | |
---|
[27b8b59] | 65 | %files svxedit |
---|
[b462168] | 66 | %defattr(-, root, root) |
---|
[27b8b59] | 67 | %doc /usr/share/man/man1/svxedit* |
---|
| 68 | /usr/bin/svxedit |
---|
[fa62c87] | 69 | /usr/share/applications/survex-svxedit.desktop |
---|
| 70 | /usr/share/pixmaps/svxedit.png |
---|