File sablot.spec of Package sablot
#
# spec file for package sablot
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: sablot
BuildRequires: gcc-c++ libexpat-devel libtool
Version: 1.0.3
Release: 108
Provides: sablotron
Group: Productivity/Publishing/XML
License: GPL-2.0+
Url: http://www.gingerall.org/sablotron.html
Summary: XSL Processor
Source: Sablot-%{version}.tar.bz2
Patch0: %{name}-%{version}-newautoconf.diff
Patch1: %{name}-%{version}-gcc3.diff
Patch2: %{name}-%{version}-delete.diff
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Sablotron is an XSL processor fully implemented in C++. The excellent
Expat parser is used as the associated XML parser.
Authors:
--------
Tomas Kaiser <tom at gingerall.com>
Pavel Hlavnicka <pavel at gingerall.cz>
James Clark
%package devel
License: GPL-2.0+
Requires: %{name} = %{version} glibc-devel
Summary: Header Files and Libraries for Sablot Development
Group: Development/Libraries/C and C++
Provides: sablotd
Obsoletes: sablotd
%description devel
Header files and libraries needed for sablot development.
Authors:
--------
Tomas Kaiser <tom at gingerall.com>
Pavel Hlavnicka <pavel at gingerall.cz>
James Clark
%prep
%setup -q -n Sablot-%{version}
%patch0
%patch1
%patch2
%build
chmod 644 README
touch COPYING NEWS AUTHORS ChangeLog
autoreconf -fiv
%configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs}
%install
make install DESTDIR=$RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README
%{_bindir}/sabcmd
%{_libdir}/*.so.*
%{_mandir}/man1/*
%files devel
%defattr(-,root,root)
%attr(644,root,root) %{_includedir}/*
%{_libdir}/*.so
%{_bindir}/sablot-config
%clean
rm -rf $RPM_BUILD_ROOT
%changelog