Last active
August 29, 2015 14:10
-
-
Save racooper/922fbd2f846688f484e6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Name: maven3 | |
Version: 3.2.3 | |
Release: 1%{?dist} | |
Summary: Java project management and project comprehension tool | |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | |
Group: Development/Tools | |
License: ASL 2.0 and MIT and BSD | |
URL: http://maven.apache.org/ | |
Source0: apache-maven-%{version}-bin.tar.gz | |
Source1: maven.sh | |
BuildArch: noarch | |
Requires: java >= 1:1.6.0 | |
Requires: java-devel >= 1:1.6.0 | |
Conflicts: maven | |
%description | |
Maven is a software project management and comprehension tool. Based on the | |
concept of a project object model (POM), Maven can manage a project's build, | |
reporting and documentation from a central piece of information. | |
This package is created from binaries provided by the Apache Maven Project for | |
org. No warranties or guarantees are implied. | |
%prep | |
%install | |
rm -rf $RPM_BUILD_ROOT | |
tar xfz apache-maven-%{version}-bin.tar.gz -C $RPM_BUILD_ROOT/usr/local | |
echo $'export M2_HOME=/usr/local/maven\nexport PATH=${M2_HOME}/bin:${PATH}' > $RPM_BUILD_ROOT/etc/profiles.d/maven.sh | |
ln -s $RPM_BUILD_ROOT/usr/local/apache-maven-%{version} $RPM_BUILD_ROOT/usr/local/maven | |
%post | |
%postun | |
%files | |
%doc LICENSE.txt NOTICE.txt README.txt | |
%attr(0755,root,root) /usr/local/maven/bin/mvn | |
attr(0755,root,root) /usr/local/maven/bin/mvnyjp | |
%attr(0755,root,root) /usr/local/maven/bin/mvnDebug | |
%attr(0644,root,root) /etc/profiles.d/maven.sh | |
%config(noreplace) /usr/local/maven/bin/m2.conf | |
%changelog | |
* Fri Nov 21 2014 User <user@org.edu> - 3.2.3-1 | |
- New package from binary 3.2.3 for CentOS 6 at org |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment