package init
This commit is contained in:
parent
cba0e746d5
commit
f9926fa411
31
sac-1.3.pom
Normal file
31
sac-1.3.pom
Normal 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>
|
||||
10
sac-MANIFEST.MF
Normal file
10
sac-MANIFEST.MF
Normal 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
sac-build.xml
Normal file
66
sac-build.xml
Normal 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>
|
||||
47
sac.spec
Normal file
47
sac.spec
Normal file
@ -0,0 +1,47 @@
|
||||
Name: sac
|
||||
Version: 1.3
|
||||
Release: 1
|
||||
Summary: Java standard interface for CSS parser
|
||||
License: W3C
|
||||
URL: http://www.w3.org/Style/CSS/SAC/
|
||||
#Original source: http://www.w3.org/2002/06/%{name}java-%{version}.zip
|
||||
#unzip, find . -name "*.jar" -exec rm {} \;
|
||||
#to simplify the licensing
|
||||
Source0: %{name}java-%{version}-jarsdeleted.zip
|
||||
Source1: %{name}-build.xml
|
||||
Source2: %{name}-MANIFEST.MF
|
||||
Source3: https://repo1.maven.org/maven2/org/w3c/css/sac/1.3/sac-1.3.pom
|
||||
BuildRequires: ant javapackages-local
|
||||
BuildArch: noarch
|
||||
%description
|
||||
SAC is a standard interface for CSS parsers, intended to work with CSS1, CSS2,
|
||||
CSS3 and other CSS derived languages.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
%description javadoc
|
||||
Javadoc for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
install -m 644 %{SOURCE1} build.xml
|
||||
find . -name "*.jar" -exec rm -f {} \;
|
||||
|
||||
%build
|
||||
ant jar javadoc
|
||||
jar ufm build/lib/sac.jar %{SOURCE2}
|
||||
|
||||
%install
|
||||
%mvn_artifact %{SOURCE3} build/lib/sac.jar
|
||||
%mvn_file ":sac" sac
|
||||
%mvn_install -J build/api
|
||||
|
||||
%files -f .mfiles
|
||||
%license COPYRIGHT.html
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license COPYRIGHT.html
|
||||
|
||||
%changelog
|
||||
* Fri Aug 14 2020 wangxiao <wangxiao65@huawei.com> - 1.3-1
|
||||
- Package init
|
||||
4
sac.yaml
Normal file
4
sac.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: NA
|
||||
src_repo: NA
|
||||
tag_prefix: NA
|
||||
seperator: NA
|
||||
BIN
sacjava-1.3-jarsdeleted.zip
Normal file
BIN
sacjava-1.3-jarsdeleted.zip
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user