Group :: Text tools
RPM: soprano
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define beta %nil
Summary: Qt wrapper API to different RDF storage solutions
Name: soprano
Version: 2.2.3
Release: alt1
Group: Text tools
License: LGPLv2+
Url: http://sourceforge.net/projects/soprano
Requires: lib%name = %version-%release
Source0: http://downloads.sf.net/soprano/soprano-%version%{?beta}.tar.bz2
BuildRequires(pre): libqt4-devel >= 4.4
BuildRequires: cmake doxygen gcc-c++ graphviz libclucene-devel
BuildRequires: libredland-devel
%description
Soprano (formally known as QRDF) is a library which provides a nice Qt
interface to RDF storage solutions. It has a modular structure which
allows to replace the actual RDF storage implementation used.
%package -n lib%name
Summary: Soprano libraries
Group: System/Libraries
Requires: libqt4-core >= %{get_version libqt4-core}
%description -n lib%name
Soprano (formally known as QRDF) is a library which provides a nice Qt
interface to RDF storage solutions. It has a modular structure which
allows to replace the actual RDF storage implementation used.
%package -n lib%name-devel
Summary: Developer files for %name
Group: Development/KDE and QT
Requires: lib%name = %version-%release
Requires: libqt4-devel
%description -n lib%name-devel
Development files for the lib%name
%prep
%setup -q -n %name-%version%{?beta}
%build
%define _optlevel s
%add_optflags -DNDEBUG
%define lib_suffix %nil
%ifarch x86_64 ppc64
%define lib_suffix 64
%endif
mkdir -p %_target_platform
pushd %_target_platform
cmake .. \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_FLAGS_RELEASE:STRING='%optflags' \
-DCMAKE_CXX_FLAGS_RELEASE:STRING='%optflags' \
-DLIB_DESTINATION=%_lib \
-DLIB_SUFFIX=%lib_suffix
popd
%make_build -C %_target_platform VERBOSE=1
%install
#export LD_LIBRARY_PATH=%buildroot/%_libdir:$LD_LIBRARY_PATH
%make -C %_target_platform DESTDIR=%buildroot install
%files
%doc AUTHORS README TODO
%_bindir/sopranocmd
%_bindir/sopranod
%_bindir/onto2vocabularyclass
%_libdir/soprano/
%_datadir/soprano/
%files -n lib%name
%_libdir/lib*.so.*
%files -n lib%name-devel
%_libdir/lib*.so
%_libdir/pkgconfig/soprano.pc
%_includedir/soprano/
%_includedir/Soprano/
%_datadir/dbus-1/interfaces/*
%changelog
…
Full changelog you can see here
Summary: Qt wrapper API to different RDF storage solutions
Name: soprano
Version: 2.2.3
Release: alt1
Group: Text tools
License: LGPLv2+
Url: http://sourceforge.net/projects/soprano
Requires: lib%name = %version-%release
Source0: http://downloads.sf.net/soprano/soprano-%version%{?beta}.tar.bz2
BuildRequires(pre): libqt4-devel >= 4.4
BuildRequires: cmake doxygen gcc-c++ graphviz libclucene-devel
BuildRequires: libredland-devel
%description
Soprano (formally known as QRDF) is a library which provides a nice Qt
interface to RDF storage solutions. It has a modular structure which
allows to replace the actual RDF storage implementation used.
%package -n lib%name
Summary: Soprano libraries
Group: System/Libraries
Requires: libqt4-core >= %{get_version libqt4-core}
%description -n lib%name
Soprano (formally known as QRDF) is a library which provides a nice Qt
interface to RDF storage solutions. It has a modular structure which
allows to replace the actual RDF storage implementation used.
%package -n lib%name-devel
Summary: Developer files for %name
Group: Development/KDE and QT
Requires: lib%name = %version-%release
Requires: libqt4-devel
%description -n lib%name-devel
Development files for the lib%name
%prep
%setup -q -n %name-%version%{?beta}
%build
%define _optlevel s
%add_optflags -DNDEBUG
%define lib_suffix %nil
%ifarch x86_64 ppc64
%define lib_suffix 64
%endif
mkdir -p %_target_platform
pushd %_target_platform
cmake .. \
-DCMAKE_INSTALL_PREFIX=%prefix \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DCMAKE_C_FLAGS_RELEASE:STRING='%optflags' \
-DCMAKE_CXX_FLAGS_RELEASE:STRING='%optflags' \
-DLIB_DESTINATION=%_lib \
-DLIB_SUFFIX=%lib_suffix
popd
%make_build -C %_target_platform VERBOSE=1
%install
#export LD_LIBRARY_PATH=%buildroot/%_libdir:$LD_LIBRARY_PATH
%make -C %_target_platform DESTDIR=%buildroot install
%files
%doc AUTHORS README TODO
%_bindir/sopranocmd
%_bindir/sopranod
%_bindir/onto2vocabularyclass
%_libdir/soprano/
%_datadir/soprano/
%files -n lib%name
%_libdir/lib*.so.*
%files -n lib%name-devel
%_libdir/lib*.so
%_libdir/pkgconfig/soprano.pc
%_includedir/soprano/
%_includedir/Soprano/
%_datadir/dbus-1/interfaces/*
%changelog
…
Full changelog you can see here