Name: glassfish-toplink-essentials Version: 2.0.46 Release: 17%{?dist} Summary: Glassfish JPA Toplink Essentials License: CDDL or GPLv2 with exceptions URL: http://glassfish.java.net/javaee5/persistence/ Source0: http://dlc.sun.com.edgesuite.net/javaee5/promoted/source/glassfish-persistence-v2-b46-src.zip # wget http://download.java.net/javaee5/v2.1.1_branch/promoted/source/glassfish-v2.1.1-b31g-src.zip # unzip glassfish-v2.1.1-b31g-src.zip # mkdir -p glassfish-bootstrap # mv glassfish/bootstrap/* glassfish-bootstrap # tar czf glassfish-bootstrap.tar.gz glassfish-bootstrap Source1: glassfish-bootstrap.tar.gz # fix javadoc build Patch0: glassfish-entity-persistence-build.patch Patch1: glassfish-persistence-2.0.41-jdk7.patch Patch2: glassfish-persistence-2.0.41-agent-remove-manifest-classpath.patch Patch3: glassfish-persistence-2.0.41-use_system_antlr.patch BuildRequires: java-devel BuildRequires: jpackage-utils BuildRequires: javapackages-local BuildRequires: ant BuildRequires: antlr-tool BuildRequires: geronimo-jta BuildRequires: geronimo-jpa Requires: antlr-tool Requires: geronimo-jpa Requires: geronimo-jta Requires: jpackage-utils BuildArch: noarch %description Glassfish Persistence Implementation. %package javadoc Summary: Javadoc for %{name} Implementation %description javadoc This package contains javadoc for %{name}. %prep %setup -q -c tar xzf %{SOURCE1} mv glassfish-bootstrap glassfish/bootstrap find . -name "*.class" -delete find . -name "*.jar" -delete %patch0 -b .sav0 %patch1 -b .sav1 %patch2 -b .sav2 %patch3 -b .sav3 sed -i -e 's/@VERSION@/%{version}/' glassfish/entity-persistence/toplink-essentials.pom sed -i -e 's/@VERSION@/%{version}/' glassfish/entity-persistence/toplink-essentials-agent.pom cd glassfish/bootstrap/legal for d in CDDLv1.0.txt LICENSE.txt COPYRIGHT 3RD-PARTY-LICENSE.txt ; do iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d sed -i 's/\r//' $d done %build pushd glassfish/entity-persistence export CLASSPATH=$(build-classpath geronimo-jpa) %ant -Djavaee.jar=$(build-classpath geronimo-jta) -Dglassfish.schemas.home=$PWD/../persistence-api/schemas all docs popd %install mkdir -p %{buildroot}%{_javadir}/glassfish install -m 644 publish/glassfish/lib/toplink-essentials.jar %{buildroot}%{_javadir}/%{name}.jar install -m 644 publish/glassfish/lib/toplink-essentials-agent.jar %{buildroot}%{_javadir}/%{name}-agent.jar mkdir -p %{buildroot}%{_mavenpomdir} install -pm 644 glassfish/entity-persistence/toplink-essentials.pom \ %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap JPP-%{name}.pom %{name}.jar install -pm 644 glassfish/entity-persistence/toplink-essentials-agent.pom \ %{buildroot}%{_mavenpomdir}/JPP-%{name}-agent.pom %add_maven_depmap JPP-%{name}-agent.pom %{name}-agent.jar mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr glassfish/entity-persistence/build/javadoc/* %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license glassfish/bootstrap/legal/* %files javadoc %{_javadocdir}/%{name} %license glassfish/bootstrap/legal/3RD-PARTY-LICENSE*.txt %license glassfish/bootstrap/legal/CDDL*.txt %license glassfish/bootstrap/legal/COPYRIGHT %license glassfish/bootstrap/legal/LICENSE.txt %changelog * Thu Jul 25 2019 Fedora Release Engineering - 2.0.46-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 2.0.46-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 2.0.46-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 2.0.46-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 2.0.46-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 2.0.46-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 2.0.46-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 2.0.46-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed Feb 04 2015 gil cattaneo 2.0.46-9 - introduce license macro * Sat Jun 07 2014 Fedora Release Engineering - 2.0.46-8 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Mar 28 2014 Michael Simacek - 2.0.46-7 - Use Requires: java-headless rebuild (#1067528) * Sat Aug 03 2013 Fedora Release Engineering - 2.0.46-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 2.0.46-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Jul 19 2012 Fedora Release Engineering - 2.0.46-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Thu Jun 28 2012 gil cattaneo 2.0.46-3 - moved in files in %%{_javadir} - fixed Url and source0 url * Thu Jun 28 2012 gil cattaneo 2.0.46-2 - change license tag * Thu May 24 2012 gil cattaneo 2.0.46-1 - update to 2.0.46 * Fri Apr 06 2012 gil cattaneo 2.0.41-1 - initial rpm