Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski
qwtpolar
qwtpolar.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qwtpolar.spec of Package qwtpolar
# # spec file for package qwtpolar # # norootforbuild Name: qwtpolar Version: 0.1.0 Release: 5 License: SUSE-QWT-1.0 Summary: Qwt/Qt Polar Plot Library Url: http://qwt.sourceforge.net/ Group: Development/Libraries/C and C++ Source: %{name}-%{version}.tar.bz2 Patch0: %{name}-%{version}-path.patch Patch1: %{name}-%{version}-linking.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: fdupes BuildRequires: doxygen BuildRequires: qwt-devel %if 0%{?suse_version} >= 1100 BuildRequires: fdupes %endif Requires: libqwtpolar0 = %{version} %description The QwtPolar library contains classes for displaying values on a polar coordinate system. It is an add-on package for the Qwt Library. %package -n libqwtpolar0 Summary: Shared library for Qwtpolar Widgets Group: Development/Libraries/C and C++ Provides: %{name} = %{version} Obsoletes: %{name} < %{version} %description -n libqwtpolar0 This package contains the shared library to run Technical Applications developed with/for QwtPolar. %package devel Summary: Include headers and Qt Designer plugin for QwtPolar Group: Development/Libraries/C and C++ Requires: %{name} = %{version} Requires: qwt-devel Recommends: %{name}-devel-doc Recommends: %{name}-devel-doc-pdf Recommends: %{name}-examples Obsoletes: libqwtpolar-devel < %{version} Provides: libqwtpolar-devel = %{version} %description devel This package contains the header files of Qwt and its Qt designer plugin in order to create Qt applications using the Qwt widgets. %package examples Summary: Example programs using QwtPolar Group: Development/Libraries/C and C++ Requires: %{name}-devel = %{version} Obsoletes: libqwtpolar-examples < %{version} Provides: libqwtpolar-examples = %{version} %description examples This package contains example programs demonstrating the Qwt widgets. %package designer Summary: Plugin for the Qt Interface designer Group: Development/Tools/IDE Requires: %{name}-devel = %{version} Requires: qwt-devel %description designer The %{name}-designer package contains the plugin for the Qt User Interface designer tool. %package devel-doc Summary: Development documentation for QwtPolar Group: Development/Libraries/C and C++ Requires: %{name}-devel = %{version} Obsoletes: libqwtpolar-devel-doc < %{version} Provides: libqwtpolar-devel-doc = %{version} %description devel-doc This package contains the development documentation of the QwtPolar widgets as is it created by doxygen. %prep %setup -q %patch0 -p1 -b .path %patch1 -p1 -b .linking # Make the Makefile verbose, set include- and lib paths, as well as the path for documentation sed -i "/silent/d" qwtpolar.pri sed -i "s\LIBPATH\ %{_libdir}\1" qwtpolar.pri sed -i "s\HEADERPATH\ %{_includedir}/%{name}0\1" qwtpolar.pri sed -i "s\DOCPATH\ %{_docdir}/%{name}-%{version}\1" qwtpolar.pri sed -i "s|/path/to/qwt-5.2/include|%{_includedir}/qwt5|" qwtpolar.pri sed -i "s|/path/to/qwt-5.2/lib|%{_libdir}|" qwtpolar.pri # Don't link pthread and rather use -O2 as linker optimization level # These two settings come from: # /usr/lib64/qt4/mkspecs/common/linux.conf # /usr/lib64/qt4/mkspecs/common/g++-multilib.conf sed -i "/qt/iQMAKE_LIBS_THREAD -= -lpthread" qwtpolar.pri sed -i "/qt/iQMAKE_LFLAGS_RELEASE ~= s\/-O1\/-O2" qwtpolar.pri chmod 644 COPYING %build qmake make %{?_smp_mflags} pushd doc doxygen Doxyfile popd %install %makeinstall INSTALL_ROOT=%{buildroot} # man mkdir -p %{buildroot}/%{_mandir} mv -v %{buildroot}/%{_docdir}/%{name}-%{version}/man/man3 %{buildroot}/%{_mandir}/ # this file conflicts with the one from qwt package rm %{buildroot}/%{_mandir}/man3/qwtlicense.3 # docu mkdir -p %{buildroot}/%{_docdir}/%{name}/devel-doc mv -v examples %{buildroot}%{_docdir}/%{name}/ mv -v %{buildroot}/%{_docdir}/%{name}-%{version}/html %{buildroot}/%{_docdir}/%{name}/devel-doc %if 0%{?suse_version} >= 1100 %fdupes %{buildroot} %endif %post -n libqwtpolar0 -p /sbin/ldconfig %postun -n libqwtpolar0 -p /sbin/ldconfig %clean rm -rf %{buildroot} %files -n libqwtpolar0 %defattr(-,root,root) %{_libdir}/libqwtpolar.so.* %doc COPYING CHANGES %files designer %defattr(-,root,root) %{_libdir}/qt4/plugins/designer/libqwt_polar_designer_plugin.so %files devel %defattr(-,root,root) %{_libdir}/libqwtpolar.so %{_includedir}/%{name}0 %{_mandir}/man3/* %files examples %defattr(-,root,root) %dir %{_docdir}/%{name} %{_docdir}/%{name}/examples %files devel-doc %defattr(-,root,root) %dir %{_docdir}/%{name} %{_docdir}/%{name}/devel-doc %changelog * Sat Nov 10 2012 Wojciech Kazubski wk@ire.pw.edu.pl - 0.1.0-5 - fixed some rpmlint warnings * Thu Jan 19 2012 Wojciech Kazubski wk@ire.pw.edu.pl - 0.1.0-4 - initial version 0.1.0, based on qwt specfile and qwtpolar specfile from Fedora
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor