LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File recutils.spec of Package recutils (Project home:cyberiad:Factory)

Name:           recutils
BuildRequires:  curl-devel openssh cyrus-sasl-gssapi glib2-devel bison flex info
Requires(post):  /sbin/install-info
Requires(preun): /sbin/install-info


%if 0%{?suse_version} >= 1100
BuildRequires:  mdbtools-devel
%endif


Url:            http://www.gnu.org/software/recutils/
License:        GPL-3
Group:          Productivity/Databases/Servers
AutoReqProv:    on
Version:       1.5
Release:        1
Summary:        Tools for text-based databases
Source:         %{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
GNU Recutils is designed to work with text-based files that can be used
like a database. The suite of tools also contains several commands for
conversion to other database formats.


Authors:
--------
Jose E. Marchesi <jemarch {at} gnu {dot} org>
Ralf Wildenhues <Ralf.Wildenhues {at} gmx {dot} de

%package devel
License:        GPL-3
Summary:        Development files for the tools for text-based databases
Group:          Development/Tools/Other
BuildRequires:  curl-devel openssh cyrus-sasl-gssapi glib2-devel bison flex info
Requires:       recutils = %{version}

%description devel
This package contains all necessary include files and libraries that are
needed for developing with GNU Recutils which is designed to work with
text-based files that can be used like a database. The suite of tools also
contains several commands for conversion to other database formats.


%lang_package
%prep
%setup -q 

%build
%configure
make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :

%preun devel
if [ $1 = 0 ]; then
        /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi


%post devel
/sbin/ldconfig

%postun devel
/sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_mandir}/man1/*.1.*
%{_datadir}/%{name}/
%{_datadir}/emacs/site-lisp/rec-mode.el
%{_datadir}/emacs/site-lisp/ob-rec.el
%{_datadir}/info/recutils.info.gz
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/%{name}.mo
%lang(fi) %{_datadir}/locale/fi/LC_MESSAGES/%{name}.mo
%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/%{name}.mo
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/%{name}.mo

%files devel
%defattr(-,root,root)
%{_libdir}/librec*
%{_includedir}/rec.h

%changelog