]> git.pld-linux.org Git - packages/3store.git/blobdiff - 3store.spec
- release 13 (by relup.sh)
[packages/3store.git] / 3store.spec
index c1fa06577ba6725a4291b9c543a939f8db3b78ad..395962f9eaa3037af9c93cae41bfc22a846ea7d3 100644 (file)
@@ -1,17 +1,30 @@
+#
+# Conditional build:
+%bcond_with    glib2           # use glib2 (default glib)
+#
 Summary:       3store RDF engine
-Summary(pl):   Silnik RDF 3store
+Summary(pl.UTF-8):     Silnik RDF 3store
 Name:          3store
 Version:       2.2.22
-Release:       1
+Release:       13
 License:       GPL v2+
 Group:         Libraries
 Source0:       http://dl.sourceforge.net/threestore/%{name}-%{version}.tar.gz
 # Source0-md5: 6fa70d2830c82eb030d8888f4da0c86c
+Patch0:                %{name}-ac.patch
+Patch1:                glib2.patch
+Patch2:                format-security.patch
 URL:           http://threestore.sourceforge.net/
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: flex
-BuildRequires: glib-devel
+%{!?with_glib2:BuildRequires:  glib-devel}
+%{?with_glib2:BuildRequires:   glib2-devel}
 BuildRequires: libraptor-devel >= 0.9.10
+BuildRequires: libtool
 BuildRequires: mysql-devel
+%{?with_glib2:BuildRequires:   pkgconfig}
+BuildRequires: readline-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -19,42 +32,53 @@ BuildRoot:  %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 GNU General Public Licence and funded by the AKT Consortium
 <http://www.aktors.org/>.
 
-%description -l pl
-3store to wysoce skalowalne triplestore RDF, udostêpnione na
+%description -l pl.UTF-8
+3store to wysoce skalowalne triplestore RDF, udostępnione na
 Powszechnej Licencji Publicznej GNU (GPL), sponsorowane przez AKT
 Consortium <http://www.aktors.org/>.
 
 %package devel
 Summary:       Header files for 3store library
-Summary(pl):   Pliki nag³ówkowe biblioteki 3store
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki 3store
 Group:         Development/Libraries
 Requires:      %{name} = %{version}-%{release}
-Requires:      glib-devel
+# for -lfl
+Requires:      flex
+%{!?with_glib2:Requires:       glib-devel}
+%{?with_glib2:Requires:        glib2-devel}
 Requires:      libraptor-devel >= 0.9.10
 Requires:      mysql-devel
 
 %description devel
 Header files for 3store library.
 
-%description devel -l pl
-Pliki nag³ówkowe biblioteki 3store.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki 3store.
 
 %package static
 Summary:       Static 3store library
-Summary(pl):   Statyczna biblioteka 3store
+Summary(pl.UTF-8):     Statyczna biblioteka 3store
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}-%{release}
 
 %description static
 Static 3store library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka 3store.
 
 %prep
 %setup -q
+%patch0 -p1
+%{?with_glib2:%patch1 -p1}
+%patch2 -p1
 
 %build
+%{__libtoolize}
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
 %configure
 %{__make}
 
@@ -75,7 +99,9 @@ rm -rf $RPM_BUILD_ROOT
 %doc AUTHORS ChangeLog README
 %attr(755,root,root) %{_bindir}/tstore_*
 %attr(755,root,root) %{_libdir}/librdfsql.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/librdfsql.so.0
 %attr(755,root,root) %{_libdir}/libokbc.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libokbc.so.0
 %{_datadir}/3store
 
 %files devel
This page took 1.397614 seconds and 4 git commands to generate.