File libharu.spec of Package libharu

#
# spec file for package libharu
#
# Copyright (c) 2013 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/
#


%define libname  libhpdf
%define filename libharu
%define fname    RELEASE_2_3_0RC2
Summary:        Cross platform library for generating PDF files
License:        Zlib
Group:          System/Libraries
Name:           %{filename}
Version:        2.3.0
Release:        0
Url:            http://libharu.org/
Source0:        https://github.com/libharu/libharu/archive/%{fname}.zip
Source1:        libharu.rpmlintrc
Patch1:         2.3include.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Prefix:         %{_prefix}
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bzip2
BuildRequires:  libpng-devel
BuildRequires:  libtool
BuildRequires:  unzip
BuildRequires:  zlib-devel

%description 
Cross platform open source library for generating PDF files

%package devel
Summary:        Development files for libharu
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}-%{release}
Requires:       libpng-devel
Requires:       zlib-devel

%description devel
Development headers and libraries for libharu

%prep
%setup -n %{filename}-%{fname}
%patch1 -p1

%build
autoreconf -fi
%configure 
make

%install
%makeinstall

%clean

%files 
%defattr(0755,root,root)
%{_libdir}/*-*.so
# usually that should not be packaged
%exclude %{_libdir}/*.la

%files devel
%defattr(0644,root,root)
%{_includedir}/*.h
%{_libdir}/*.a
%{_libdir}/%{libname}.so

%changelog
openSUSE Build Service is sponsored by