virtuoso-opensource/virtuoso-opensource.spec

207 lines
6.5 KiB
RPMSpec

%ifnarch arm
%define disable_all_vads 0
%endif
Name: virtuoso-opensource
Version: 6.1.8
Release: 1mamba
Summary: A high-performance object-relational SQL database
Group: Applications/Databases
Vendor: openmamba
Distribution: openmamba
Packager: Davide Madrisan <davide.madrisan@gmail.com>
URL: http://virtuoso.sourceforge.net/
Source: http://downloads.sourceforge.net/virtuoso/virtuoso-opensource-%{version}.tar.gz
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libbzip2-devel
BuildRequires: libexpat-devel
BuildRequires: libfftw-devel
BuildRequires: libfontconfig-devel
BuildRequires: libfreetype-devel
BuildRequires: libglib-devel
BuildRequires: libgomp-devel
BuildRequires: libICE-devel
BuildRequires: libjbig-devel
BuildRequires: libjpeg-devel
BuildRequires: liblcms2-devel
BuildRequires: liblqr-devel
BuildRequires: libltdl-devel
BuildRequires: liblzma-devel
BuildRequires: libMagick-devel
BuildRequires: libncurses-devel
BuildRequires: libopenldap-devel
BuildRequires: libopenssl-devel
BuildRequires: libpopt-devel
BuildRequires: libpthread-stubs-devel
BuildRequires: libreadline-devel
BuildRequires: libsasl-devel
BuildRequires: libSM-devel
BuildRequires: libtiff-devel
BuildRequires: libuuid-devel
BuildRequires: libwbxml2-devel
BuildRequires: libX11-devel
BuildRequires: libXau-devel
BuildRequires: libxcb-devel
BuildRequires: libXdmcp-devel
BuildRequires: libXext-devel
BuildRequires: libXt-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
At core, Virtuoso is a high-performance object-relational SQL database.
As a database, it provides transactions, a smart SQL compiler, powerful stored-procedure language with optional Java and .Net server-side hosting, hot backup, SQL-99 support and more.
It has all major data-access interfaces, such as ODBC, JDBC, ADO .Net and OLE/DB.
%package apps
Summary: Virtuoso open source database applications
Group: Applications/Databases
Requires: %{name} = %{version}-%{release}
%description apps
At core, Virtuoso is a high-performance object-relational SQL database.
As a database, it provides transactions, a smart SQL compiler, powerful stored-procedure language with optional Java and .Net server-side hosting, hot backup, SQL-99 support and more.
It has all major data-access interfaces, such as ODBC, JDBC, ADO .Net and OLE/DB.
This package contains applications to be used with Virtuoso.
%package utils
Summary: Virtuoso open source database utilities
Group: Applications/Databases
Requires: %{name} = %{version}-%{release}
%description utils
At core, Virtuoso is a high-performance object-relational SQL database.
As a database, it provides transactions, a smart SQL compiler, powerful stored-procedure language with optional Java and .Net server-side hosting, hot backup, SQL-99 support and more.
It has all major data-access interfaces, such as ODBC, JDBC, ADO .Net and OLE/DB.
This package contains utilities for use with Virtuoso.
%package java
Summary: Virtuoso bindings to JAVA and ODBC
Group: System/Libraries/Java
Requires: %{name} = %{version}-%{release}
%description java
At core, Virtuoso is a high-performance object-relational SQL database.
As a database, it provides transactions, a smart SQL compiler, powerful stored-procedure language with optional Java and .Net server-side hosting, hot backup, SQL-99 support and more.
It has all major data-access interfaces, such as ODBC, JDBC, ADO .Net and OLE/DB.
This package contains Virtuoso bindings to JAVA and ODBC.
# FIXME
# checking for hslookup... notfound
# configure: WARNING: The hslookup plugin will not be build
%prep
%setup -q
#-D -T
%build
#: << CBLOCK
%configure \
--with-layout=redhat \
--with-readline \
--with-pthreads \
--enable-shared \
--disable-static \
--without-internal-zlib \
--enable-openssl \
--enable-xml \
%if "%{?disable-all-vads}" == "1"
--disable-all-vads \
%endif
LIBS="-lncurses -ltirpc"
%make -j1 PORT=34567
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
# generic'ish binaries, hide them away safely
install -d %{buildroot}%{_libexecdir}/virtuoso
mv %{buildroot}%{_bindir}/{inifile,isql,isqlw} \
%{buildroot}%{_libexecdir}/virtuoso/
install -d %{buildroot}%{_sysconfdir}/virtuoso
mv %{buildroot}%{_var}/lib/virtuoso/db/virtuoso.ini \
%{buildroot}%{_sysconfdir}/virtuoso/
ln -s ../../../..%{_sysconfdir}/virtuoso/virtuoso.ini \
%{buildroot}%{_var}/lib/virtuoso/db/virtuoso.ini
# remove unpackaged files
rm -vf %{buildroot}%{_libdir}/*.{la,a}
rm -vf %{buildroot}%{_libdir}/virtuoso/hosting/*.la
#rm -vf %{buildroot}%{_libdir}/{jdbc-?.?,jena,sesame}/*.jar
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/virtuoso/virtuoso.ini
%{_bindir}/virtuoso-t
%{_libdir}/virt*.so
%dir %{_libdir}/virtuoso/
%dir %{_var}/lib/virtuoso
%{_var}/lib/virtuoso/db/
%{_var}/lib/virtuoso/vsp/
%doc AUTHORS COPYING LICENSE
%if "%{?disable-all-vads}" != "1"
%files apps
%defattr(-,root,root)
%{_libdir}/virtuoso/hosting/
%dir %{_datadir}/virtuoso/
%dir %{_datadir}/virtuoso/vad/
%{_datadir}/virtuoso/vad/*.vad
%endif
%files utils
%defattr(-,root,root)
%{_bindir}/virt_mail
%dir %{_libexecdir}/virtuoso/
%{_libexecdir}/virtuoso/*
%{_docdir}/virtuoso/*
%files java
%defattr(-,root,root)
%{_libdir}/hibernate/*.jar
%{_libdir}/jdbc-?.?
%dir %{_libdir}/jena
%{_libdir}/jena/*.jar
%dir %{_libdir}/jena2
%{_libdir}/jena2/virt_jena2.jar
%{_libdir}/sesame/create-virtuoso.xsl
%{_libdir}/sesame/create.xsl
%{_libdir}/sesame/*.jar
%changelog
* Thu Mar 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1.8-1mamba
- update to 6.1.8
* Sat Aug 04 2012 Davide Madrisan <davide.madrisan@gmail.com> 6.1.6-1mamba
- update to 6.1.6
* Mon Mar 05 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1.4-2mamba
- added workaround for correctly linking to libreadline (since binutils gold?)
* Thu Dec 01 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1.4-1mamba
- update to 6.1.4
* Sat Apr 02 2011 Automatic Build System <autodist@mambasoft.it> 6.1.3-1mamba
- automatic update by autodist
* Sun Jul 11 2010 Automatic Build System <autodist@mambasoft.it> 6.1.2-1mamba
- automatic update by autodist
* Tue May 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1.1-1mamba
- update to 6.1.1
* Tue May 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.14-1mamba
- update to 5.0.14
* Sat Jan 30 2010 Davide Madrisan <davide.madrisan@gmail.com> 5.0.12-1mamba
- package created by autospec