-
Notifications
You must be signed in to change notification settings - Fork 4
/
libdbf.spec.in
75 lines (57 loc) · 1.51 KB
/
libdbf.spec.in
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
# Note that this is NOT a relocatable package
%define ver @VERSION@
%define prefix /usr
Summary: Library for reading dbase files
Name: libdbf
Version: %ver
Release: 1
Copyright: LGPL
Group: Development/Libraries
Source: http://prdownloads.sourceforge.net/libdbf/libdbf-%{ver}.tar.gz
BuildRoot: /var/tmp/libdbf-%{PACKAGE_VERSION}-root
URL: http://libdbf.sourceforge.net/
Docdir: %{prefix}/doc
%description
This library allows to read dbase files.
%package devel
Summary: Libraries, includes, etc. to develop dbase applications
Group: Development/Libraries
Requires: libdbf = %{version}
%description devel
Libraries, include files, etc you can use to develop dbase applications.
%changelog
%prep
%setup
%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%{prefix} --mandir=%{prefix}/share/man
else
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix} --mandir=%{prefix}/share/man
fi
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README COPYING
%{prefix}/lib/lib*.so.*
%attr(-,root,root) %{prefix}/share/locale/*/LC_MESSAGES/*
%files devel
%defattr(-, root, root)
%{prefix}/lib/lib*.so
%{prefix}/lib/*a
%{prefix}/lib/*la
%{prefix}/include/*
%{prefix}/lib/pkgconfig/*
%doc %{prefix}/share/man/man3/*.3*