Blob Blame History Raw

# workaround vad creation fail on ppc,
# http://bugzilla.redhat.com/725347 
%if 0%{?rhel}
# set to omit demos
%define _disable_all_vads   --disable-all-vads
%endif

Name:    virtuoso-opensource
Epoch:   1
Version: 6.1.6
Release: 6%{?dist}
Summary: A high-performance object-relational SQL database

Group:   Applications/Databases
# see LICENSE for exception details
License: GPLv2 with exceptions
URL:     http://virtuoso.openlinksw.com/wiki/main/ 
#URL:     https://github.com/openlink/virtuoso-opensource
%if 0%{?pre:1}
Source0: virtuoso-opensource-%{version}-%{pre}.tar.xz
%else
Source0: http://downloads.sourceforge.net/virtuoso/virtuoso-opensource-%{version}.tar.gz
%endif
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)

## Upstreamable patches
Patch52: virtuoso-opensource-6.1.0-nodemos_buildfix.patch
Patch53: virtuoso-opensource-6.1.4-no_strip.patch

## Upstream patches

BuildRequires: automake libtool
BuildRequires: bison
BuildRequires: flex
BuildRequires: gawk
BuildRequires: gperf
BuildRequires: pkgconfig
%if 0%{?fedora}
BuildRequires: htmldoc
%endif
# for netstat
BuildRequires: net-tools
## when/if we ever decide to build and ship .jar's
#BuildRequires: java-devel
BuildRequires: openldap-devel
BuildRequires: pkgconfig(openssl) /usr/bin/openssl
BuildRequires: pkgconfig(libiodbc)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(zlib)
BuildRequires: readline-devel

Provides: virtuoso = %{version}-%{release}

%if 0%{?_disable_all_vads:1}
Obsoletes: virtuoso-opensource-apps < %{version}-%{release} 
Obsoletes: virtuoso-opensource-conductor < %{version}-%{release} 
Obsoletes: virtuoso-opensource-doc < %{version}-%{release} 
%endif

%description
Virtuoso is a scalable cross-platform server that combines SQL/RDF/XML
Data Management with Web Application Server and Web Services Platform
functionality.

%package apps
Summary: Applications
Group:   Applications/Databases
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description apps 
%{summary}.

%package conductor
Summary: Server pages 
Group:   Applications/Databases
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
%description conductor 
%{summary}.

%package doc 
Summary: Documentation 
Group:   Documentation 
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
BuildArch: noarch
%description doc 
%{summary}.

%package utils
Summary: Utilities
Group:   Applications/Databases
Requires: %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
%description utils
%{summary}.


%prep
%setup -q -n virtuoso-opensource-%{version}

%if 0%{?_disable_all_vads:1}
%patch52 -p1 -b .nodemos_buildfix
%endif
%patch53 -p1 -b .no_strip

# required by both patch52/53
./autogen.sh

find -name "*.jar"
find -name "*.jar" -delete

# hack in links for --with-odbc below
# not sure this is better than our external_iodbc patch above
mkdir libiodbc
pushd libiodbc
ln -s %(pkg-config --variable includedir libiodbc) include
ln -s %(pkg-config --variable libdir libiodbc) lib
popd


%build
%configure \
  --with-layout=redhat \
  --enable-shared --disable-static \
  --without-internal-zlib \
  --with-iodbc=`pwd`/libiodbc \
  --enable-openssl \
  --disable-imagemagick \
  --disable-wbxml2 \
  %{?_disable_all_vads} 

make %{?_smp_mflags}


%install
rm -rf %{buildroot} 

make install DESTDIR=%{buildroot}

# silly that both binaries with internal vs. external libiodbc get built 
mv %{buildroot}%{_bindir}/virtuoso-iodbc-t %{buildroot}%{_bindir}/virtuoso-t

mkdir -p %{buildroot}%{_sysconfdir}/virtuoso \
         %{buildroot}%{_datadir}/virtuoso/vad \
         %{buildroot}%{_libdir}/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

# generic'ish binaries, hide them away safely
pushd %{buildroot}%{_bindir}
# make links to libexecdir relative, be warned ! -- rex
mkdir -p ../libexec/virtuoso/
mv %{buildroot}%{_bindir}/{inifile,isql,isql-iodbc,isqlw,isqlw-iodbc,odbc_mail,virt_mail} \
  ../libexec/virtuoso/
ln -s ../libexec/virtuoso/isql isql-vt
ln -s ../libexec/virtuoso//isql-iodbc isql-iodbc-vt
ln -s ../libexec/virtuoso/isqlw isqlw-vt
ln -s ../libexec/virtuoso/isqlw-iodbc isqlw-iodbc-vt
ln -s ../libexec/virtuoso/odbc_mail odbc_mail-vt
ln -s ../libexec/virtuoso/virt_mail virt_mail-vt
popd

