%global namedreltag .Final %global namedversion %{version}%{?namedreltag} Name: jdeparser Version: 1.0.0 Release: 1%{?dist} Summary: Source generator library for Java Group: Development/Libraries # See README.md License: CDDL and GPLv2 with exceptions URL: https://github.com/jdeparser/jdeparser # git clone git://github.com/jdeparser/jdeparser.git # cd jdeparser && git archive --format=tar --prefix=jdeparser-1.0.0.Final/ 1.0.0.Final | xz > jdeparser-1.0.0.Final.tar.xz Source0: jdeparser-%{namedversion}.tar.xz BuildArch: noarch Requires: java BuildRequires: maven-local %description This project is a fork of Sun's (now Oracle's) com.sun.codemodel project. We decided to fork the project because by all evidence, the upstream project is dead and not actively accepting outside contribution. All JBoss projects are urged to use this project instead for source code generation. %package javadoc Summary: Javadocs for %{name} Group: Documentation Requires: jpackage-utils %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n jdeparser-%{namedversion} %build %mvn_build %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc LICENSE-original.html %doc README.md %files javadoc -f .mfiles-javadoc %doc LICENSE-original.html %changelog * Wed May 29 2013 Marek Goldmann - 1.0.0-1 - Initial packaging