forked from GPSBabel/gpsbabel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmkspec
executable file
·56 lines (41 loc) · 858 Bytes
/
mkspec
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
53
54
55
56
#!/bin/sh
#
WEB=$1
VERSION=$2
RELEASE=$3 # may be empty
REL=`echo $RELEASE | sed 's/^-//'`
test "$REL" = "" && REL=0
cat << EOF
Summary: GPSBabel
Name: gpsbabel
Version: $VERSION
Release: $REL
License: GPL
Group: File tools
Source: %{name}-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
URL: https://www.gpsbabel.org
%description
Converts GPS waypoint, route and track data from one format type to another.
Authors:
--------
EOF
cat AUTHORS
cat << EOF
%prep
%setup -q
%build
LDFLAGS="-s" ./configure
make
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/bin
install -m 555 gpsbabel %{buildroot}/usr/bin/gpsbabel
%files
%defattr(-,root,root)
/usr/bin/gpsbabel
%doc README* COPYING CHANGELOG AUTHORS gpsbabel.html
%changelog
EOF
cat $WEB/changes.html | tools/mkchangelog > CHANGELOG
cat CHANGELOG