LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File Quarter.spec of Package Quarter (Project home:mayerjosua:Finroc)

# norootforbuild

Name:       	Quarter
Version:    	1.0.0
Release:    	0
Summary:    	A library which provides the glue between Coin and Qt
Group:      	System/Libraries
License:    	BSD-3-Clause
URL:        	http://www.coin3d.org/lib/quarter
Source0:     	%{name}-%{version}.tar.xz
Patch0:    	Quarter-printfix.patch
Patch1:         dont-use-sbbytebuffer.patch
Patch2:         use-q_slots-macro.patch
BuildRoot:  	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:  gcc-c++
BuildRequires:  Coin-devel
BuildRequires:  doxygen
BuildRequires:  libqt4-devel

%description
Quarter is a light-weight glue library that provides seamless integration 
between Kongsberg SIM's Coin high-level 3D visualization library and Nokia's 
Qt 2D user interface library. 

Qt and Coin is a perfect match since they are both open source, widely
portable and easy to use. Quarter has evolved from Kongsberg SIM's
own experiences using Coin and Qt together in our applications.

The functionality in Quarter revolves around QuarterWidget, a subclass
of QGLWidget. This widget provides functionality for rendering of Coin
scenegraphs and translation of QEvents into SoEvents. Using this
widget is as easy as using any other QWidget.

Quarter also comes with a plugin for Qt Designer, QtSoftware's tool for
designing and building GUIs. Once you install Quarter, the
QuarterWidget becomes accessible in Qt Designer, and you can include
it in the user interfaces you create. The plugin facility also
provides you with the capability of dynamically loading ui files
containing a QuarterWidget in your application.

By using Coin, Qt and Quarter to build your 3D graphics applications,
you have the power to write software that is portable across the whole
range of UNIX, Linux, Microsoft Windows and Mac OS X operating
systems, from a 100% common codebase.

%package devel
Summary: 	Development files for Quarter
Group:  	Development/Libraries/C and C++
Requires: 	%{name} = %{version}
Requires: 	libQuarter
Requires: 	Mesa-devel
Requires: 	libqt4-devel
Requires: 	Coin-devel

%description devel
Quarter is a light-weight glue library that provides seamless integration 
between Kongsberg SIM's Coin high-level 3D visualization library and Nokia's 
Qt 2D user interface library. 

%package doc
Summary:    	Quarter is a library which provides the glue between Coin and Qt
Group:		Documentation/HTML
Requires: 	%name = %version

%description doc
Quarter is a light-weight glue library that provides seamless integration 
between Kongsberg SIM's Coin high-level 3D visualization library and Nokia's 
Qt 2D user interface library. 

%package -n libQuarter
Summary:     	Quarter is a library which provides the glue between Coin and Qt
Group:		System/Libraries
Provides:	Quarter >= %version
Obsoletes:	Quarter < %version

%description -n libQuarter
Quarter is a light-weight glue library that provides seamless integration 
between Kongsberg SIM's Coin high-level 3D visualization library and Nokia's 
Qt 2D user interface library. 


%prep
%setup -q -n Quarter-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build

%configure \
        --disable-msvc \
        --enable-html \
        --enable-exceptions \
        --with-x \
        htmldir=%{_defaultdocdir}/quarter/html \
        htmlhelpdir=%{_defaultdocdir}/quarter/htmlhelp

%__make %{?jobs:-j%jobs}

%install
%makeinstall


%clean
rm -rf $RPM_BUILD_ROOT

%post -n libQuarter -p /sbin/ldconfig 

%postun -n libQuarter -p /sbin/ldconfig 


%files -n libQuarter
%defattr(-,root,root,0755)
%{_libdir}/libQuarter.so.*
%{_libdir}/qt4/plugins/designer/libQuarterWidgetPlugin.so.*

%files doc
%defattr(-,root,root,0755)
%doc AUTHORS COPYING INSTALL NEWS README
%{_defaultdocdir}/quarter/


%files devel
%defattr(-,root,root,0755)
%{_includedir}/Quarter/
%{_libdir}/libQuarter.so
%{_libdir}/libQuarter.la
%{_libdir}/pkgconfig/Quarter.pc
%{_libdir}/qt4/plugins/designer/libQuarterWidgetPlugin.so
%{_libdir}/qt4/plugins/designer/libQuarterWidgetPlugin.la

%changelog