diff --git a/xhtml2fo-style-xsl.spec b/xhtml2fo-style-xsl.spec
index 351f43d..2991695 100644
--- a/xhtml2fo-style-xsl.spec
+++ b/xhtml2fo-style-xsl.spec
@@ -1,19 +1,17 @@
Name: xhtml2fo-style-xsl
Version: 20051222
-Release: 12%{?dist}
+Release: 13%{?dist}
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: xhtml1-dtds
+Requires: 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
@@ -24,7 +22,7 @@ With a XSL:FO processor you could create PDF versions of XHTML documents.
%prep
-%setup -q -c -n %{name}-%{version} -T -b 0
+%setup -c -q -n %{name}-%{version}
%__cp %{SOURCE1} .
%build
@@ -36,10 +34,6 @@ 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
@@ -65,6 +59,11 @@ fi
%changelog
+* Wed Jan 04 2017 Ondrej Vasik - 20051222-13
+- do not use Requires(pre) (#1319170)
+- fix the setup macro (#1285744)
+- drop unnecessary parts in the spec
+
* Fri Feb 05 2016 Fedora Release Engineering - 20051222-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild