File colorblind.spec of Package colorblind

#
# spec file for package colorblind
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
#
# 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/
#


Name:           colorblind
Version:        0.0.1
Release:        0
Summary:        Pixel Filter for colorblind accessibility
License:        SUSE-Public-Domain
Group:          Development/Languages/C and C++
Url:            https://alioth.debian.org/projects/colorblind/
Source:         %{name}-%{version}.tar.bz2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This library provides an unified way to recalculate colors
in order to present alternative views on images for colorblind
people.


%package -n libcolorblind0
Summary:        Pixel Filter for colorblind accessibility
Group:          System/Libraries

%description -n libcolorblind0
This library provides an unified way to recalculate colors
in order to present alternative views on images for colorblind
people.

%package devel
Summary:        Pixel Filter for colorblind accessibility - Development Files
Group:          Development/Languages/C and C++
Requires:       libcolorblind0 = %{version}

%description devel
This library provides an unified way to recalculate colors
in order to present alternative views on images for colorblind
people.

%prep
%setup -q

%build
%configure \
        --disable-static
make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot} -type f -name '*.la' -delete

%post -n libcolorblind0 -p /sbin/ldconfig

%postun -n libcolorblind0 -p /sbin/ldconfig

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

%files devel
%defattr(-,root,root)
%{_includedir}/colorblind.h
%{_libdir}/libcolorblind.so

%changelog
openSUSE Build Service is sponsored by