|
发表于 2007-11-23 20:31:10
|
显示全部楼层
原帖由 nihui 于 2007-11-23 19:49 发表
我正在想办法弄 sopnaro ........
这个不必了,我在本机上我编译成功并打包了。。。
Name: soprano
Version: 1.97.1
Release: 1mgc
Summary: Soprano is a library which provides a QT wrapper API to different RDF storage solutions.
Group: Applications/Productivity
Group(zh_CN): 应用程序/生产力
License: LGPL
URL: http://sourceforge.net/project/showfiles.php?group_id=197043
Source: soprano-1.97.1-beta4.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot-%(%{__id_u} -n)
%description
Soprano is a library which provides a QT wrapper API to different RDF storage solutions. It features named graphs (contexts) and has a modular plug-in structure which allows to use RDF backends implemented with different RDF Storage.
%description -l zh_CN
Soprano是为Qt提供一组API函数解决不同的RDF存储方案。
%package devel
Summary: Soprano is a library which provides a QT wrapper API to different RDF storage solutions.
Group: Development/Libraries
Group(zh_CN): 开发/库
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
%description devel
Development files Soprano. Soprano is a library which provides a QT wrapper API to different RDF storage solutions. It features named graphs (contexts) and has a modular plug-in structure which allows to use RDF backends implemented with different RDF Storage.
%description devel -l zh_CN
Soprano是为Qt提供一组API函数解决不同的RDF存储方案。
%prep
%setup -q -n %{name}-%{version}-beta4
%build
rm -rf build_tmp
mkdir build_tmp
cd build_tmp
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export FFLAGS="%{optflags}"
%ifarch x86_64 ppc64
%define lib_suffix 64
%else
%define lib_suffix %{nil}
%endif
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DLIB_DESTINATION=lib%{lib_suffix} \
-DLIB_SUFFIX=%{lib_suffix} \
-DENABLE_INOTIFY:BOOL=ON -DENABLE_DBUS:BOOL=ON \
-DENABLE_LOG4CXX:BOOL=OFF ..
make VERBOSE=1 %{?_smp_mflags}
%install
rm -rf %{buildroot}
cd build_tmp
make DESTDIR=%{buildroot} install
%clean
rm -rf %{buildroot} %{_builddir}/%{buildsubdir}
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}
%{_datadir}
%{_libdir}/*.so*
%files devel
%defattr(-,root,root,-)
%{_includedir}
%{_libdir}/pkgconfig/
%changelog
[ 本帖最后由 haulm 于 2007-11-23 20:33 编辑 ] |
|