source: git/survex.spec.in @ c0a36416

RELEASE/1.0RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernlogstereowalls-datawalls-data-hanging-as-warning
Last change on this file since c0a36416 was 851c965, checked in by Olly Betts <olly@…>, 21 years ago

Build src rpm for convenience of installing

git-svn-id: file:///home/survex-svn/survex/trunk@2323 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 1.9 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: http://www.survex.com/software/@VERSION@/@PACKAGE@-@VERSION@.tar.gz
10URL: http://www.survex.com/
11Packager: Olly Betts <olly@survex.com>
12BuildRequires: wxGTK >= 2.4.0
13BuildRoot: %{_tmppath}/var/tmp/%{name}-buildroot
14
15%description
16@DESC@
17
18%package aven
19Summary: Aven viewer for Survex
20Group: Applications/Misc
21Requires: survex = @VERSION@
22
23%description aven
24@AVENDESC@
25
26%package svxedit
27Summary: SvxEdit survey data editor for Survex
28Group: Applications/Misc
29Requires: survex = @VERSION@
30
31%description svxedit
32@SVXEDITDESC@
33
34%prep
35%setup
36
37%build
38[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
39./configure --prefix=/usr
40make
41
42%install
43[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
44[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
45mkdir -p "%{buildroot}"
46make install-strip DESTDIR="%{buildroot}"
47# Rearrange to conform to the FHS
48mkdir -p "%{buildroot}"/usr/share/doc
49# Recent Redhat versions (7.3 for e.g.) use /usr/share/doc/@PACKAGE@-@VERSION@ !
50mv "%{buildroot}"/usr/doc/@PACKAGE@ "%{buildroot}"/usr/share/doc/@PACKAGE@-@VERSION@
51mv "%{buildroot}"/usr/man "%{buildroot}"/usr/share/man
52
53%clean
54[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
55[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
56
57%files
58%defattr(-, root, root)
59%doc @EXTRA_TEXT@
60%doc /usr/share/doc/@PACKAGE@-@VERSION@
61%doc /usr/share/man/
62%exclude /usr/share/man/man1/aven*
63%exclude /usr/share/man/man1/svxedit*
64/usr/bin/*
65%exclude /usr/bin/aven
66%exclude /usr/bin/svxedit
67/usr/share/@PACKAGE@/
68%exclude /usr/share/@PACKAGE@/icons/????*.png
69/usr/share/mime-info/survex.*
70%files aven
71%defattr(-, root, root)
72%doc /usr/share/man/man1/aven*
73/usr/bin/aven
74/usr/share/@PACKAGE@/icons/????*.png
75%files svxedit
76%defattr(-, root, root)
77%doc /usr/share/man/man1/svxedit*
78/usr/bin/svxedit
Note: See TracBrowser for help on using the repository browser.