LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File libqxt.spec of Package libqxt (Project home:mrs_kensington)

Name:           libqxt
Version:        0.6.2
Release:        1
Summary:	Qt extension library

Group:          System Environment/Libraries
License:        CPL or LGPLv2
URL:            http://www.libqxt.org/
Source0:        http://bitbucket.org/libqxt/libqxt/get/libqxt-v%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	avahi-compat-mDNSResponder-devel
BuildRequires:	libavahi-devel
BuildRequires:	libdb-4_8-devel
BuildRequires:	libopenssl-devel
BuildRequires:	libqt4-devel
BuildRequires:	chrpath

%description
LibQxt, an extension library for Qt, provides a suite of cross-platform
utility classes to add functionality not readily available in the Qt toolkit.

%package	devel
Summary:	Development files for %{name}
Group:		Development/Libraries
Requires:	%{name} = %{version}-%{release}
Requires:	avahi-compat-mDNSResponder-devel
Requires:	libavahi-devel
Requires:	libdb-4_8-devel
Requires:	libqt4-devel

%description	devel
This package contains libraries and header files for developing applications
that use LibQxt.


%prep
%setup -q


%build
./configure -verbose -prefix /usr -libdir %{_libdir} 
make %{?_smp_mflags}
make %{?_smp_mflags} docs


%install
rm -rf $RPM_BUILD_ROOT
make install INSTALL_ROOT=$RPM_BUILD_ROOT
#remove the rpath from the libs
chrpath --delete $RPM_BUILD_ROOT%{_libdir}/*.so* $RPM_BUILD_ROOT%{_libdir}/qt4/plugins/designer/*.so

# We are installing these to the proper location
rm -fr $RPM_BUILD_ROOT%{_prefix}/doc/

%clean
rm -rf $RPM_BUILD_ROOT


%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig


%files
%defattr(-,root,root,-)
%doc AUTHORS CHANGES *.txt LICENSE README
%{_libdir}/libQxt*.so*

%files devel
%defattr(-,root,root,-)
%doc examples/ doc/html/
%{_includedir}/Qxt*
%{_libdir}/qt4/plugins/designer/*.so
/usr/share/qt4/mkspecs/features/qxt*.prf

%changelog
* Fri Nov 25 2011 Michael Ditum <mike[at]mikeditum[dot]co[dot]uk> - 0.6.2-0
- Update to 0.6.2

* Sat Mar 12 2011 Michael Ditum <mike[at]mikeditum[dot]co[dot]uk> - 0.6.1-0
- Initial build