Name: fm-plugin-latexmath Version: 0.0.4-SNAPSHOT Release: 1%{?dist} Summary: fm-plugin-latexmath Group: Development/Libraries License: GPLv2 URL: Source0: #FIXME BuildArch: noarch BuildRequires: jlatexmath BuildRequires: freemind-api Requires: jlatexmath Requires: freemind-api %description A jlatexmath plugin for freemind %package javadoc Group: Documentation Summary: Javadoc for %{name} Requires: jpackage-utils %description javadoc API documentation for %{name}. %prep %setup -q #You may need to update this according to your Source0 %build mvn-rpmbuild \ -e \ install javadoc:javadoc %install # jars install -d -m 0755 %{buildroot}%{_javadir} install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name} %add_to_maven_depmap net.sf.alxa.fm fm-plugin-latexmath %{version} JPP fm-plugin-latexmath # poms install -d -m 755 %{buildroot}%{_mavenpomdir} install -pm 644 pom.xml \ %{buildroot}%{_mavenpomdir}/JPP.%{name}.pom # javadoc install -d -m 0755 %{buildroot}%{_javadocdir}/%{name} cp -pr target/site/api*/* %{buildroot}%{_javadocdir}/%{name}/ rm -rf target/site/api* %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root,-) %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %defattr(-,root,root,-) %{_javadocdir}/%{name} %changelog #FIXME