diff --git a/.cvsignore b/.cvsignore index e69de29..9ffd037 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +sample-xsl-xhtml2fo.zip diff --git a/AntennaHouse-COPYRIGHT b/AntennaHouse-COPYRIGHT new file mode 100644 index 0000000..db4cf6b --- /dev/null +++ b/AntennaHouse-COPYRIGHT @@ -0,0 +1,16 @@ + +From: Kobayashi +To: ismael@olea.org +Cc: hiraide@antenna.co.jp, mike@antennahouse.net +Subject: Re: FW: About licensing your xhtml2fo samples +Date: Wed, 15 Dec 2004 10:25:48 +0900 (02:25 CET) + +Hello, + +I have attached the updated sample-xsl-xhtml2fo-200201.zip. +The new Stylesheets contains copyright notice, you may distribute +it with the copyright notice portion. + +Best regards, + +Tokushige Kobayashi \ No newline at end of file diff --git a/import.log b/import.log new file mode 100644 index 0000000..5dc6b13 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +xhtml2fo-style-xsl-20051222-1:HEAD:xhtml2fo-style-xsl-20051222-1.src.rpm:1222603337 diff --git a/sources b/sources index e69de29..7759321 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +f1c436aa16bf3f040048d2f05f2ebcc7 sample-xsl-xhtml2fo.zip diff --git a/xhtml2fo-style-xsl.spec b/xhtml2fo-style-xsl.spec new file mode 100644 index 0000000..2f57970 --- /dev/null +++ b/xhtml2fo-style-xsl.spec @@ -0,0 +1,75 @@ +Name: xhtml2fo-style-xsl +Version: 20051222 +Release: 1 +Group: Applications/Text + +Summary: Antenna House, Inc. XHTML to XSL:FO stylesheets +License: Copyright only +URL: http://www.antennahouse.com/XSLsample/XSLsample.htm + +Requires(pre): xhtml1-dtds +Requires(pre): xml-common >= 0.6.3-8 +#Requires(post): libxml2 +#Requires(postun): libxml2 + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +Source0: http://www.antennahouse.com/XSLsample/sample-xsl-xhtml2fo.zip +Source1: AntennaHouse-COPYRIGHT + +%description +These XSL stylesheets allow you to transform any XHTML document to FO. +With a XSL:FO processor you could create PDF versions of XHTML documents. + + +%prep +%setup -q -c -n %{name}-%{version} -T -b 0 +%__cp %{SOURCE1} . +%build + + +%install +%__rm -Rf $RPM_BUILD_ROOT +%__mkdir -p $RPM_BUILD_ROOT +DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/xhtml1/xhtml2fo-stylesheets +%__mkdir -p $DESTDIR +%__cp *xsl $DESTDIR/ + +%clean +%__rm -Rf $RPM_BUILD_ROOT + + +%files +%defattr (-,root,root) +%doc AntennaHouse-COPYRIGHT +/usr/share/sgml/xhtml1/xhtml2fo-stylesheets + + +%post +CATALOG=%{_sysconfdir}/xml/catalog +%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \ + "http://www.antennahouse.com/XSLsample/sample-xsl-xhtml2fo/xhtml2fo.xsl" \ + "file:///usr/share/sgml/xhtml1/xhtml2fo-stylesheets/xhtml2fo.xsl" $CATALOG +%{_bindir}/xmlcatalog --noout --add "rewriteURI" \ + "http://www.antennahouse.com/XSLsample/sample-xsl-xhtml2fo/xhtml2fo.xsl" \ + "file:///usr/share/sgml/xhtml1/xhtml2fo-stylesheets/xhtml2fo.xsl" $CATALOG + +%postun +# remove entries only on removal of package +if [ "$1" = 0 ]; then + CATALOG=%{_sysconfdir}/xml/catalog + %{_bindir}/xmlcatalog --noout --del \ + "file://%{_datadir}/sgml/xhtml1/xhtml2fo-stylesheets/xhtml2fo.xsl" $CATALOG +fi + + +%changelog + +* Thu Jan 17 2008 Ismael Olea 20051222-1 +- updating to last version of sample-xsl-xhtml2fo.zip +- fixing spec for contributing to Fedora and rpmlinting with 0.82 + +* Mon Jan 10 2005 Ismael Olea 20050106-1 +- First version (based on docbook-xsl-stylesheets.spec by Tim Waugh. +