source: git/survex.spec.in @ 839db8b

RELEASE/1.1RELEASE/1.2debug-cidebug-ci-sanitisersstereowalls-data
Last change on this file since 839db8b was 839db8b, checked in by Olly Betts <olly@…>, 18 years ago

Sort out installation and packaging of vim files.

git-svn-id: file:///home/survex-svn/survex/branches/survex-1_1@3256 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 1.8 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>
12#Can't build with rpm on debian with this next line uncommented:
13#BuildRequires: wxGTK-devel >= 2.4.0
14Requires: wxGTK >= 2.4.0
15BuildRoot: %{_tmppath}/%{name}-buildroot
16
17%description
18@DESC@
19
20%package svxedit
21Summary: SvxEdit survey data editor for Survex
22Group: Applications/Misc
23Requires: survex = @VERSION@
24
25%description svxedit
26@SVXEDITDESC@
27
28%prep
29%setup
30
31%build
32[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
33./configure --prefix=/usr
34make
35
36%install
37[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
38[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
39mkdir -p "%{buildroot}"
40make install-strip DESTDIR="%{buildroot}"
41make -C vim vimdir=/usr/share/vim install DESTDIR="%{buildroot}"
42# Rearrange to conform to the FHS.
43mv "%{buildroot}"/usr/man "%{buildroot}"/usr/share/man
44# Move docs back into build tree to keep rpmbuild happy by letting
45# it do the installing.
46mv "%{buildroot}"/usr/doc/@PACKAGE@ ./built-docs
47
48%clean
49[ "%{buildroot}" = "/" ] && echo "buildroot cannot be /" && exit 1
50[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
51
52%files
53%defattr(-, root, root)
54%doc @EXTRA_TEXT@
55%doc built-docs/*
56%doc /usr/share/man/
57%exclude /usr/share/man/man1/svxedit*
58/usr/bin/*
59%exclude /usr/bin/svxedit
60/usr/share/@PACKAGE@/
61/usr/share/mime-info/survex.*
62/usr/share/applications/survex-aven.desktop
63/usr/share/pixmaps/aven.png
64
65%files svxedit
66%defattr(-, root, root)
67%doc /usr/share/man/man1/svxedit*
68/usr/bin/svxedit
69/usr/share/applications/survex-svxedit.desktop
70/usr/share/pixmaps/svxedit.png
Note: See TracBrowser for help on using the repository browser.