~vcs-imports/pxlib/head

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
Summary: A library to read Paradox DB files
Name: @PACKAGE@
Version: @PACKAGE_VERSION@
Release: 1
License: see doc/COPYING
Group: Applications/Utils
URL: http://%{name}.sourceforge.net/
Packager: Uwe Steinmann <uwe@steinmann.cx>
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

%description
%{name} is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%package devel
Summary: A library to read Paradox DB files (Development)
Group: Development/Libraries
Requires: %{name} = %{version}

%description devel
%{name}pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%prep
%setup -q

%build
%configure --with-sqlite --with-gsf
make

%install
rm -rf ${RPM_BUILD_ROOT}
install -d -m 755 ${RPM_BUILD_ROOT}
make DESTDIR=${RPM_BUILD_ROOT} install

%clean
rm -rf ${RPM_BUILD_ROOT}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%attr(-,root,root) %doc README AUTHORS ChangeLog COPYING INSTALL
%attr(-,root,root) %{_libdir}/lib*.so.*
%attr(-,root,root) %{_datadir}/locale/*/LC_MESSAGES/*

%files devel
%attr(-,root,root) %{_libdir}/lib*.so
%attr(-,root,root) %{_libdir}/*.a
%attr(-,root,root) %{_libdir}/*.la
%attr(-,root,root) %{_libdir}/pkgconfig/*
%attr(-,root,root) %{_includedir}/*

%changelog
* Sun May 15 2011 Mihai T. Lazarescu <mihai@lazarescu.org> - 0.6.3-1
- use macros in preamble and description
- use system default prefix
- fixed package %version reference
- set BuildRoot to system-defined directory
- quiet archive expansion in %setup
- use system %configure macro for default system setup
- removed man pages from the %files section