a850bf
Name:           apiguardian
a850bf
Summary:        API Guardian Java annotation
bd67af
Version:        1.1.0
57ead9
Release:        4%{?dist}
a850bf
License:        ASL 2.0
a850bf
bd67af
URL:            https://github.com/apiguardian-team/apiguardian
bd67af
Source0:        https://github.com/apiguardian-team/apiguardian/archive/r%{version}/%{name}-%{version}.tar.gz
a850bf
Source100:      https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom
a850bf
bd67af
BuildArch:      noarch
bd67af
a850bf
BuildRequires:  maven-local
a850bf
a850bf
%description
a850bf
API Guardian indicates the status of an API element and therefore its
a850bf
level of stability as well.  It is used to annotate public types,
a850bf
methods, constructors, and fields within a framework or application in
a850bf
order to publish their API status and level of stability and to
a850bf
indicate how they are intended to be used by consumers of the API.
a850bf
bd67af
bd67af
%package        javadoc
a850bf
Summary:        Javadoc for %{name}
a850bf
bd67af
%description    javadoc
a850bf
API documentation for %{name}.
a850bf
bd67af
a850bf
%prep
bd67af
%setup -q -n %{name}-r%{version}
bd67af
find -name "*.jar" -print -delete
bd67af
bd67af
cp -pav %{SOURCE100} pom.xml
a850bf
a850bf
# Inject OSGi manifest required by Eclipse
a850bf
%pom_xpath_inject pom:project "
a850bf
  <build>
a850bf
    <pluginManagement>
a850bf
      <plugins>
a850bf
        <plugin>
a850bf
          <artifactId>maven-jar-plugin</artifactId>
a850bf
          <configuration>
a850bf
            <archive>
a850bf
              <manifestEntries>
a850bf
                <Automatic-Module-Name>org.apiguardian.api</Automatic-Module-Name>
a850bf
                <Implementation-Title>apiguardian-api</Implementation-Title>
a850bf
                <Implementation-Vendor>apiguardian.org</Implementation-Vendor>
a850bf
                <Implementation-Version>%{version}</Implementation-Version>
a850bf
                <Specification-Title>apiguardian-api</Specification-Title>
a850bf
                <Specification-Vendor>apiguardian.org</Specification-Vendor>
a850bf
                <Specification-Version>%{version}</Specification-Version>
a850bf
                
a850bf
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
a850bf
                <Bundle-SymbolicName>org.apiguardian</Bundle-SymbolicName>
a850bf
                <Bundle-Version>%{version}</Bundle-Version>
a850bf
                <Export-Package>org.apiguardian.api;version=\"%{version}\"</Export-Package>
a850bf
              </manifestEntries>
a850bf
            </archive>
a850bf
          </configuration>
a850bf
        </plugin>
a850bf
      </plugins>
a850bf
    </pluginManagement>
a850bf
  </build>"
a850bf
a850bf
%build
a850bf
%mvn_build
a850bf
bd67af
a850bf
%install
a850bf
%mvn_install
a850bf
bd67af
a850bf
%files -f .mfiles
a850bf
%license LICENSE
a850bf
a850bf
%files javadoc -f .mfiles-javadoc
a850bf
%license LICENSE
a850bf
bd67af
a850bf
%changelog
57ead9
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.1.0-4
57ead9
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
57ead9
bd67af
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
bd67af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bd67af
bd67af
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
bd67af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
bd67af
bd67af
* Thu Jun 27 2019 Fabio Valentini <decathorpe@gmail.com> - 1.1.0-1
bd67af
- Update to version 1.1.0.
bd67af
bd67af
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
bd67af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bd67af
a850bf
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
a850bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
a850bf
a850bf
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
a850bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a850bf
a850bf
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
57ead9
- Initial packaging