virtuoso-opensource-vl.spec 5.7 KB

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