Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:wkazubski
qtserialport
qtserialport.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qtserialport.spec of Package qtserialport
# # spec file for package qtserialport # # Copyright (c) 2012 Wojciech Kazubski wk@ire.pw.edu.pl # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ Name: qtserialport Version: 0.0.20130119 Release: 12.1 Summary: Qt Serial Port Library License: LGPL-2.1 Url: http://qt-project.org/wiki/QtSerialPort %if 0%{?fedora_version} Group: System Environment/Libraries %endif %if 0%{?suse_version} Group: Development/Libraries/C and C++ %endif Source: %{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: libudev-devel %if 0%{?fedora_version} Patch0: qtplayground-qtserialport-qt-doc-location-fedora.patch BuildRequires: qt4-devel >= 4.7.0 BuildRequires: qt4-doc %endif %if 0%{?suse_version} Patch0: qtplayground-qtserialport-qt-doc-location.patch BuildRequires: libqt4-devel >= 4.7.0 %if 0%{?suse_version} <= 1500 BuildRequires: libqt4-devel-doc-data %endif %if 0%{?suse_version} >= 1100 BuildRequires: fdupes %endif %if 0%{?suse_version} == 1220 BuildRequires: libQtWebKit4 %endif %endif %description The QtSerialPort library contains classes for accesing serial ports in Qt. %package -n libSerialPort0 Summary: Shared library for QtSerialPort License: LGPL-2.1 Group: Development/Libraries/C and C++ Provides: %{name} = %{version} Obsoletes: %{name} < %{version} %description -n libSerialPort0 This package contains the shared library to run Qt applications using dseial ports. %package devel Summary: Include headers for QtSerialPort License: LGPL-2.1 %if 0%{?fedora_version} Group: Development/Libraries Requires: qt4-devel %endif %if 0%{?suse_version} Group: Development/Libraries/C and C++ Requires: libqt4-devel %endif Requires: %{name} = %{version} %if 0%{?suse_version} Recommends: %{name}-devel-doc Recommends: %{name}-examples %endif Obsoletes: qtserialport-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 QtSerialPort License: GPL-3.0 %if 0%{?fedora_version} Group: Documentation %endif %if 0%{?suse_version} Group: Development/Libraries/C and C++ %endif Requires: %{name}-devel = %{version} Obsoletes: qtserialport-examples < %{version} %description examples This package contains example programs demonstrating use of the serial port in Qt. %package devel-doc Summary: Development documentation for QtSerialPort License: FDL-1.3 %if 0%{?fedora_version} Group: Documentation %endif %if 0%{?suse_version} Group: Development/Libraries/C and C++ %endif BuildArch: noarch Requires: %{name}-devel = %{version} Obsoletes: qtserialport-devel-doc < %{version} %description devel-doc This package contains the development documentation of the QtSerialPort widgets as is it created by doxygen. %prep %setup -q -n qtplayground-%{name} %patch0 -p 1 -b .qt-doc-location %build mkdir build cd build %if 0%{?fedora_version} qmake-qt4 ../%{name}.pro %endif %if 0%{?suse_version} qmake ../%{name}.pro %endif make %{?_smp_mflags} # build documentation make docs %install cd build %makeinstall INSTALL_ROOT=%{buildroot} rm -rf %{buildroot}%{_libdir}/libSerialPort.prl # examples are not installed # so copy them manually for now mkdir -p %{buildroot}%{_docdir}/%{name} cd examples make clean cd .. cp -r examples %{buildroot}%{_docdir}/%{name} cd .. #move headers to standard location if needed %if 0%{?fedora_version} mv %{buildroot}%{_libdir}/qt4/include %{buildroot}%{_includedir} %endif #install documentation cp L* %{buildroot}%{_docdir}/%{name} cd doc cp -r html %{buildroot}%{_docdir}/%{name} %if 0%{?suse_version} >= 1100 %fdupes %{buildroot} %endif %if 0%{?fedora_version} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %{_libdir}/libSerialPort.so.* %{_docdir}/%{name}/LICENSE.LGPL %{_docdir}/%{name}/LGPL_EXCEPTION.txt %endif %if 0%{?suse_version} %post -n libSerialPort0 -p /sbin/ldconfig %postun -n libSerialPort0 -p /sbin/ldconfig %files -n libSerialPort0 %{_libdir}/libSerialPort.so.* %{_docdir}/%{name}/LICENSE.LGPL %{_docdir}/%{name}/LGPL_EXCEPTION.txt %endif %files devel %{_libdir}/libSerialPort.so %{_includedir}/QtAddOnSerialPort %if 0%{?suse_version} %{_datadir}/qt4/mkspecs/features/serialport.prf %endif %if 0%{?fedora_version} %{_libdir}/qt4/mkspecs/features/serialport.prf %endif %files examples %defattr(-,root,root) %{_docdir}/%{name}/examples %{_docdir}/%{name}/LICENSE.GPL %files devel-doc %dir %{_docdir}/%{name} %{_docdir}/%{name}/html %{_docdir}/%{name}/LICENSE.FDL %changelog
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