Compare commits

...
Sign in to create a new pull request.

4 commits

Author SHA1 Message Date
Fedora Release Engineering
c586cc08f9 dist-git conversion 2010-07-29 14:57:01 +00:00
Bill Nottingham
b0297af75e Fix typo that causes a failure to update the common directory. (releng
#2781)
2009-11-26 01:13:04 +00:00
cec58d1737 Cleaned up spec file. 2009-09-30 08:58:58 +00:00
Jesse Keating
916eefab04 Initialize branch F-10 for vecmath1.2 2008-11-07 03:56:29 +00:00
3 changed files with 33 additions and 56 deletions

View file

View file

@ -1,21 +0,0 @@
# Makefile for source rpm: vecmath1.2
# $Id$
NAME := vecmath1.2
SPECFILE = $(firstword $(wildcard *.spec))
define find-makefile-common
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
endef
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ifeq ($(MAKEFILE_COMMON),)
# attept a checkout
define checkout-makefile-common
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
endef
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
endif
include $(MAKEFILE_COMMON)

View file

@ -1,13 +1,22 @@
Name: vecmath1.2
Version: 1.14
Release: 2%{?dist}
Release: 5%{?dist}
Summary: Free version of vecmath from the Java3D 1.2 specification
Group: System Environment/Libraries
License: MIT
URL: http://www.objectclub.jp/download/vecmath_e
Source0: http://www.objectclub.jp/download/files/vecmath//%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: java-javadoc java-gcj-compat-devel
BuildArch: noarch
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
Requires: jpackage-utils
Requires: java >= 1:1.6.0
# Necessary due to architecture change to noarch
Obsoletes: %{name} < %{version}-%{release}
%description
This is an unofficial implementation (java source code) of the javax.vecmath
@ -21,74 +30,63 @@ Generic matrices' LU and SV decomposition are also there.
%package javadoc
Group: Development/Libraries
Summary: Javadoc for %{name}
Requires: %{name} = %{version}-%{release}
# Necessary due to architecture change to noarch
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description javadoc
Javadoc for %{name}.
This package contains the API documentation for %{name}.
%prep
%setup -q
find -name *.jar -delete
find -name *.class -delete
%build
make -f Makefile.unix all docs
pushd classes
jar cf ../%{name}-%{version}.jar .
jar cf ../%{name}.jar .
popd
%install
rm -rf $RPM_BUILD_ROOT
# dirs
mkdir -p $RPM_BUILD_ROOT%{_javadir}
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
# jar
install -m 644 %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/vecmath.jar
install -D -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
# javadoc
cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# gcj
%{_bindir}/aot-compile-rpm
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%postun
if [ -x %{_bindir}/rebuild-gcj-db ]; then
%{_bindir}/rebuild-gcj-db
fi
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%files
%defattr(-,root,root,-)
%doc README CHANGES
%{_javadir}/vecmath*
%{_libdir}/gcj/%{name}
%{_javadir}/%{name}.jar
%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}
%{_javadocdir}/%{name}/
%changelog
* Mon Sep 28 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.14-5
- Modernized spec file to conform to Java guidelines.
- Removed clash with vecmath package.
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.14-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.14-2
- Autorebuild for GCC 4.3