source:
git/survex.spec.in
@
034d04dc
Last change on this file since 034d04dc was 034d04dc, checked in by , 13 years ago | |
---|---|
|
|
File size: 1.7 KB |
Rev | Line | |
---|---|---|
[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 |
[c818632] | 9 | Source: http://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz |
10 | URL: http://survex.com/ | |
[96c5d34] | 11 | Packager: Olly Betts <olly@survex.com> |
[c818632] | 12 | BuildRequires: wxGTK-devel >= 2.6.0 |
13 | Requires: wxGTK >= 2.6.0 | |
[b462168] | 14 | BuildRoot: %{_tmppath}/%{name}-buildroot |
[96c5d34] | 15 | |
16 | %description | |
17 | @DESC@ | |
18 | ||
[27b8b59] | 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 | ||
[96c5d34] | 27 | %prep |
28 | %setup | |
29 | ||
30 | %build | |
[b462168] | 31 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
[96c5d34] | 32 | ./configure --prefix=/usr |
33 | make | |
34 | ||
35 | %install | |
[b462168] | 36 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
37 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} | |
38 | mkdir -p "%{buildroot}" | |
39 | make install-strip DESTDIR="%{buildroot}" | |
[839db8b] | 40 | make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}" |
[64d37a3] | 41 | # Move docs back into build tree to keep rpmbuild happy by letting |
42 | # it do the installing. | |
[d0a7bba] | 43 | mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs |
[96c5d34] | 44 | |
45 | %clean | |
[b462168] | 46 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
47 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} | |
[96c5d34] | 48 | |
49 | %files | |
[b462168] | 50 | %defattr(-, root, root) |
[96c5d34] | 51 | %doc @EXTRA_TEXT@ |
[64d37a3] | 52 | %doc built-docs/* |
[b462168] | 53 | %doc /usr/share/man/ |
54 | %exclude /usr/share/man/man1/svxedit* | |
55 | /usr/bin/* | |
56 | %exclude /usr/bin/svxedit | |
57 | /usr/share/@PACKAGE@/ | |
58 | /usr/share/mime-info/survex.* | |
[fa62c87] | 59 | /usr/share/applications/survex-aven.desktop |
[034d04dc] | 60 | /usr/share/pixmaps/aven.* |
61 | /usr/share/vim/ | |
[fa62c87] | 62 | |
[27b8b59] | 63 | %files svxedit |
[b462168] | 64 | %defattr(-, root, root) |
[27b8b59] | 65 | %doc /usr/share/man/man1/svxedit* |
66 | /usr/bin/svxedit | |
[fa62c87] | 67 | /usr/share/applications/survex-svxedit.desktop |
[034d04dc] | 68 | /usr/share/pixmaps/svxedit.* |
Note: See TracBrowser
for help on using the repository browser.