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

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