source: git/survex.spec.in @ 58eeab4

RELEASE/1.2debug-cidebug-ci-sanitiserswalls-datawalls-data-hanging-as-warning
Last change on this file since 58eeab4 was 58eeab4, checked in by GitHub <noreply@…>, 5 years ago

Update survex.spec.in

Fedora have removed gcc from the default build environment so need to explicitly list it in the BuildRequires? tag.
See https://fedoraproject.org/wiki/Changes/Remove_GCC_from_BuildRoot for more information.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1# @configure_input@
2Summary: Cave Surveying Software
3Name: @PACKAGE@
4Vendor: The Survex Project
5Version: @VERSION@
6Release: @RELEASE@
7License: GPL
8Group: Applications/Misc
9Source: https://survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz
10URL: https://survex.com/
11Packager: Olly Betts <olly@survex.com>
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
15#Requires: wxGTK >= 2.8.0, proj, proj-epsg
16# Fedora have removed gcc from the default build environment so explicitly list it here
17BuildRequires: wxGTK3-devel, proj-devel, gcc-g++
18Requires: wxGTK3, proj, proj-epsg
19BuildRoot: %{_tmppath}/%{name}-buildroot
20
21%description
22@DESC@
23
24%prep
25%setup
26
27%build
28[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
29./configure --prefix=/usr
30make
31
32%install
33[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
34[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
35mkdir -p "%{buildroot}"
36make install DESTDIR="%{buildroot}"
37make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}"
38# Move docs back into build tree to keep rpmbuild happy by letting
39# it do the installing.
40mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs
41
42%clean
43[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
44[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
45
46%files
47%defattr(-, root, root)
48%doc @EXTRA_TEXT@
49%doc built-docs/*
50%doc /usr/share/man/
51/usr/bin/*
52/usr/share/@PACKAGE@/
53/usr/share/mime/
54/usr/share/applications/survex-aven.desktop
55/usr/share/icons/
56/usr/share/vim/
Note: See TracBrowser for help on using the repository browser.