virtuoso-opensource-vl.spec 6.3 KB

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