%define pkgver 1_2_1 Name: jgoodies-forms Version: 1.2.1 Release: 3mamba Summary: Framework to lay out and implement elegant Swing panels in Java Group: Development/Libraries/Java Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://www.jgoodies.com/freeware/forms/ Source0: http://www.jgoodies.com/download/libraries/forms/forms-%{pkgver}.zip Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/com/jgoodies/forms/%{version}/forms-%{version}.pom Patch: jgoodies-forms-1.2.1-build.patch License: BSD BuildRequires: apache-ant BuildRequires: jgoodies-forms13 BuildRequires: jpackage-utils BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The JGoodies Forms framework helps you lay out and implement elegant Swing panels quickly and consistently. It makes simple things easy and the hard stuff possible, the good design easy and the bad difficult. Main Benefits: * Powerful, flexible and precise layout * Easy to work with and quite easy to learn * Faster UI production * Better UI code readability * Leads to better style guide compliance %package javadoc Summary: Javadoc documentation for %{name} Group: Documentation %description javadoc The JGoodies Forms framework helps you lay out and implement elegant Swing panels quickly and consistently. It makes simple things easy and the hard stuff possible, the good design easy and the bad difficult. This package contains the Javadoc documentation for JGoodies Forms. %prep %setup -q -n forms-%{version} #%patch0 -p1 rm forms-%{version}.jar rm -r docs/api %build export CLASSPATH="" ant compile jar javadoc %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" mkdir -p %{buildroot}%{_javadir} \ %{buildroot}%{_javadocdir}/jgoodies-forms-%{version} \ %{buildroot}%{_datadir}/maven2/poms install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/maven2/poms/JPP-jgoodies-forms.pom %add_to_maven_depmap com.jgoodies forms %{version} JPP jgoodies-forms install -p -m 644 build/forms.jar %{buildroot}%{_javadir}/jgoodies-forms-%{version}.jar ln -s jgoodies-forms-%{version}.jar %{buildroot}%{_javadir}/jgoodies-forms.jar cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/jgoodies-forms-%{version} for file in *.txt *.html docs/*.* docs/reference/* docs/tutorial/* \ src/tutorial/com/jgoodies/forms/tutorial/*.java \ src/tutorial/com/jgoodies/forms/tutorial/*/*.java do sed -i 's/\r//' $file done for file in docs/reference/*.html docs/tutorial/*.html do iconv --from=ISO-8859-1 --to=UTF-8 $file > $file.new sed -i 's/iso-8859-1/utf-8/' $file.new mv $file.new $file done cd %{buildroot}%{_javadocdir} ln -s jgoodies-forms-%{version} jgoodies-forms # FIXME gjc support #{_bindir}/aot-compile-rpm %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %files %defattr(-,root,root) %{_javadir}/jgoodies-forms-%{version}.jar %{_javadir}/jgoodies-forms.jar %{_datadir}/maven2/poms %{_mavendepmapfragdir} %doc RELEASE-NOTES.txt LICENSE.txt README.html docs src/tutorial %files javadoc %defattr(-,root,root) %{_javadocdir}/jgoodies-forms-%{version} %{_javadocdir}/jgoodies-forms %changelog * Mon Dec 29 2014 Automatic Build System 1.2.1-3mamba - automatic rebuild by autodist * Tue Oct 20 2009 gil 1.2.1-2mamba - rebuilt * Mon Jan 05 2009 gil 1.2.1-1mamba - package created by autospec