File gap-RSSKit.spec of Package gap-RSSKit

#
# spec file for package gap-RSSKit
#
# Copyright (c) 2014 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 _name RSSKit
%define _ver 0
%if "%_repository" == "SLE_11_SP1" || "%_repository" == "SLE_11_SP2"
%define make_install make install DESTDIR=%{?buildroot}
%endif

Name:           gap-RSSKit
Version:        0.4
Release:        0
License:        GPL-2.0
Summary:        RSSKit is a simple library for reading the different types of RSS file formats
Url:            http://gap.nongnu.org/grr/
Group:          System/Libraries
Source:         %{_name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Requires:       gnustep-base

BuildRequires:  gcc-objc
BuildRequires:  gnustep-make
BuildRequires:  gnustep-base-devel

%description
RSSKit is a simple library for reading the different types of
RSS file formats. It is mainly used by RSSReader.app and will
hopefully soon be used by PlopFolio by Ludovic Marcotte.

%package -n lib%{_name}0
Summary:        Shared libraries of RSSKit
Group:          System/Libraries

%description -n lib%{_name}0
This package contains shared libraries of RSSKit.

%package -n lib%{_name}-devel
Summary:        Development files
Group:          Development/Libraries/Other
Requires:       lib%{_name}0 == %{version}
Requires:       %{name} == %{version}
%if 0%{?suse_version}
Recommends: %{_name}-devel-docs == %{version}
%endif
Provides:       %{_name}-devel == %{version}

%description -n lib%{_name}-devel
This package contains development files of RSSKit

%package -n %{_name}-devel-docs
Summary:        Documentation for RSSKit
Group:          Documentation/HTML
#%if 0%{?suse_version} > 1100
#BuildArch:      noarch
#%endif

%description -n %{_name}-devel-docs
This package contains development documentation for RSSKit.

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

%build
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make %{?_smp_mflags}

%install
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
%make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
ln -sf GNUstep/Frameworks/%_name.framework/Versions/%_ver/lib%_name.so.%_ver %{buildroot}%{_libdir}/lib%_name.so.%_ver
ln -sf GNUstep/Frameworks/%_name.framework/Versions/%_ver/lib%_name.so.%{version} %{buildroot}%{_libdir}/lib%_name.so.%{version}
ln -sf Versions/%_ver/Resources %{buildroot}%{_libdir}/GNUstep/Frameworks/%_name.framework/
rm -rf Documentation/html/CVS

%post -n lib%{_name}0 -p /sbin/ldconfig

%postun -n lib%{_name}0 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INTRO README TODO
%{_libdir}/GNUstep
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/Headers
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/%_name
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/lib%_name.so
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/Current
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/lib%_name.so.*
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/Headers
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/%_name
%exclude %{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/lib%_name.so

%files -n lib%{_name}0
%defattr(-,root,root)
%_libdir/*.so.*
%{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/lib%_name.so.*

%files -n lib%{_name}-devel
%defattr(-,root,root)
%{_includedir}/%_name
%{_libdir}/lib%_name.so
%{_libdir}/GNUstep/Frameworks/%_name.framework/Headers
%{_libdir}/GNUstep/Frameworks/%_name.framework/%_name
%{_libdir}/GNUstep/Frameworks/%_name.framework/lib%_name.so
%{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/Current
%{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/Headers
%{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/%_name
%{_libdir}/GNUstep/Frameworks/%_name.framework/Versions/%_ver/lib%_name.so

%files -n %{_name}-devel-docs
%defattr(-,root,root)
%doc Documentation/html/*
openSUSE Build Service is sponsored by