File npapi-sdk.spec of Package npapi-sdk

#
# spec file for package npapi-sdk
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2011 Wolfgang Rosenauer
#
# 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:           npapi-sdk
BuildRequires:  pkg-config
License:        MPL-1.1 or GPL-2.0+ or LGPL-2.1+
Version:        0.27
Release:        1
Summary:        Netscape Plugin API (NPAPI)
Url:            https://wiki.mozilla.org/NPAPI
Group:          System/Libraries
Source:         npapi-sdk-%{version}.tar.bz2
Source1:        npapi-sdk.pc.in
Provides:       npapi-devel
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package provides the header and development files to create
NPAPI browser plugins.

%prep
%setup -n npapi-sdk -q

%build

%install
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pkgconfig
mkdir -p $RPM_BUILD_ROOT%{_includedir}/npapi
cp headers/*.h $RPM_BUILD_ROOT%{_includedir}/npapi/
sed "s:%%VERSION%%:%{version}:g" \
  %{SOURCE1} > $RPM_BUILD_ROOT%{_datadir}/pkgconfig/npapi-sdk.pc

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_includedir}/npapi/
%{_datadir}/pkgconfig/*

%changelog
openSUSE Build Service is sponsored by