-
Notifications
You must be signed in to change notification settings - Fork 10
/
survex.spec.in
52 lines (46 loc) · 1.37 KB
/
survex.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# @configure_input@
Summary: Cave Surveying Software
Name: @PACKAGE@
Vendor: The Survex Project
Version: @VERSION@
Release: @RELEASE@
License: GPL
Group: Applications/Misc
Source: https://survex.com/software/@VERSION@/@PACKAGE@-@[email protected]
URL: https://survex.com/
Packager: Olly Betts <[email protected]>
# Fedora have removed gcc from the default build environment so explicitly list it here
BuildRequires: wxGTK3-devel, proj-devel, gcc-g++
Requires: wxGTK3, proj, proj-epsg
BuildRoot: %{_tmppath}/%{name}-buildroot
%description
@DESC@
%prep
%setup
%build
[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
./configure --prefix=/usr
make
%install
[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p "%{buildroot}"
make install DESTDIR="%{buildroot}"
make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}"
# Move docs back into build tree to keep rpmbuild happy by letting
# it do the installing.
mv "%{buildroot}"/usr/share/doc/@PACKAGE@ ./built-docs
%clean
[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc @EXTRA_TEXT@
%doc built-docs/*
%doc /usr/share/man/
/usr/bin/*
/usr/share/@PACKAGE@/
/usr/share/mime/
/usr/share/applications/survex-aven.desktop
/usr/share/icons/
/usr/share/vim/