source: projects/specs/trunk/v/virtuoso-opensource/virtuoso-opensource-vl.spec @ 8915

Revision 8915, 6.3 KB checked in by Takemikaduchi, 8 years ago (diff)

dash,liboil,libutempter,virtuoso-opensource,wavpack: new upstream release
others: rebuild

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