-
Notifications
You must be signed in to change notification settings - Fork 6
/
ffpis_img.spec.in
82 lines (65 loc) · 1.93 KB
/
ffpis_img.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
76
77
78
79
80
81
82
Name: ffpis_img
Summary: Free FingerPrint Imaging Software Math Library
Version: @VERSION@
Release: 1
License: LGPL
Group: Libraries
Source: http://ffpis.sourceforge.net/
BuildRoot: /var/tmp/%{name}-%{version}-root
URL: http://ffpis.sourceforge.net/
Requires:
BuildRequires:
%description
img library used by other modules part of the ffpis project
%package devel
Summary: Free FingerPrint Imaging Software Math Library
Group: X11/Libraries
Requires: %{name} = %{version}
%description devel
Static and dynamic libraries and header files for ffpis img library
%prep
%setup -q -n
%build
%ifarch alpha
MYARCH_FLAGS="--host=alpha-redhat-linux"
%endif
# Needed for snapshot releases.
MYCFLAGS="$RPM_OPT_FLAGS"
if [ ! -f configure ]; then
CFLAGS="$MYCFLAGS" ./autogen.sh $MYARCH_FLAGS \
--prefix=%{_prefix} \
--localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir} \
--mandir=%{_mandir} --libdir=%{_libdir} \
--includedir=%{_includedir}
else
CFLAGS="$MYCFLAGS" ./configure $MYARCH_FLAGS \
--prefix=%{_prefix} --localstatedir=%{_localstatedir} \
--sysconfdir=%{_sysconfdir} --mandir=%{_mandir} \
--libdir=%{_libdir} --includedir=%{_includedir} --disable-gtk-doc
fi
if [ "$SMP" != "" ]; then
(make "MAKE=make -k -j $SMP"; exit 0)
make
else
make
fi
%install
rm -rf $RPM_BUILD_ROOT
make -k sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} \
prefix=$RPM_BUILD_ROOT%{_prefix} mandir=$RPM_BUILD_ROOT%{_mandir} \
localstatedir=$RPM_BUILD_ROOT%{_localstatedir} \
libdir=$RPM_BUILD_ROOT%{_libdir} \
includedir=$RPM_BUILD_ROOT%{_includedir} install
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README TODO HACKING
%files devel
%defattr(-, root, root)
%changelog
* Sun Jan 4 10:47:00 PST 2004
- put stuff in this .spec.in file
- this probably doesn't come close to actually working