#
# spec file for package libfpx
#
# 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.
#


Name:           libfpx
Version:        1.3.1
Release:        10
Summary:        Flashpix OpenSource Toolkit
License:        Zlib
Group:          Development/Libraries/
Url:            http://www.imagemagick.org/
Source0:        ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/%{name}-%{version}-%{release}.tar.xz
Source1:        ftp://ftp.imagemagick.org/pub/ImageMagick/delegates/%{name}-%{version}-%{release}.tar.xz.asc
BuildRequires:  gcc-c++
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-build


%description
This package is the Flashpix OpenSource Toolkit and is based on source code
obtained from the Digital Imaging Group Inc and the Eastman Kodak Company.

%description -n %{name}
This package is the Flashpix OpenSource Toolkit and is based on source code
obtained from the Digital Imaging Group Inc and the Eastman Kodak Company.

%package devel
Summary:        Include Files and Libraries mandatory for Development
Group:          Development/Libraries/C and C++
Requires:       %{name} = %{version}

%description devel
This package is the Flashpix OpenSource Toolkit and is based on source code
obtained from the Digital Imaging Group Inc and the Eastman Kodak Company.

This package contains the static library and the header files.

%prep
%setup -q -n %{name}-%{version}-%{release}

%build
%configure \
    --disable-static


make %{?_smp_mflags}

%install
%make_install

%{__rm} -f  %{buildroot}/%{_libdir}/*.la 

%post -n %{name} -p /sbin/ldconfig

%postun -n %{name} -p /sbin/ldconfig

%files -n %{name}
%defattr(-,root,root)
%doc AUTHORS README ChangeLog NEWS
%{_libdir}/libfpx.so.*

%files devel
%defattr(-,root,root)
%{_includedir}/*.h
%doc %{_docdir}/%{name}
%{_libdir}/libfpx.so

%changelog
* Sat Jun 30 2018 holgerbruenjes@gmx.net
- update version 1.3.1-10

* Wed Oct 14 2015 holgerbruenjes@gmx.net
- first version 1.3.1-4