Skip to content

Commit

Permalink
[libiodata] Add Qt4 OBS build files
Browse files Browse the repository at this point in the history
  • Loading branch information
Petri M. Gerdt committed Apr 22, 2013
1 parent 404a350 commit 711b6ed
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 0 deletions.
13 changes: 13 additions & 0 deletions rpm/libiodata.changes
@@ -0,0 +1,13 @@
* Fri Mar 04 2011 Tapio Rantala <ext-tapio.rantala@nokia.com> - 0.17-1
- New upstream version (FEA#5513)

* Fri Jan 21 2011 Tapio Rantala <ext-tapio.rantala@nokia.com> - 0.0.16-1
- New upstream version (BMC#10590)

* Wed Nov 24 2010 Tapio Rantala <ext-tapio.rantala@nokia.com> - 0.0.15-1
- New upstream version (BMC#10590)
- Drop linklibs patch, not needed anymore
- Conforms to upstream version 0.0.15-a

* Mon Aug 23 2010 Tapio Rantala <ext-tapio.rantala@nokia.com> - 0.0.13-1
- Initial meego packaging
69 changes: 69 additions & 0 deletions rpm/libiodata.spec
@@ -0,0 +1,69 @@
%define _name iodata
Name: libiodata
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(QtCore) >= 4.5
BuildRequires: bison
BuildRequires: flex

%description
This package provides a library for writing and reading structured data.

%package devel
Summary: Development package for %{name}
Group: Development/Libraries
Requires: pkgconfig(QtCore) >= 4.5
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-type-to-c++
%{_includedir}/iodata/*
%{_libdir}/%{name}.so
%{_datadir}/qt4/mkspecs/features/iodata.prf

%files tests
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/%{_name}-test
%{_datadir}/%{name}-tests/tests.xml

0 comments on commit 711b6ed

Please sign in to comment.