From a088e07fe120b29473d800ec784d0fddae1acd4c Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Tue, 13 Dec 2005 19:14:36 +0000 Subject: [PATCH] auto-import opensp-1.5.1-1 on branch devel from opensp-1.5.1-1.src.rpm --- .cvsignore | 1 + opensp.spec | 112 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 114 insertions(+) create mode 100644 opensp.spec diff --git a/.cvsignore b/.cvsignore index e69de29..a77f861 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +OpenSP-1.5.1.tar.gz diff --git a/opensp.spec b/opensp.spec new file mode 100644 index 0000000..b19cbbf --- /dev/null +++ b/opensp.spec @@ -0,0 +1,112 @@ +Summary: SGML and XML parser +Name: opensp +Version: 1.5.1 +Release: 1 +Requires: sgml-common >= 0.5 +URL: http://openjade.sourceforge.net/ +Source: http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.gz +Patch0: opensp-1.5-gcc34.patch +License: Distributable +Group: Applications/Text +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root + +BuildRequires: xmlto, jadetex + +%description +OpenSP is an implementation of the ISO/IEC 8879:1986 standard SGML +(Standard Generalized Markup Language). OpenSP is based on James +Clark's SP implementation of SGML. OpenSP is a command-line +application and a set of components, including a generic API. + +%package devel +Summary: Files for developing applications that use OpenSP +Requires: %{name} = %{version}-%{release} +Group: Development/Libraries + +%description devel +Header files and libtool library for developing applications that use OpenSP. + + +%prep +%setup -q -n OpenSP-%{version} +%patch0 -p1 -b .gcc34 + +%build +%configure --disable-dependency-tracking --disable-static --enable-http \ + --enable-default-catalog=%{_sysconfdir}/sgml/catalog \ + --enable-default-search-path=%{_datadir}/sgml:%{_datadir}/xml +make %{?_smp_mflags} + + +%install +rm -rf $RPM_BUILD_ROOT + +make install DESTDIR=$RPM_BUILD_ROOT + +# Fix up libtool libraries +find $RPM_BUILD_ROOT -name '*.la' | \ + xargs perl -p -i -e "s|-L$RPM_BUILD_DIR[\w/.-]*||g" + +# oMy, othis ois osilly. +for file in nsgmls sgmlnorm spam spent sx ; do + ln -s o$file $RPM_BUILD_ROOT%{_bindir}/$file + echo ".so man1/o${file}.1" > $RPM_BUILD_ROOT%{_mandir}/man1/${file}.1 +done + +# +# Rename sx to sgml2xml. +mv $RPM_BUILD_ROOT%{_bindir}/sx $RPM_BUILD_ROOT%{_bindir}/sgml2xml +mv $RPM_BUILD_ROOT%{_mandir}/man1/{sx,sgml2xml}.1 + +# +# Clean out (installed) redundant copies of the docs and DTDs. +rm -rf $RPM_BUILD_ROOT%{_docdir}/OpenSP +rm -rf $RPM_BUILD_ROOT%{_datadir}/OpenSP + +%find_lang sp4 + + +%check +make check || : # failures as of 1.5.2pre1 :( + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files -f sp4.lang +%defattr(-,root,root) +%doc doc/*.htm +%doc releasenotes.html +%doc AUTHORS BUGS COPYING ChangeLog NEWS README +%doc pubtext/opensp-implied.dcl +%{_bindir}/* +%{_libdir}/libosp.so.* +%{_mandir}/man1/*.1* + +%files devel +%defattr(-,root,root) +%{_includedir}/OpenSP/ +%{_libdir}/libosp.so +%{_libdir}/libosp.la + + +%changelog +* Sun Dec 4 2005 Ville Skyttä - 1.5.2-0.1.pre1 +- Fix build dependencies. +- Require exact version of main package in -devel. +- Build with dependency tracking disabled. +- Add %%{_datadir}/xml to default search path. +- Run test suite during build. +- Add URL tag. +- Use %%find_lang. +- Cosmetic improvements. + +* Tue Nov 29 2005 Terje Bless 1.5.2-0.pre1 +- New package OpenSP. + diff --git a/sources b/sources index e69de29..d4716cf 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f46fe0a04b76a4454ec27b7fcc84ec54 OpenSP-1.5.1.tar.gz