100 lines
2.5 KiB
RPMSpec
100 lines
2.5 KiB
RPMSpec
Name: java-sac
|
|
Version: 1.3
|
|
Release: 3mamba
|
|
Summary: The Simple API for CSS
|
|
Group: System/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.w3.org/Style/CSS/SAC/
|
|
Source0: http://www.w3.org/2002/06/sacjava-%{version}.zip
|
|
Source1: java-sac-%{version}-build.xml
|
|
Source2: http://repository.jboss.com/maven2/org/w3c/css/sac/%{version}/sac-%{version}.pom
|
|
Source3: java-sac-%{version}-BUNDLE-MANIFEST.MF
|
|
License: W3C
|
|
BuildRequires: apache-ant
|
|
BuildRequires: jpackage-utils
|
|
Requires: jpackage-utils
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
%description
|
|
SAC is a standard interface for CSS parser and supposed to work with CSS1, CSS2, CSS3 (currently under development) and other CSS derived languages.
|
|
|
|
%package javadoc
|
|
Group: Documentation
|
|
Summary: Javadoc for %{name}
|
|
|
|
%description javadoc
|
|
SAC is a standard interface for CSS parser and supposed to work with CSS1, CSS2, CSS3 (currently under development) and other CSS derived languages.
|
|
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n sac-%{version}
|
|
|
|
for j in $(find . -name "*.jar"); do
|
|
mv $j ${j}.no
|
|
done
|
|
|
|
cp -pr %{S:1} build.xml
|
|
chmod -R go=u-w *
|
|
|
|
%build
|
|
ant jar
|
|
ant javadoc
|
|
|
|
mkdir -p META-INF
|
|
cp -p %{SOURCE3} META-INF/MANIFEST.MF
|
|
touch META-INF/MANIFEST.MF
|
|
zip -u build/lib/sac.jar META-INF/MANIFEST.MF
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
install -pm 644 build/lib/sac.jar \
|
|
%{buildroot}%{_javadir}/sac-%{version}.jar
|
|
|
|
(
|
|
cd %{buildroot}%{_javadir}
|
|
ln -sf sac-%{version}.jar sac.jar
|
|
)
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/maven2/poms
|
|
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/maven2/poms/JPP-sac.pom
|
|
%add_to_maven_depmap org.w3c.css sac %{version} JPP sac
|
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/sac
|
|
cp -pr build/api/* %{buildroot}%{_javadocdir}/sac
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
%update_maven_depmap
|
|
|
|
%postun
|
|
%update_maven_depmap
|
|
|
|
%files
|
|
%defattr(0644,root,root,0755)
|
|
%{_javadir}/sac-%{version}.jar
|
|
%{_javadir}/sac.jar
|
|
%{_datadir}/maven2/poms
|
|
%{_mavendepmapfragdir}
|
|
%doc COPYRIGHT.html
|
|
|
|
%files javadoc
|
|
%defattr(0644,root,root,0755)
|
|
%{_javadocdir}/sac
|
|
|
|
%changelog
|
|
* Mon Dec 13 2010 gil <puntogil@libero.it> 1.3-3mamba
|
|
- rebuilt devel
|
|
|
|
* Wed Feb 10 2010 gil <puntogil@libero.it> 1.3-2mamba
|
|
- added: bundle manifest; maven pom
|
|
|
|
* Tue Jun 09 2009 gil <puntogil@libero.it> 1.3-1mamba
|
|
- package created by autospec
|