File bioapi.spec of Package bioapi

Name:           bioapi
BuildRequires:  libdrm-devel libjpeg-devel qt3-devel update-desktop-files
URL:            http://www.qrivy.net/~michael/temp/
Summary:        NIST Linux/Unix BioAPI Reference Implementation
Version:        1.2.3
Release:        1
License:        BSD
Autoreqprov:    on
Prefix:         %{_prefix}
Group:          Productivity/Other
Source:         %{name}-%{version}.tar.bz2
Patch:          %{name}-%{version}.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains the BioAPI reference implementation for
Unix-based platforms (in particular Linux and Solaris). The Unix-based
reference implementation was developed by the Convergent Information
Division (CISD), Information Technology Laboratory (ITL) of the
National Institute of Standards and Technology (NIST). The Unix-based
reference implementation is based directly on the BioAPI Consortium's
Windows reference implementation and the Common Data Security
Architecture (CDSA) reference implementation. The Unix-based reference
implementation includes the Sample application and the MdsEdit utility
from code provided by the International Biometric Group (IBG).



%debug_package
%package devel
Summary:        Development files for NIST Linux/Unix BioAPI Reference Implementation
Requires:       %{name} = %{version}
Group:          Productivity/Other

%description devel
This package contains the Header files and development libraries for
the BioAPI reference implementation.



%prep
%setup -q
%patch

%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
./configure --prefix=%{_prefix} --mandir=%{_mandir} \
	--sysconfdir=%{_sysconfdir} --datadir=%{_datadir} \
	--localstatedir=%{_localstatedir}/lib --libdir=%{_libdir} \
	--with-Qt-bin-dir=%{_libdir}/qt3/bin \
	--with-Qt-lib-dir=%{_libdir}/qt3/%{_lib}
export CXXFLAGS=$CFLAGS
make

%install
SKIPCONFIG=true %makeinstall
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/bioapi
rm $RPM_BUILD_ROOT%{_libdir}/lib*.la

%clean
rm -rf $RPM_BUILD_ROOT

%post
echo "Module Directory Services (MDS)... "$(%_bindir/mds_install -s %{_libdir})
for lib in bioapi100 ; do
  echo "Registring $lib... "$(%{_bindir}/mod_install -fi %{_libdir}/lib$lib.so)
done

%files
%defattr(-,root,root)
%doc README *.htm
%{_bindir}/BioAPITest
%{_bindir}/MdsEdit
%{_bindir}/QSample
%{_bindir}/Sample
%{_bindir}/mds_install
%{_bindir}/mod_install
%{_libdir}/lib*.so*
%dir %{_localstatedir}/lib/bioapi

%files devel
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.a
openSUSE Build Service is sponsored by