File tinycdb.spec of Package tinycdb

#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:           tinycdb
Version:        0.76
Release:        0
Summary:        Constant Database manipulation library
Group:          System/Libraries
License:        Public Domain
Url:            http://www.corpit.ru/mjt/tinycdb.html
Source0:        %name-%version.tar.bz2
BuildRequires:  pkgconfig(glib-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Tinycdb is a Constant Database manipulation library

%package devel
Summary:    Development files for tinycdb
Group:      Development/Libraries/C and C++ 
Requires:   %{name} = %{version}

%description devel
This package includes development files for tinycdb

%prep
%setup -q

%build
make %{?jobs:-j%jobs} \
     CFLAGS="$RPM_OPT_FLAGS" \
     prefix=%_prefix \
     bindir=%_bindir \
     libdir=%_libdir \
     syslibdir=%_libdir \
     sysconfdir=%_sysconfdir \
     includedir=%_includedir \
     mandir=%_mandir \
     staticlib sharedlib cdb-shared

%install
make CFLAGS="$RPM_OPT_FLAGS" \
     prefix=%_prefix \
     bindir=%_bindir \
     libdir=%_libdir \
     syslibdir=%_libdir \
     sysconfdir=%_sysconfdir \
     includedir=%_includedir \
     mandir=%_mandir \
     DESTDIR=%buildroot install-all install-nss install-piclib install-sharedlib

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc ChangeLog NEWS
%_bindir/cdb
%_libdir/libcdb.so.*
%_libdir/libnss_cdb.so.*
%_mandir/man*/cdb.*

%files devel
%defattr(-,root,root)
%_includedir/cdb.h
%_libdir/*.so
%_libdir/*.a
%config(noreplace) %_sysconfdir/cdb-Makefile

%changelog
openSUSE Build Service is sponsored by