Blame spec.in

Packit 8a864e
# Copyright (C) 2000 Matthias Clasen
Packit 8a864e
# See the file COPYING for copying permissions.
Packit 8a864e
Packit 8a864e
Summary: The OpenJade Group's SGML and XML parsing tools
Packit 8a864e
Name: @PACKAGE@
Packit 8a864e
Version: @VERSION@
Packit 8a864e
Release: 1
Packit 8a864e
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Packit 8a864e
License: GPL
Packit 8a864e
Group: Applications/Text
Packit 8a864e
Source: http://download.sourceforge.net/openjade/@PACKAGE@-@VERSION@.tar.gz
Packit 8a864e
URL: http://openjade.sourceforge.net/
Packit 8a864e
Requires: @PACKAGE@-lib
Packit 8a864e
Packit 8a864e
%description
Packit 8a864e
This package is a collection of SGML/XML tools called OpenSP. It is a fork from
Packit 8a864e
James Clark's SP suite. These tools are used to parse, validate, and normalize
Packit 8a864e
SGML and XML files.  
Packit 8a864e
     
Packit 8a864e
%package lib
Packit 8a864e
Summary: Runtime library for the OpenJade group's SP suite
Packit 8a864e
Group: System Environment/Libraries
Packit 8a864e
Packit 8a864e
%description lib 
Packit 8a864e
This is the SP suite's shared library runtime support.  This C++
Packit 8a864e
library contains entity management functions, parsing functions, and
Packit 8a864e
other functions useful for SGML/XML/DSSSL development.
Packit 8a864e
Packit 8a864e
%package devel
Packit 8a864e
Summary: Libraries and include files for developing OpenSP applications.
Packit 8a864e
Group: Development/Libraries
Packit 8a864e
Packit 8a864e
%description devel 
Packit 8a864e
This contains include files and libraries for OpenSP.
Packit 8a864e
This C++ library contains entity management functions, parsing functions,
Packit 8a864e
and other functions useful for SGML/XML/DSSSL development.
Packit 8a864e
Packit 8a864e
%prep
Packit 8a864e
# check that rpm is new enough to know internal macros like %{_prefix}
Packit 8a864e
rpmversion=`rpm -q --queryformat '%{RPMVERSION}' rpm | cut -d. -f1`
Packit 8a864e
[ ${rpmversion} -lt 3 ] && { echo "please update rpm" exit 1 ; }
Packit 8a864e
# unpack source .tar.gz package
Packit 8a864e
%setup
Packit 8a864e
Packit 8a864e
%build
Packit 8a864e
# configure build system according to rpm settings
Packit 8a864e
./configure --prefix=%{_prefix} --exec-prefix=%{_exec_prefix} --bindir=%{_bindir} --sbindir=%{_sbindir} --libexecdir=%{_libexecdir} --datadir=%{_datadir} --sysconfdir=%{_sysconfdir} --sharedstatedir=%{_sharedstatedir} --localstatedir=%{_localstatedir} --libdir=%{_libdir} --includedir=%{_includedir} --oldincludedir=%{_oldincludedir} --infodir=%{_infodir} --mandir=%{_mandir}
Packit 8a864e
# compile and link
Packit 8a864e
make CFLAGS="${RPM_OPT_FLAGS}"
Packit 8a864e
Packit 8a864e
%install
Packit 8a864e
# install all files
Packit 8a864e
make "DESTDIR=${RPM_BUILD_ROOT}" install
Packit 8a864e
Packit 8a864e
%clean
Packit 8a864e
test "$RPM_BUILD_ROOT" = "/" || rm -rf "$RPM_BUILD_ROOT"
Packit 8a864e
Packit 8a864e
%files
Packit 8a864e
%defattr(-, root, root)
Packit 8a864e
%{_bindir}/*
Packit 8a864e
%{_datadir}/@PACKAGE@/*
Packit 8a864e
%doc %{_datadir}/doc/@PACKAGE@/*
Packit 8a864e
%doc %{_mandir}/man1/*
Packit 8a864e
Packit 8a864e
%files lib
Packit 8a864e
%defattr(-, root, root)
Packit 8a864e
%{_libdir}/*.so.*
Packit 8a864e
%{_datadir}/locale/*/LC_MESSAGES/sp4.mo
Packit 8a864e
Packit 8a864e
%files devel
Packit 8a864e
%defattr(-, root, root)
Packit 8a864e
%{_libdir}/lib*.so
Packit 8a864e
%{_libdir}/lib*.a
Packit 8a864e
%{_libdir}/lib*.la
Packit 8a864e
%{_includedir}/@PACKAGE@/*
Packit 8a864e
Packit 8a864e
%changelog
Packit 8a864e
* Fri Aug 26 2005 Terje Bless <link@pobox.com>
Packit 8a864e
- Slightly tweak spec towards Fedora guidelines;
Packit 8a864e
  for Vendor, Packager, Copyright vs. License, and BuildRoot.
Packit 8a864e
Packit 8a864e
* Fri Apr 09 2004 Terje Bless <link@pobox.com>
Packit 8a864e
- Add man pages to the "files" section for OpenSP.
Packit 8a864e
- Use _datadir macro for doc files (Karl Eichwalder and Ville Skytta).
Packit 8a864e
- Tweak name of l10n files; they get the lib's major rev appended.
Packit 8a864e
Packit 8a864e
* Wed Feb 21 2001 Terje Bless <link@pobox.com>
Packit 8a864e
- Fixed name of l10n message files ("OpenSP" -> "sp").
Packit 8a864e
Packit 8a864e
* Tue Feb 20 2001 Terje Bless <link@pobox.com>
Packit 8a864e
- Tweaked strings, moved to Sourceforge.