Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fa18486
commit bdcb4d8
Showing
17 changed files
with
189 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
LIBS += -liodata-qt5 | ||
|
||
QMAKE_EXTRA_COMPILERS += iodata_type_to_cxx iodata_type_to_h | ||
|
||
iodata_type_to_cxx.input = IODATA_TYPES | ||
iodata_type_to_cxx.output = iodata_${QMAKE_FILE_IN_BASE}.cpp | ||
iodata_type_to_cxx.variable_out = SOURCES | ||
iodata_type_to_cxx.commands = iodata-qt5-type-to-c++ ${QMAKE_FILE_IN} -o iodata_${QMAKE_FILE_IN_BASE}.cpp -d ${QMAKE_FILE_IN}.h | ||
|
||
iodata_type_to_h.input = IODATA_TYPES | ||
iodata_type_to_h.output = ${QMAKE_FILE_IN}.h | ||
iodata_type_to_h.variable_out = HEADERS | ||
iodata_type_to_h.commands = iodata-qt5-type-to-c++ ${QMAKE_FILE_IN} -o iodata_${QMAKE_FILE_IN_BASE}.cpp -d ${QMAKE_FILE_IN}.h | ||
|
||
# iodata-qt5-type-to-c++ ${QMAKE_FILE_IN} -d ${QMAKE_FILE_OUT} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
%define _name iodata-qt5 | ||
Name: libiodata-qt5 | ||
Version: 0.17 | ||
Release: 1 | ||
Summary: Library for input/ouput data | ||
Group: System/System Control | ||
License: LGPLv2 | ||
URL: http://meego.gitorious.org/meego-middleware/iodata | ||
Source0: %{_name}-%{version}.tar.bz2 | ||
|
||
BuildRequires: pkgconfig(Qt5Core) | ||
BuildRequires: bison | ||
BuildRequires: flex | ||
BuildRequires: libqmlog-qt5-devel | ||
|
||
%description | ||
This package provides a library for writing and reading structured data. | ||
|
||
%package devel | ||
Summary: Development package for %{name} | ||
Group: Development/Libraries | ||
Requires: pkgconfig(Qt5Core) | ||
Requires: %{name} = %{version}-%{release} | ||
|
||
%description devel | ||
Provides header files for iodata library. | ||
|
||
%package tests | ||
Summary: Testcases for iodata library | ||
Group: Development/System | ||
Requires: testrunner-lite | ||
|
||
%description tests | ||
%{summary}. | ||
|
||
%prep | ||
%setup -q -n %{_name}-%{version} | ||
|
||
%build | ||
export IODATA_VERSION=`head -n1 debian/changelog | sed "s/.*(\([^)+]*\).*/\1/"` | ||
%qmake | ||
make | ||
|
||
%install | ||
%qmake_install | ||
install -d %{buildroot}/%{_datadir}/%{name}-tests/ | ||
mv %{buildroot}/%{_datadir}/%{_name}-tests/tests.xml %{buildroot}/%{_datadir}/%{name}-tests/tests.xml | ||
|
||
%post -p /sbin/ldconfig | ||
|
||
%postun -p /sbin/ldconfig | ||
|
||
%files | ||
%defattr(-,root,root,-) | ||
%doc COPYING debian/changelog debian/copyright | ||
%{_libdir}/%{name}.so.* | ||
|
||
%files devel | ||
%defattr(-,root,root,-) | ||
%doc COPYING | ||
%{_bindir}/iodata-qt5-type-to-c++ | ||
%{_includedir}/iodata-qt5/* | ||
%{_libdir}/%{name}.so | ||
%{_datadir}/qt5/mkspecs/features/iodata-qt5.prf | ||
|
||
%files tests | ||
%defattr(-,root,root,-) | ||
%doc COPYING | ||
%{_bindir}/%{_name}-test | ||
%{_datadir}/%{name}-tests/tests.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
#include <QtGlobal> | ||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) | ||
#include <iodata-qt5/iodata.h> | ||
#else | ||
#include <iodata/iodata.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
#include <QtGlobal> | ||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) | ||
#include <iodata-qt5/storage.h> | ||
#else | ||
#include <iodata/storage.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
#include <QtGlobal> | ||
#if QT_VERSION >= QT_VERSION_CHECK(5, 0, 0) | ||
#include <iodata-qt5/validator.h> | ||
#else | ||
#include <iodata/validator.h> | ||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,23 @@ | ||
VERSION = $$(IODATA_VERSION) | ||
TEMPLATE = app | ||
QT -= Gui | ||
TARGET = iodata-test | ||
QT -= gui | ||
equals(QT_MAJOR_VERSION, 4): TARGET = iodata-test | ||
equals(QT_MAJOR_VERSION, 5): TARGET = iodata-qt5-test | ||
|
||
CONFIG += qmlog | ||
equals(QT_MAJOR_VERSION, 4): CONFIG += qmlog | ||
equals(QT_MAJOR_VERSION, 5): CONFIG += qmlog-qt5 | ||
|
||
INSTALLS = target tests | ||
|
||
LIBS += -liodata | ||
equals(QT_MAJOR_VERSION, 4): LIBS += -liodata | ||
equals(QT_MAJOR_VERSION, 5): LIBS += -liodata-qt5 | ||
QMAKE_LIBDIR_FLAGS += -L../src | ||
INCLUDEPATH += ../H | ||
|
||
SOURCES = iodata-test.cpp | ||
|
||
tests.path = /usr/share/iodata-tests | ||
equals(QT_MAJOR_VERSION, 4): tests.path = /usr/share/iodata-tests | ||
equals(QT_MAJOR_VERSION, 5): tests.path = /usr/share/iodata-qt5-tests | ||
tests.files = tests.xml | ||
|
||
target.path = /usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters