forked from jtripath/maven-dependency-management-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
maven-dependency-management-extension.spec.tmpl
46 lines (37 loc) · 1.22 KB
/
maven-dependency-management-extension.spec.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
%global maven_dir %(basename /usr/share/java/apache-maven-* || echo "unknown")
Name: maven-dependency-management-extension
Version: $version
Release: $release
#if $epoch
Epoch: $epoch
#end if
License: ASL 2.0
Summary: Version convergence tool for use with Apache Maven 3.x
Group: Development/Build Tools
URL: https://github.com/jtripath/maven-dependency-management-extension
#set $i = 0
#for $artifact in $all_artifacts
Source$i: $artifact
#set $i += 1
#end for
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
Requires: java-devel maven3
BuildRequires: maven3
%description
This tool provides a means of standardizing the versions used in a project
build, using one or more external sources to supply those versions
%prep
%build
%install
rm -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_javadir}/%{maven_dir}/lib/ext/
%{__install} -p -m 644 %{_sourcedir}/${maven_info.artifact_id}-${maven_info.version}.jar %{buildroot}%{_javadir}/%{maven_dir}/lib/ext/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_javadir}/%{maven_dir}/lib/ext/${maven_info.artifact_id}-${maven_info.version}.jar
%changelog
* Fri Apr 12 2013 John Casey <[email protected]> - 1.0-1
- Initial build for 1.0-SNAPSHOT