Install LICENSE file with javadoc package
- Add maven POM file - Update to current packaging guidelines - Convert versioned JAR to unversioned
This commit is contained in:
parent
3ba3e499ad
commit
0b277f9711
63
regexp.spec
63
regexp.spec
@ -28,25 +28,23 @@
|
||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
|
||||
%global full_name jakarta-%{name}
|
||||
%global full_name jakarta-%{name}
|
||||
|
||||
Name: regexp
|
||||
Version: 1.5
|
||||
Release: 8%{dist}
|
||||
Epoch: 0
|
||||
Summary: Simple regular expressions API
|
||||
License: ASL 2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://jakarta.apache.org/%{name}/
|
||||
Source0: http://www.apache.org/dist/jakarta/regexp/jakarta-regexp-%{version}.tar.gz
|
||||
BuildRequires: jpackage-utils >= 0:1.6
|
||||
Requires(pre): jpackage-utils >= 0:1.6
|
||||
Requires(postun): jpackage-utils >= 0:1.6
|
||||
Requires: java
|
||||
Name: regexp
|
||||
Version: 1.5
|
||||
Release: 9%{dist}
|
||||
Epoch: 0
|
||||
Summary: Simple regular expressions API
|
||||
License: ASL 2.0
|
||||
Group: Development/Libraries/Java
|
||||
Url: http://jakarta.apache.org/%{name}/
|
||||
Source0: http://www.apache.org/dist/jakarta/regexp/jakarta-regexp-%{version}.tar.gz
|
||||
Source1: http://repo.maven.apache.org/maven2/%{full_name}/%{full_name}/1.4/%{full_name}-1.4.pom
|
||||
BuildRequires: jpackage-utils >= 0:1.6
|
||||
Requires: java
|
||||
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Regexp is a 100% Pure Java Regular Expression package that was
|
||||
@ -57,8 +55,8 @@ It includes complete Javadoc documentation as well as a simple Applet
|
||||
for visual debugging and testing suite for compatibility.
|
||||
|
||||
%package javadoc
|
||||
Group: Development/Java
|
||||
Summary: Javadoc for %{name}
|
||||
Group: Development/Java
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
Javadoc for %{name}.
|
||||
@ -74,32 +72,37 @@ ant -Djakarta-site2.dir=. jar javadocs
|
||||
|
||||
|
||||
%install
|
||||
rm -rf %{buildroot}
|
||||
|
||||
# jars
|
||||
install -d -m 755 %{buildroot}%{_javadir}
|
||||
install -m 644 build/*.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||
install -m 644 build/*.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
# javadoc
|
||||
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||
%{__cp} -r docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
%{__rm} -rf docs/api
|
||||
cp -r docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||
|
||||
%clean
|
||||
rm -rf %{buildroot}
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
install -p -m 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%add_maven_depmap -a regexp:regexp
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{_javadir}/*.jar
|
||||
%{_javadir}/%{name}.jar
|
||||
%{_mavenpomdir}/JPP-%{name}.pom
|
||||
%{_mavendepmapfragdir}/%{name}
|
||||
|
||||
%files javadoc
|
||||
%defattr(-,root,root,-)
|
||||
%doc LICENSE
|
||||
%{_javadocdir}/%{name}-%{version}
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
||||
* Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-9
|
||||
- Install LICENSE file with javadoc package
|
||||
- Add maven POM file
|
||||
- Update to current packaging guidelines
|
||||
- Convert versioned JAR to unversioned
|
||||
|
||||
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-8
|
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user