RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectwalls-datawalls-data-hanging-as-warning
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 |
---|
[d417499] | 9 | Source: https://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz |
---|
| 10 | URL: https://survex.com/ |
---|
[96c5d34] | 11 | Packager: Olly Betts <olly@survex.com> |
---|
[96a7629] | 12 | # If your distro doesn't have wxGTK3-devel and wxGTK3 yet, use these |
---|
| 13 | # dependencies instead: |
---|
| 14 | #BuildRequires: wxGTK-devel >= 2.8.0, proj-devel |
---|
[ad4e7b08] | 15 | #Requires: wxGTK >= 2.8.0, proj, proj-epsg |
---|
[58eeab4] | 16 | # Fedora have removed gcc from the default build environment so explicitly list it here |
---|
| 17 | BuildRequires: wxGTK3-devel, proj-devel, gcc-g++ |
---|
[ad4e7b08] | 18 | Requires: wxGTK3, proj, proj-epsg |
---|
[b462168] | 19 | BuildRoot: %{_tmppath}/%{name}-buildroot |
---|
[96c5d34] | 20 | |
---|
| 21 | %description |
---|
| 22 | @DESC@ |
---|
| 23 | |
---|
| 24 | %prep |
---|
| 25 | %setup |
---|
| 26 | |
---|
| 27 | %build |
---|
[b462168] | 28 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
[96c5d34] | 29 | ./configure --prefix=/usr |
---|
| 30 | make |
---|
| 31 | |
---|
| 32 | %install |
---|
[b462168] | 33 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 34 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 35 | mkdir -p "%{buildroot}" |
---|
[129a061] | 36 | make install DESTDIR="%{buildroot}" |
---|
[839db8b] | 37 | make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}" |
---|
[64d37a3] | 38 | # Move docs back into build tree to keep rpmbuild happy by letting |
---|
| 39 | # it do the installing. |
---|
[d0a7bba] | 40 | mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs |
---|
[96c5d34] | 41 | |
---|
| 42 | %clean |
---|
[b462168] | 43 | [ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1 |
---|
| 44 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
[96c5d34] | 45 | |
---|
| 46 | %files |
---|
[b462168] | 47 | %defattr(-, root, root) |
---|
[96c5d34] | 48 | %doc @EXTRA_TEXT@ |
---|
[64d37a3] | 49 | %doc built-docs/* |
---|
[b462168] | 50 | %doc /usr/share/man/ |
---|
| 51 | /usr/bin/* |
---|
| 52 | /usr/share/@PACKAGE@/ |
---|
[129a061] | 53 | /usr/share/mime/ |
---|
[fa62c87] | 54 | /usr/share/applications/survex-aven.desktop |
---|
[66bfec8] | 55 | /usr/share/icons/ |
---|
[034d04dc] | 56 | /usr/share/vim/ |
---|
Note: See
TracBrowser
for help on using the repository browser.