[521] | 1 | |
---|
| 2 | # set to omit demos |
---|
| 3 | %define _disable_all_vads --disable-all-vads |
---|
| 4 | |
---|
| 5 | Name: virtuoso-opensource |
---|
| 6 | Version: 6.1.0 |
---|
[2605] | 7 | Release: 4%{?_dist_release} |
---|
[521] | 8 | Summary: A high-performance object-relational SQL database |
---|
| 9 | |
---|
| 10 | Group: Applications/Databases |
---|
| 11 | # see LICENSE for exception details |
---|
| 12 | License: GPLv2 with exceptions |
---|
| 13 | URL: http://virtuoso.sourceforge.net/ |
---|
| 14 | Source0: http://downloads.sourceforge.net/virtuoso/virtuoso-opensource-%{version}.tar.gz |
---|
| 15 | #Source0: ftp://download.openlinksw.com/support/vos/virtuoso-opensource-%{snap}.tar.gz |
---|
| 16 | BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) |
---|
| 17 | |
---|
| 18 | ## Upstreamable patches |
---|
| 19 | # fix build with ossl-1.0 |
---|
| 20 | Patch50: virtuoso-opensource-5.0.11-openssl.patch |
---|
| 21 | # based on http://svn.mandriva.com/cgi-bin/viewvc.cgi/packages/cooker/virtuoso-opensource/current/SOURCES/virtuoso-opensource-6.1.0-extern-iodbc.patch |
---|
| 22 | Patch51: virtuoso-opensource-6.1.0-external_iodbc.patch |
---|
| 23 | Patch52: virtuoso-opensource-6.1.0-nodemos_buildfix.patch |
---|
| 24 | |
---|
| 25 | BuildRequires: automake libtool |
---|
| 26 | BuildRequires: bison |
---|
| 27 | BuildRequires: flex |
---|
| 28 | BuildRequires: gperf |
---|
| 29 | #BuildRequires: htmldoc |
---|
| 30 | ## when/if we ever decide to ship .jar's |
---|
| 31 | #BuildRequires: java-devel |
---|
| 32 | BuildRequires: openldap-devel |
---|
| 33 | BuildRequires: openssl-devel |
---|
| 34 | BuildRequires: libiodbc-devel |
---|
| 35 | BuildRequires: libxml2-devel |
---|
| 36 | BuildRequires: zlib-devel |
---|
| 37 | |
---|
| 38 | Provides: virtuoso = %{version}-%{release} |
---|
| 39 | |
---|
| 40 | %if 0%{?_disable_all_vads:1} |
---|
| 41 | Obsoletes: virtuoso-opensource-apps < 6.1.0 |
---|
| 42 | Obsoletes: virtuoso-opensource-conductor < 6.1.0 |
---|
| 43 | %endif |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | %description |
---|
| 47 | Virtuoso is a scalable cross-platform server that combines SQL/RDF/XML |
---|
| 48 | Data Management with Web Application Server and Web Services Platform |
---|
| 49 | functionality. |
---|
| 50 | |
---|
| 51 | %package apps |
---|
| 52 | Summary: Applications |
---|
| 53 | Group: Applications/Databases |
---|
| 54 | Requires: %{name} = %{version}-%{release} |
---|
| 55 | %description apps |
---|
| 56 | %{summary}. |
---|
| 57 | |
---|
| 58 | %package conductor |
---|
| 59 | Summary: Server pages |
---|
| 60 | Group: Applications/Databases |
---|
| 61 | Requires: %{name} = %{version}-%{release} |
---|
| 62 | %if 0%{?fedora} > 9 |
---|
| 63 | BuildArch: noarch |
---|
| 64 | %endif |
---|
| 65 | %description conductor |
---|
| 66 | %{summary}. |
---|
| 67 | |
---|
| 68 | %package doc |
---|
| 69 | Summary: Documentation |
---|
| 70 | Group: Documentation |
---|
| 71 | Requires: %{name} = %{version}-%{release} |
---|
| 72 | %if 0%{?fedora} > 9 |
---|
| 73 | BuildArch: noarch |
---|
| 74 | %endif |
---|
| 75 | %description doc |
---|
| 76 | %{summary}. |
---|
| 77 | |
---|
| 78 | %package utils |
---|
| 79 | Summary: Utilities |
---|
| 80 | Group: Applications/Databases |
---|
| 81 | Requires: %{name} = %{version}-%{release} |
---|
| 82 | %description utils |
---|
| 83 | %{summary}. |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | %prep |
---|
| 87 | %setup -q -n virtuoso-opensource%{!?snap:-%{version}}%{?snap:-%{snap}} |
---|
| 88 | |
---|
| 89 | %patch50 -p1 -b .openssl |
---|
| 90 | %patch51 -p1 -b .external_iodbc |
---|
| 91 | %patch52 -p1 -b .nodemos_buildfix |
---|
| 92 | |
---|
| 93 | ./autogen.sh |
---|
| 94 | |
---|
| 95 | |
---|
| 96 | %build |
---|
| 97 | # --with-debug avoids useless -debuginfo |
---|
| 98 | %configure \ |
---|
| 99 | --with-layout=redhat \ |
---|
| 100 | --enable-shared --disable-static \ |
---|
| 101 | --without-internal-zlib \ |
---|
| 102 | --with-debug \ |
---|
| 103 | --with-iodbc \ |
---|
| 104 | --enable-openssl \ |
---|
| 105 | --disable-imagemagick \ |
---|
| 106 | %{?_disable_all_vads} |
---|
| 107 | |
---|
| 108 | make %{?_smp_mflags} |
---|
| 109 | |
---|
| 110 | |
---|
| 111 | %install |
---|
| 112 | rm -rf %{buildroot} |
---|
| 113 | |
---|
| 114 | make install DESTDIR=%{buildroot} |
---|
| 115 | |
---|
| 116 | # silly that both binaries with internal vs. external libiodbc get built |
---|
| 117 | mv %{buildroot}%{_bindir}/virtuoso-iodbc-t %{buildroot}%{_bindir}/virtuoso-t |
---|
| 118 | mv %{buildroot}%{_bindir}/isql-iodbc %{buildroot}%{_bindir}/isql |
---|
| 119 | mv %{buildroot}%{_bindir}/isqlw-iodbc %{buildroot}%{_bindir}/isqlw |
---|
| 120 | mv %{buildroot}%{_bindir}/odbc_mail %{buildroot}%{_bindir}/virt_mail |
---|
| 121 | |
---|
| 122 | mkdir -p %{buildroot}%{_sysconfdir}/virtuoso |
---|
| 123 | mv %{buildroot}%{_var}/lib/virtuoso/db/virtuoso.ini %{buildroot}%{_sysconfdir}/virtuoso/ |
---|
| 124 | ln -s ../../../..%{_sysconfdir}/virtuoso/virtuoso.ini %{buildroot}%{_var}/lib/virtuoso/db/virtuoso.ini |
---|
| 125 | |
---|
| 126 | # generic'ish binaries, hide them away safely |
---|
| 127 | mkdir -p %{buildroot}%{_libexecdir}/virtuoso/ |
---|
| 128 | mv %{buildroot}%{_bindir}/{inifile,isql,isqlw} \ |
---|
| 129 | %{buildroot}%{_libexecdir}/virtuoso/ |
---|
| 130 | |
---|
| 131 | ## unpackaged files |
---|
| 132 | # iodbc-ized version of virt_mail, meh. |
---|
| 133 | rm -vf %{buildroot}%{_bindir}/odbc_mail |
---|
| 134 | rm -vf %{buildroot}%{_libdir}/*.{la,a} |
---|
| 135 | rm -vf %{buildroot}%{_libdir}/virtuoso/hosting/*.la |
---|
| 136 | rm -vf %{buildroot}%{_libdir}/{jdbc-?.?,jena,sesame}/*.jar |
---|
| 137 | |
---|
| 138 | |
---|
| 139 | %check |
---|
| 140 | ## these take a very long time |
---|
| 141 | #make check |
---|
| 142 | |
---|
| 143 | |
---|
| 144 | %clean |
---|
| 145 | rm -rf %{buildroot} |
---|
| 146 | |
---|
| 147 | |
---|
| 148 | %files |
---|
| 149 | %defattr(-,root,root,-) |
---|
| 150 | %doc AUTHORS COPYING LICENSE |
---|
| 151 | %dir %{_sysconfdir}/virtuoso/ |
---|
| 152 | %config(noreplace) %{_sysconfdir}/virtuoso/virtuoso.ini |
---|
| 153 | %{_bindir}/virtuoso-t |
---|
| 154 | %{_libdir}/virt*.so |
---|
| 155 | %dir %{_datadir}/virtuoso/ |
---|
| 156 | %dir %{_datadir}/virtuoso/vad/ |
---|
| 157 | %dir %{_libdir}/virtuoso/ |
---|
| 158 | %dir %{_libexecdir}/virtuoso/ |
---|
| 159 | %dir %{_var}/lib/virtuoso |
---|
| 160 | %{_var}/lib/virtuoso/db/ |
---|
| 161 | |
---|
| 162 | %if ! 0%{?_disable_all_vads:1} |
---|
| 163 | %files apps |
---|
| 164 | %defattr(-,root,root,-) |
---|
| 165 | %{_libdir}/virtuoso/hosting/ |
---|
| 166 | %{_datadir}/virtuoso/vad/*.vad |
---|
| 167 | %exclude %{_datadir}/virtuoso/vad/conductor_dav.vad |
---|
| 168 | |
---|
| 169 | %files conductor |
---|
| 170 | %defattr(-,root,root,-) |
---|
| 171 | %{_datadir}/virtuoso/vad/conductor_dav.vad |
---|
| 172 | %{_var}/lib/virtuoso/vsp/ |
---|
| 173 | %endif |
---|
| 174 | |
---|
| 175 | %files doc |
---|
| 176 | %defattr(-,root,root,-) |
---|
| 177 | %{_docdir}/virtuoso/ |
---|
| 178 | |
---|
| 179 | %files utils |
---|
| 180 | %defattr(-,root,root,-) |
---|
| 181 | %{_bindir}/virt_mail |
---|
| 182 | %{_libexecdir}/virtuoso/* |
---|
| 183 | |
---|
| 184 | |
---|
| 185 | %changelog |
---|
[2605] | 186 | * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.1.0-4 |
---|
| 187 | - rebuild with openssl-1.0.0c |
---|
| 188 | |
---|
[521] | 189 | * Thu Feb 11 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 6.1.0-3 |
---|
| 190 | - initial build for Vine Linux |
---|
| 191 | |
---|
| 192 | * Tue Feb 09 2010 Rex Dieter <rdieter@fedoraproject.org> 6.1.0-2 |
---|
| 193 | - fix Obsoletes: -apps,-conductor |
---|
| 194 | |
---|
| 195 | * Thu Feb 04 2010 Rex Dieter <rdieter@fedoraproject.org> 6.1.0-1 |
---|
| 196 | - virtuoso-opensource-6.1.0 |
---|
| 197 | - build only what we need for nepomuk, Obsoletes: -apps,-conductor |
---|
| 198 | |
---|
| 199 | * Sat Jan 09 2010 Rex Dieter <rdieter@fedoraproject.org> 6.0.0-1 |
---|
| 200 | - virtuoso-opensource-6.0.0 |
---|
| 201 | |
---|
| 202 | * Tue Oct 20 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.12-1 |
---|
| 203 | - virtuoso-opensource-5.0.12 |
---|
| 204 | |
---|
| 205 | * Sun Oct 11 2009 Rex Dieter <rdieter@fedoraproject.rog> 5.0.12-0.1.rc9.20090916 |
---|
| 206 | - virtuoso-opensource-20090916 (5.0.12-rc9) |
---|
| 207 | |
---|
| 208 | * Wed Aug 26 2009 Tomas Mraz <tmraz@redhat.com> - 5.0.11-4 |
---|
| 209 | - rebuilt with new openssl |
---|
| 210 | |
---|
| 211 | * Fri Jul 24 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.11-3 |
---|
| 212 | - BR: htmldoc |
---|
| 213 | - -doc subpkg |
---|
| 214 | |
---|
| 215 | * Sun Jun 07 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.11-2 |
---|
| 216 | - omit remaining .la files |
---|
| 217 | - fix %%changelog |
---|
| 218 | - fix virtuoso.ini dangling symlink |
---|
| 219 | |
---|
| 220 | * Fri May 22 2009 Rex Dieter <rdieter@fedoraproject.org> 5.0.11-1 |
---|
| 221 | - virtuoso-opensource-5.0.11 |
---|
| 222 | |
---|