File qoauth.spec of Package qoauth

#
# spec file for package qoauth
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#

# norootforbuild


Name:           qoauth
Summary:        An attempt to support interaction with OAuth-powered network services
Version:        1.0.1
Release:        6
License:        LGPL
Url:            http://github.com/ayoy/qoauth
Source0:        qoauth-%{version}.tar.bz2
Group:          Development/Libraries/C and C++
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  libqca2-devel libqt4-devel
%define debug_package_requires libqoauth1 = %version-%release

%description
QOAuth is an attempt to support interaction with OAuth-powered network services
in a Qt way, i.e. simply, clearly and efficiently.

Authors:
--------
    Dominik Kapusta <d@ayoy.net>

%package -n libqoauth1
Summary:        An attempt to support interaction with OAuth-powered network services
Group:          Development/Libraries/C and C++
License:        LGPL

%description -n libqoauth1
QOAuth is an attempt to support interaction with OAuth-powered network services
in a Qt way, i.e. simply, clearly and efficiently.

Authors:
--------
    Dominik Kapusta <d@ayoy.net>

%package devel
Summary:        Development files for QOAuth
Group:          Development/Libraries/C and C++
License:        LGPL
Requires:       libqoauth1 = %{version}

%description devel
QOAuth is an attempt to support interaction with OAuth-powered network services
in a Qt way, i.e. simply, clearly and efficiently.

This package contains files for developing applications using QOAuth.

Authors:
--------
    Dominik Kapusta <d@ayoy.net>

%prep
%setup -q -n qoauth-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS"
qmake
make %{?jobs:-j %jobs}

%install
%{makeinstall} INSTALL_ROOT=%{buildroot}  

%clean
rm -rf %{buildroot}

%post -n libqoauth1 -p /sbin/ldconfig

%postun -n libqoauth1 -p /sbin/ldconfig

%files -n libqoauth1
%defattr(-,root,root)
%{_libdir}/libqoauth.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/QtOAuth
%{_libdir}/libqoauth.so
%{_libdir}/libqoauth.prl
%{_libdir}/pkgconfig/qoauth.pc
%{_datadir}/qt4/mkspecs/features/oauth.prf

%changelog
openSUSE Build Service is sponsored by