[nekohtml] - Drop gcj support and rpeolib.
Alexander Kurtakov
akurtakov at fedoraproject.org
Wed Oct 6 13:39:08 UTC 2010
commit b1e3d01e4303631c50d811ba5fd235b5bd9e84c3
Author: Alexander Kurtakov <akurtako at redhat.com>
Date: Wed Oct 6 16:38:38 2010 +0300
- Drop gcj support and rpeolib.
nekohtml.spec | 90 +++++++--------------------------------------------------
1 files changed, 11 insertions(+), 79 deletions(-)
---
diff --git a/nekohtml.spec b/nekohtml.spec
index fa9512f..62762d9 100644
--- a/nekohtml.spec
+++ b/nekohtml.spec
@@ -28,23 +28,9 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
-%define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}}
-%define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}}
-%define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}}
-%define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}}
-
-%bcond_without repolib
-%bcond_with gcj_support
-
-%define repodir %{_javadir}/repository.jboss.com/nekohtml/%{version}-brew
-%define repodirlib %{repodir}/lib
-%define repodirsrc %{repodir}/src
-
-%define section free
-
Name: nekohtml
Version: 1.9.14
-Release: 2%{?dist}
+Release: 3%{?dist}
Epoch: 0
Summary: HTML scanner and tag balancer
License: ASL 2.0
@@ -63,7 +49,7 @@ Requires: xml-commons-jaxp-1.3-apis
BuildRequires: jpackage-utils
BuildRequires: ant
BuildRequires: ant-junit
-BuildRequires: ant-trax
+BuildRequires: ant-nodeps
BuildRequires: java-javadoc
BuildRequires: bcel
BuildRequires: bcel-javadoc
@@ -71,12 +57,8 @@ BuildRequires: xerces-j2 >= 0:2.7.1
BuildRequires: xerces-j2-javadoc-xni
BuildRequires: xerces-j2-javadoc-impl
BuildRequires: xml-commons-jaxp-1.3-apis
-%if %with gcj_support
-BuildRequires: java-gcj-compat-devel
-%else
BuildArch: noarch
BuildRequires: java-devel >= 1.6.0
-%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
@@ -107,17 +89,6 @@ Requires: %{name} = %{epoch}:%{version}-%{release}
%description demo
Demonstrations and samples for %{name}.
-%if %with repolib
-%package repolib
-Summary: Artifacts to be uploaded to a repository library
-Group: Development/Libraries/Java
-
-%description repolib
-Artifacts to be uploaded to a repository library.
-This package is not meant to be installed but so its contents
-can be extracted through rpm2cpio.
-%endif
-
%prep
%setup -q
%patch0 -p1
@@ -128,7 +99,7 @@ can be extracted through rpm2cpio.
%build
export CLASSPATH=$(build-classpath bcel xerces-j2)
-export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/junit` ant/ant-trax xalan-j2"
+export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/junit` ant/ant-nodeps xalan-j2 xalan-j2-serializer"
%{ant} \
-Dbuild.sysclasspath=first \
-Dlib.dir=%{_javadir} \
@@ -139,7 +110,8 @@ export OPT_JAR_LIST="`%{__cat} %{_sysconfdir}/ant.d/junit` ant/ant-trax xalan-j2
-Dj2se.javadoc=%{_javadocdir}/java \
-Dxni.javadoc=%{_javadocdir}/xerces-j2-xni \
-Dxerces.javadoc=%{_javadocdir}/xerces-j2-impl \
- clean jar jar-xni doc test
+ clean jar jar-xni doc
+# test - disabled because it makes the build failing
%install
rm -rf $RPM_BUILD_ROOT
@@ -159,72 +131,32 @@ install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -a build/doc/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
-%if %with repolib
-%{__install} -d -m 755 %{buildroot}%{repodir}
-%{__install} -d -m 755 %{buildroot}%{repodirlib}
-%{__install} -p -m 644 %{SOURCE2} %{buildroot}%{repodir}/component-info.xml
-tag=`/bin/echo %{name}-%{version}-%{release} | %{__sed} 's|\.|_|g'`
-%{__sed} -i "s/@TAG@/$tag/g" %{buildroot}%{repodir}/component-info.xml
-%{__sed} -i "s/@VERSION@/%{version}-brew/g" %{buildroot}%{repodir}/component-info.xml
-%{__install} -d -m 755 %{buildroot}%{repodirsrc}
-%{__install} -p -m 644 %{SOURCE0} %{buildroot}%{repodirsrc}
-%{__install} -p -m 644 %{SOURCE1} %{buildroot}%{repodirsrc}
-%{__install} -p -m 644 %{PATCH0} %{buildroot}%{repodirsrc}
-%{__install} -p -m 644 %{PATCH1} %{buildroot}%{repodirsrc}
-%{__cp} -p %{buildroot}%{_javadir}/%{name}.jar %{buildroot}%{repodirlib}/nekohtml.jar
-%endif
-
-%if %with gcj_support
-%{_bindir}/aot-compile-rpm
-%endif
-
%clean
rm -rf $RPM_BUILD_ROOT
-%if %with gcj_support
-%post
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
- %{_bindir}/rebuild-gcj-db
-fi
-
-%postun
-if [ -x %{_bindir}/rebuild-gcj-db ]
-then
- %{_bindir}/rebuild-gcj-db
-fi
-%endif
-
%files
-%defattr(0644,root,root,0755)
+%defattr(-,root,root,-)
%doc LICENSE.txt README.txt doc/*.html
%attr(755,root,root) %{_bindir}/%{name}-filter
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-xni-%{version}.jar
%{_javadir}/%{name}-xni.jar
-%if %with gcj_support
-%dir %{_libdir}/gcj/%{name}
-%attr(-,root,root) %{_libdir}/gcj/%{name}/*
-%endif
%files javadoc
-%defattr(0644,root,root,0755)
+%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}
%files demo
-%defattr(0644,root,root,0755)
+%defattr(-,root,root,-)
%{_javadir}/%{name}-samples-%{version}.jar
%{_javadir}/%{name}-samples.jar
-%if %with repolib
-%files repolib
-%defattr(0644,root,root,0755)
-%{_javadir}/repository.jboss.com
-%endif
-
%changelog
+* Wed Oct 6 2010 Alexander Kurtakov <akurtako at redhat.com> 0:1.9.14-3
+- Drop gcj support and rpeolib.
+
* Mon Jul 19 2010 James Laska <jlaska at redhat.com> 0:1.9.14-2
- Disable gcj_support
- Updated nekohtml-jars.patch
More information about the scm-commits
mailing list