Blame SPECS/apiguardian.spec

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