File: xlog.spec

package info (click to toggle)
xlog 1.7-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,312 kB
  • ctags: 1,016
  • sloc: ansic: 22,148; sh: 4,070; makefile: 309; sed: 16; xml: 8
file content (90 lines) | stat: -rw-r--r-- 2,036 bytes parent folder | download
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
# xlog.spec
#
# Copyright (c) 2001 - 2007 Joop Stakenborg pg4i@amsat.org
#
%define name xlog
%define version 1.7
%define release 1


Name: %{name}
Version: %{version}
Release: %{release}
License: GPL
Group: Applications/Databases
Prefix: %{_prefix}
Summary: Logging program for Hamradio Operators
Vendor: Joop Stakenborg <pg4i@amsat.org>
URL: http://pg4i.chronos.org.uk/linux/xlog.html
Packager: Joop Stakenborg <pg4i@amsat.org>
Source: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/root-%{name}-%{version}
Requires: gtk2 >= 2.4.0


%description
xlog is a logging program for amateur radio operators. The log is stored
into a text file. QSO's are presented in a list. Items in the list can be
added, deleted or updated. For each contact, dxcc information is displayed
and bearings and distance is calculated, both short and long path.
xlog supports trlog, adif, cabrillo, edit, twlog and editest files.


%prep
%setup
%build
export RPM_OPT_FLAGS="-O2 -march=i386"
export CFLAGS="-O2"
%configure
make
%install
%{__rm} -rf %{buildroot}
%makeinstall
%find_lang %{name}
desktop-file-install \
	--vendor "" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop


%clean
%{__rm} -rf %{buildroot}


%post
if (update-mime-database -v &> /dev/null); then
	update-mime-database "%{_datadir}/mime" > /dev/null
fi
if (update-desktop-database --usage &>/dev/null); then
	update-desktop-database
fi


%postun
if (update-mime-database -v &> /dev/null); then
	update-mime-database "%{_datadir}/mime" > /dev/null
fi
if (update-desktop-database --usage &>/dev/null); then
	update-desktop-database
fi


%files -f %{name}.lang
%defattr(-,root,root)
%doc
%{_bindir}/xlog
%{_datadir}/xlog/*
%{_datadir}/pixmaps/*
%{_datadir}/pixmaps/xlog/*
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*
%{_datadir}/applnk/Applications/*
%{_datadir}/man/man1/*


%changelog
* Sat Oct 16 2004 Joop Stakenborg
- Freedesktop.org mime support and cleanups.

* Sat Feb 09 2002 Joop Stakenborg
- Initial spec file