Name:       fix-info-plist-maven-plugin
Version:    1.2
Release:    1%{?dist}
Summary:    Fix Info.plist file generated by p2-maven-plugin during Tycho build

License:    EPL-1.0
URL:        https://github.com/buchen/fix-info-plist-maven-plugin

Source0:    https://github.com/buchen/fix-info-plist-maven-plugin/archive/1.2.tar.gz

BuildArch:  noarch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(com.googlecode.plist:dd-plist)
BuildRequires:  xz-devel

# maven requires generator will add Require for runtime dependency
#   on xz-devel and mvn(com.googlecode.plist:dd-plist)

%description
Small Maven plugin to "fix" the Info.plist file generated by p2 during a Tycho
product build. This Maven plugin manipulates the Info.plist between the
materialize-products and archive-products goals of the P2 Directory Tycho
plugin to provide a custom Info.plist file for Eclipse RCP product.

%package javadoc
Summary:  Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q

%pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId='dd-plist']/pom:version" "1.21"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%doc README.md
%license LICENSE

%changelog
* Tue Oct 16 2018 Salman Siddiqui <sasiddiq@redhat.com> - 1.2-1
- Initial packaging