- fixed xsltproc buildrequires and requires for other versions
- more consistent spec file OBS-URL: https://build.opensuse.org/package/show/Publishing/xmlto?expand=0&rev=22
This commit is contained in:
parent
f2be6df9af
commit
ef9953b2e7
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 6 07:21:10 UTC 2012 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
- fixed xsltproc buildrequires and requires for other versions
|
||||||
|
- more consistent spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 5 23:17:29 UTC 2012 - pascal.bleser@opensuse.org
|
Wed Dec 5 23:17:29 UTC 2012 - pascal.bleser@opensuse.org
|
||||||
|
|
||||||
|
29
xmlto.spec
29
xmlto.spec
@ -44,7 +44,6 @@ Patch5: xmlto-lynx-empty-file.patch
|
|||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: docbook-xsl-stylesheets
|
BuildRequires: docbook-xsl-stylesheets
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
BuildRequires: libxslt
|
|
||||||
BuildRequires: sgml-skel
|
BuildRequires: sgml-skel
|
||||||
|
|
||||||
%if %{dist_has_fdupes}
|
%if %{dist_has_fdupes}
|
||||||
@ -57,14 +56,20 @@ Requires: docbook_4
|
|||||||
%if 0%{?suse_version} > 1210
|
%if 0%{?suse_version} > 1210
|
||||||
Requires: libxslt-tools
|
Requires: libxslt-tools
|
||||||
BuildRequires: libxslt-tools
|
BuildRequires: libxslt-tools
|
||||||
%endif
|
%else
|
||||||
%if 0%{?suse_version} > 0 && 0%{?suse_version} < 1220
|
%if 0%{?suse_version} >= 1210
|
||||||
Requires: libxslt1
|
Requires: libxslt1
|
||||||
BuildRequires: libxslt1
|
BuildRequires: libxslt1
|
||||||
%endif
|
%else
|
||||||
%if 0%{?suse_version} < 1
|
%if 0%{?suse_version} > 0
|
||||||
|
Requires: libxslt
|
||||||
|
BuildRequires: libxslt
|
||||||
|
%else
|
||||||
|
BuildRequires: xsltproc
|
||||||
Requires: xsltproc
|
Requires: xsltproc
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
# For full functionality, we need passivetex.
|
# For full functionality, we need passivetex.
|
||||||
Recommends: texlive-xmltex >= 2007
|
Recommends: texlive-xmltex >= 2007
|
||||||
|
|
||||||
@ -83,6 +88,12 @@ for print output it makes use of passivetex.
|
|||||||
cp %{SOURCE10} README.SuSE
|
cp %{SOURCE10} README.SuSE
|
||||||
rm -f xmlif/xmlif.c
|
rm -f xmlif/xmlif.c
|
||||||
|
|
||||||
|
# make sure the buildrequires pulled in xsltproc
|
||||||
|
test -x /usr/bin/xsltproc || {
|
||||||
|
echo "ERROR: buildrequires didn't install xsltproc" >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure
|
%configure
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
@ -92,7 +103,7 @@ make check
|
|||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
! mkdir %{buildroot}%{_datadir}/xmlto/xsl
|
%__install -d %{buildroot}%{_datadir}/xmlto/xsl
|
||||||
%if %{dist_has_fdupes}
|
%if %{dist_has_fdupes}
|
||||||
%{fdupes '%{buildroot}%{_datadir}/xmlto'}
|
%{fdupes '%{buildroot}%{_datadir}/xmlto'}
|
||||||
%endif
|
%endif
|
||||||
@ -102,8 +113,10 @@ make check
|
|||||||
%doc README.SuSE
|
%doc README.SuSE
|
||||||
%doc COPYING
|
%doc COPYING
|
||||||
%doc AUTHORS README ChangeLog FAQ THANKS NEWS
|
%doc AUTHORS README ChangeLog FAQ THANKS NEWS
|
||||||
%{_bindir}/*
|
%{_bindir}/xmlto
|
||||||
%{_mandir}/*/*
|
%{_bindir}/xmlif
|
||||||
|
%doc %{_mandir}/man1/xmlto.1*
|
||||||
|
%doc %{_mandir}/man1/xmlif.1*
|
||||||
%{_datadir}/xmlto
|
%{_datadir}/xmlto
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user