## unpackaged files 
rm -vf %{buildroot}%{_libdir}/*.{la,a}
rm -vf %{buildroot}%{_libdir}/virtuoso/hosting/*.la
%if 0%{?_disable_all_vads:1}
rm -rvf %{buildroot}%{_docdir}/virtuoso/
rm -vf  %{buildroot}%{_libdir}/{hibernate,jdbc-?.?,jena}/*.jar
%endif
rm -rvf %{buildroot}%{_libdir}/sesame


%check
## these take a very long time
%{?_with_check:make check}


%clean
rm -rf %{buildroot} 


%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING CREDITS LICENSE
%doc README.UPGRADE
%dir %{_sysconfdir}/virtuoso/
%config(noreplace) %{_sysconfdir}/virtuoso/virtuoso.ini
%{_bindir}/virtuoso-t
%{_libdir}/virt*.so
%dir %{_datadir}/virtuoso/
%dir %{_datadir}/virtuoso/vad/
%dir %{_libdir}/virtuoso/
%dir %{_libexecdir}/virtuoso/
%dir %{_var}/lib/virtuoso
%{_var}/lib/virtuoso/db/

%if ! 0%{?_disable_all_vads:1}
%files apps
%defattr(-,root,root,-)
%{_libdir}/virtuoso/hosting/
%{_datadir}/virtuoso/vad/*.vad
%exclude %{_datadir}/virtuoso/vad/conductor_dav.vad

%files conductor
%defattr(-,root,root,-)
%{_datadir}/virtuoso/vad/conductor_dav.vad
%{_var}/lib/virtuoso/vsp/

%files doc
%defattr(-,root,root,-)
%{_docdir}/virtuoso/
%endif

%files utils
%defattr(-,root,root,-)
%{_bindir}/*-vt
%{_libexecdir}/virtuoso/*


%changelog
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1:6.1.6-6
- Mass rebuild 2014-01-24

* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1:6.1.6-5
- Mass rebuild 2013-12-27

* Tue May 28 2013 Lukáš Tinkl <ltinkl@redhat.com> - 1:6.1.6-4
- drop obsolete and unused (external iodbc) patch

* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:6.1.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Thu Aug 09 2012 Than Ngo <than@redhat.com> - 1:6.1.6-2
- add fedora/rhel condition

* Thu Aug 02 2012 Rex Dieter <rdieter@fedoraproject.org> 1:6.1.6-1
- 6.1.6 

* Tue Jul 24 2012 Rex Dieter <rdieter@fedoraproject.org> - 1:6.1.6-0.1.rc2
- 6.1.6-rc2 (20120724) snapshot

* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:6.1.5-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Tue Jul 17 2012 Rex Dieter <rdieter@fedoraproject.org> - 1:6.1.5-3
- BR: net-tools readline-devel
- update URL

* Mon Mar 19 2012 Rex Dieter <rdieter@fedoraproject.org> 1:6.1.5-2
- tarball respin

* Fri Mar 16 2012 Rex Dieter <rdieter@fedoraproject.org> 1:6.1.5-1
- 6.1.5

* Wed Jan 18 2012 Rex Dieter <rdieter@fedoraproject.org> 1:6.1.4-4
- make proper optimized build 
- -utils: include both normal and iodbc variants
- -utils: include -vt symlinks for compatiblity with opensuse packaging

* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:6.1.4-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Nov 02 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.4-2
- --disable-all-vads on ppc/ppc64 to workaround FTBFS (#725347)

* Tue Nov 01 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.4-1
- 6.1.4

* Tue Oct 11 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.3-3
- gawk4 patch (#744189)

* Tue Oct 11 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.3-2.1
- respin, enable 'make check'

* Wed Sep 14 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.3-2
- upstream patch to fix encoding errors (#728857, kde#271664)

* Fri Jul 08 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.3-1
- 6.1.3 (final)
- epoch++ (to allow upgrade from f15's 1:6.1.2-3)

* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.1.3-0.3.rc3.20110105
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Jan 13 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.3-0.2.rc3.20110105
- don't autogen.sh things by default

* Thu Jan 06 2011 Rex Dieter <rdieter@fedoraproject.org> 6.1.3-0.1.rc3.20110105
- virtuoso-opensource-6-20110105 snapshot

* Thu Oct 21 2010 Pierre-Yves Chibon <pingou@pingoured.fr> 6.1.2-2
- Enable creation subpackage -conductor
- Remove all .jar from sources before building

* Wed Jul 21 2010 Rex Dieter <rdieter@fedoraproject.org> 6.1.2-1
- virtuoso-opensource-6.1.2

* Mon May 10 2010 Rex Dieter <rdieter@fedoraproject.org> 6.1.1-1
- virtuoso-opensource-6.1.1
- Obsoletes: -doc

* Tue Feb 09 2010 Rex Dieter <rdieter@fedoraproject.org> 6.1.0-2
- fix Obsoletes: -apps,-conductor

* Thu Feb 04 2010 Rex Dieter <rdieter@fedoraproject.org> 6.1.0-1
- virtuoso-opensource-6.1.0
- build only what we need for nepomuk, Obsoletes: -apps,-conductor

* Sat Jan 09 2010 Rex Dieter <rdieter@fedoraproject.org> 6.0.0-1
- virtuoso-opensource-6.0.0

* Tue Oct 20 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.12-1
- virtuoso-opensource-5.0.12

* Sun Oct 11 2009 Rex Dieter <rdieter@fedoraproject.rog> 5.0.12-0.1.rc9.20090916
- virtuoso-opensource-20090916 (5.0.12-rc9)

* Wed Aug 26 2009 Tomas Mraz <tmraz@redhat.com> - 5.0.11-4
- rebuilt with new openssl

* Fri Jul 24 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.11-3
- BR: htmldoc
- -doc subpkg

* Sun Jun 07 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.11-2
- omit remaining .la files
- fix %%changelog
- fix virtuoso.ini dangling symlink

* Fri May 22 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.11-1
- virtuoso-opensource-5.0.11