Blame SPECS/jboss-annotations-1.1-api.spec

ddbc76
%global namedreltag .20120212git76e1a2
ddbc76
%global namedversion %{version}%{?namedreltag}
ddbc76
ddbc76
Name: jboss-annotations-1.1-api
ddbc76
Version: 1.0.1
ddbc76
Release: 0.6%{namedreltag}%{dist}
ddbc76
Summary: Common Annotations 1.1 API
ddbc76
Group: Development/Libraries
ddbc76
License: CDDL or GPLv2 with exceptions
ddbc76
URL: http://www.jboss.org
ddbc76
ddbc76
# git clone git://github.com/jboss/jboss-annotations-api_spec.git jboss-annotations-1.1-api
ddbc76
# cd jboss-annotations-1.1-api
ddbc76
# git archive --format=tar --prefix=jboss-annotations-1.1-api-1.0.1/ 76e1a2c85e025342710a29cd9dfff109d730a483 | xz > jboss-annotations-1.1-api-1.0.1.20120212git76e1a2.tar.xz
ddbc76
Source0: %{name}-%{namedversion}.tar.xz
ddbc76
ddbc76
BuildRequires: java-devel
ddbc76
BuildRequires: jboss-specs-parent
ddbc76
BuildRequires: jpackage-utils
ddbc76
BuildRequires: maven-local
ddbc76
BuildRequires: maven-compiler-plugin
ddbc76
BuildRequires: maven-enforcer-plugin
ddbc76
BuildRequires: maven-install-plugin
ddbc76
BuildRequires: maven-jar-plugin
ddbc76
BuildRequires: maven-javadoc-plugin
ddbc76
ddbc76
Requires: jpackage-utils
ddbc76
Requires: java
ddbc76
BuildArch: noarch
ddbc76
ddbc76
ddbc76
%description
ddbc76
This package contains Common Annotations 1.1 API.
ddbc76
ddbc76
ddbc76
%package javadoc
ddbc76
Summary: Javadocs for %{name}
ddbc76
Group: Documentation
ddbc76
Requires: jpackage-utils
ddbc76
ddbc76
ddbc76
%description javadoc	
ddbc76
This package contains the API documentation for %{name}.
ddbc76
ddbc76
ddbc76
%prep
ddbc76
%setup -q -n %{name}-%{version}
ddbc76
ddbc76
ddbc76
%build
ddbc76
mvn-rpmbuild install javadoc:aggregate
ddbc76
ddbc76
ddbc76
%install
ddbc76
ddbc76
# Jar files:
ddbc76
install -d -m 755 %{buildroot}%{_javadir}
ddbc76
install -pm 644 target/jboss-annotations-api_1.1_spec-%{version}-SNAPSHOT.jar %{buildroot}%{_javadir}/%{name}.jar
ddbc76
ddbc76
# POM files:
ddbc76
install -d -m 755 %{buildroot}%{_mavenpomdir}
ddbc76
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
ddbc76
ddbc76
# Javadoc files:
ddbc76
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
ddbc76
cp -rp target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/.
ddbc76
ddbc76
# Dependencies map:
ddbc76
%add_maven_depmap JPP-%{name}.pom %{name}.jar
ddbc76
ddbc76
%files
ddbc76
%{_javadir}/*
ddbc76
%{_mavenpomdir}/*
ddbc76
%{_mavendepmapfragdir}/*
ddbc76
%doc LICENSE
ddbc76
%doc README
ddbc76
ddbc76
ddbc76
%files javadoc
ddbc76
%{_javadocdir}/%{name}
ddbc76
%doc LICENSE
ddbc76
%doc README
ddbc76
ddbc76
ddbc76
%changelog
ddbc76
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.0.1-0.6.20120212git76e1a2
ddbc76
- Mass rebuild 2013-12-27
ddbc76
ddbc76
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-0.5.20120212git76e1a2
ddbc76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ddbc76
ddbc76
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.0.1-0.4.20120212git76e1a2
ddbc76
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
ddbc76
- Replace maven BuildRequires with maven-local
ddbc76
ddbc76
* Tue Jul 24 2012 Juan Hernandez <juan.hernandez@redhat.com> - 1.0.1-0.3.20120212git76e1a2
ddbc76
- Added maven-enforcer-plugin build time dependency
ddbc76
ddbc76
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-0.2.20120212git76e1a2
ddbc76
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ddbc76
ddbc76
* Mon Mar 12 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.0.1-0.1.20120212git76e1a2
ddbc76
- Packaging after license cleanup upstream
ddbc76
ddbc76
* Wed Feb 22 2012 Juan Hernandez <juan.hernandez@redhat.com> 1.0.0-2
ddbc76
- Cleanup of the spec file
ddbc76
ddbc76
* Tue Jan 24 2012 Marek Goldmann <mgoldman@redhat.com> 1.0.0-1
ddbc76
- Initial packaging
ddbc76