Blob Blame History Raw
%global namedreltag .Beta1
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jsp-2.3-api
Version:          1.0.0
Release:          0.3%{namedreltag}%{dist}
Summary:          JavaServer Pages 2.3 API (JSP)
License:          (CDDL or GPLv2 with exceptions) or ASL 2.0
URL:              https://github.com/jboss/jboss-jsp-api_spec
Source0:          https://github.com/jboss/jboss-jsp-api_spec/archive/jboss-jsp-api_2.3_spec-%{namedversion}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:    jboss-parent
BuildRequires:    maven-local
BuildRequires:    jboss-el-3.0-api
BuildRequires:    jboss-servlet-3.1-api

BuildArch:        noarch

%description
JSR-000245: JavaServer Pages 2.3

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jsp-api_spec-jboss-jsp-api_2.3_spec-%{namedversion}

cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%dir %{_javadir}/%{name}
%doc LICENSE README LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE README LICENSE-2.0.txt

%changelog
* Fri Dec 13 2013 Marek Goldmann <mgoldman@redhat.com> - 1.0.0-0.3.Beta1
- Removed the API dir
- Removed provides

* Fri Dec 13 2013 Marek Goldmann <mgoldman@redhat.com> - 1.0.0-0.2.Beta1
- Fixed license tag
- Added provides for API
- Cleaned up BR
- Added ASL 2.0 license

* Thu Dec 12 2013 Marek Goldmann <mgoldman@redhat.com> - 1.0.0-0.1.Beta1
- Initial packaging