rebuilt devel [release 1.3-3mamba;Mon Dec 13 2010]

This commit is contained in:
gil 2024-01-06 00:10:57 +01:00
parent e6ca6932aa
commit 73cf3a8557
5 changed files with 208 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# java-sac
SAC is a standard interface for CSS parser and supposed to work with CSS1, CSS2, CSS3 (currently under development) and other CSS derived languages.

View File

@ -0,0 +1,10 @@
Manifest-Version: 1.0
Bundle-RequiredExecutionEnvironment: J2SE-1.3,CDC-1.0/Foundation-1.0
Bundle-SymbolicName: org.w3c.css.sac
Bundle-ManifestVersion: 2
Bundle-Name: %pluginName
Bundle-Localization: plugin
Bundle-Version: 1.3.0.v200805290154
Bundle-Vendor: %providerName
Export-Package: org.w3c.css.sac;version="1.3.0",org.w3c.css.sac.helper
s;version="1.3.0"

66
java-sac-1.3-build.xml Normal file
View File

@ -0,0 +1,66 @@
<!-- simple generic build file -->
<project name="sac" default="all" basedir=".">
<!-- Properties -->
<property name="name" value="sac"/>
<property name="src" value="src"/>
<property name="build" value="build"/>
<property name="build.classes" value="${build}/classes"/>
<property name="build.doc" value="${build}/api"/>
<property name="build.lib" value="${build}/lib"/>
<property name="packagenames" value="org.w3c.css.sac.*"/>
<!-- Targets -->
<!-- Prepare build directories -->
<target name="prepare">
<mkdir dir="${src}"/>
<mkdir dir="${build}"/>
<mkdir dir="${build.classes}"/>
<mkdir dir="${build.lib}"/>
<mkdir dir="${build.doc}"/>
<copy todir="${src}/org">
<fileset dir="org"/>
</copy>
</target>
<!-- Kill all the created directories -->
<target name="clean">
<delete dir="${build}"/>
<delete dir="${src}"/>
</target>
<!-- Build classes -->
<target name="classes" depends="prepare">
<javac srcdir="${src}" destdir="${build.classes}" debug="off" optimize="on"/>
<copy todir="${build.classes}">
<fileset dir="${src}">
<include name="**/*.properties"/>
</fileset>
</copy>
</target>
<!-- Build jar archives -->
<target name="jar" depends="classes">
<jar jarfile="${build.lib}/${name}.jar" basedir="${build.classes}"/>
</target>
<!-- Build the full JavaDocs -->
<target name="javadoc" depends="prepare">
<javadoc sourcepath="${src}"
destdir="${build.doc}"
doctitle="${name} JavaDoc"
windowtitle="${name} JavaDoc"
package="true"
author="true"
version="true"
packagenames="${packagenames}"
/>
</target>
<!-- Build everything -->
<target name="all" depends="jar,javadoc"/>
</project>

99
java-sac.spec Normal file
View File

@ -0,0 +1,99 @@
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

31
sac-1.3.pom Normal file
View File

@ -0,0 +1,31 @@
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.w3c.css</groupId>
<artifactId>sac</artifactId>
<version>1.3</version>
<packaging>jar</packaging>
<name>Simple API for CSS</name>
<description>SAC is a standard interface for CSS parsers.</description>
<url>http://www.w3.org/Style/CSS/SAC/</url>
<organization>
<name>World Wide Web Consortium</name>
<url>http://www.w3.org/</url>
</organization>
<licenses>
<license>
<name>The W3C Software License</name>
<url>http://www.w3.org/Consortium/Legal/copyright-software-19980720</url>
</license>
</licenses>
<mailingLists>
<mailingList>
<name>www-style</name>
<subscribe>http://lists.w3.org/Archives/Public/www-style/</subscribe>
<unsubscribe>http://lists.w3.org/Archives/Public/www-style/</unsubscribe>
<archive>http://lists.w3.org/Archives/Public/www-style/</archive>
<post>www-style@w3.org</post>
</mailingList>
</mailingLists>
</project>