Blame SPECS/apiguardian.spec

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