commit
de0250f609
BIN
MultithreadedTC-1.01-source.zip
Normal file
BIN
MultithreadedTC-1.01-source.zip
Normal file
Binary file not shown.
26
multithreadedtc-1.01.pom
Normal file
26
multithreadedtc-1.01.pom
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>edu.umd.cs.mtc</groupId>
|
||||||
|
<artifactId>multithreadedtc</artifactId>
|
||||||
|
<version>1.01</version>
|
||||||
|
<name>MultithreadedTC</name>
|
||||||
|
<description>A framework for testing concurrent Java applications</description>
|
||||||
|
<url>http://code.google.com/p/multithreadedtc/</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The BSD License</name>
|
||||||
|
<url>http://www.opensource.org/licenses/bsd-license.php</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>junit</groupId>
|
||||||
|
<artifactId>junit</artifactId>
|
||||||
|
<version>3.8.1</version>
|
||||||
|
<scope>test</scope>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
</project>
|
||||||
28
multithreadedtc-build.patch
Normal file
28
multithreadedtc-build.patch
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
--- build.xml.sav 2007-08-13 18:49:46.000000000 +0300
|
||||||
|
+++ build.xml 2010-06-02 22:34:58.490132827 +0300
|
||||||
|
@@ -10,15 +10,22 @@
|
||||||
|
<property name="all.info.files" value="${info.files},README-JDK14.txt" />
|
||||||
|
|
||||||
|
<!-- Create distribution jar -->
|
||||||
|
- <target name="distjar">
|
||||||
|
- <jar destfile="${jarfile}" update="true">
|
||||||
|
+ <target name="distjar" depends="compile">
|
||||||
|
+ <jar destfile="${jarfile}" update="true">
|
||||||
|
<fileset dir="bin" includes="edu/**/*class" />
|
||||||
|
<fileset dir="." includes="${info.files}" />
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
+ <target name="compile"
|
||||||
|
+ description="compile the source " >
|
||||||
|
+ <mkdir dir="bin"/>
|
||||||
|
+ <javac srcdir="src" destdir="bin"/>
|
||||||
|
+ </target>
|
||||||
|
+
|
||||||
|
+
|
||||||
|
<!-- Create Source Distribution zip -->
|
||||||
|
- <target name="sourcezip" depends="distjar,distjar-jdk14">
|
||||||
|
+ <target name="sourcezip" depends="distjar">
|
||||||
|
<zip destfile="${sourcename}.zip" update="true">
|
||||||
|
<zipfileset dir="." includes="src/**" excludes="**.svn**" prefix="${sourcename}"/>
|
||||||
|
<zipfileset dir="." includes="examples/**" excludes="**.svn**" prefix="${sourcename}"/>
|
||||||
68
multithreadedtc.spec
Normal file
68
multithreadedtc.spec
Normal file
@ -0,0 +1,68 @@
|
|||||||
|
%global project_name MultithreadedTC
|
||||||
|
Name: multithreadedtc
|
||||||
|
Version: 1.01
|
||||||
|
Release: 1
|
||||||
|
Summary: A framework for testing concurrent Java application
|
||||||
|
License: BSD
|
||||||
|
URL: http://www.cs.umd.edu/projects/PL/multithreadedtc
|
||||||
|
Source0: https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/multithreadedtc/%{project_name}-%{version}-source.zip
|
||||||
|
Source1: https://repo1.maven.org/maven2/edu/umd/cs/mtc/multithreadedtc/1.01/multithreadedtc-%{version}.pom
|
||||||
|
|
||||||
|
Patch0: %{name}-build.patch
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
BuildRequires: java-devel >= 1:1.6.0 jpackage-utils javapackages-local ant >= 0:1.6 ant-junit
|
||||||
|
BuildRequires: junit
|
||||||
|
Requires: jpackage-utils junit
|
||||||
|
|
||||||
|
%description
|
||||||
|
MultithreadedTC is a framework for testing concurrent applications.
|
||||||
|
It features a metronome that is used to provide fine control over
|
||||||
|
the sequence of activities in multiple threads.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
API documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n %{project_name}-%{version}-source
|
||||||
|
%patch0 -p0 -b .sav
|
||||||
|
find . -name "*.class" -print -delete
|
||||||
|
find . -name "*.jar" -print -delete
|
||||||
|
sed -i 's/\r//' web/docs/package-list
|
||||||
|
sed -i 's/\r//' web/docs/stylesheet.css
|
||||||
|
sed -i 's/\r//' LICENSE.txt
|
||||||
|
sed -i 's/\r//' README.txt
|
||||||
|
|
||||||
|
%build
|
||||||
|
ant
|
||||||
|
|
||||||
|
%install
|
||||||
|
install -d -m 0755 %{buildroot}%{_javadir}
|
||||||
|
install -m 644 %{project_name}-%{version}.jar %{buildroot}%{_javadir}/%{project_name}.jar
|
||||||
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||||
|
install -pm 644 %{SOURCE1} \
|
||||||
|
%{buildroot}%{_mavenpomdir}/JPP-%{project_name}.pom
|
||||||
|
%add_maven_depmap JPP-%{project_name}.pom %{project_name}.jar -a "edu.umd.cs.mtc:multithreadedtc-jdk14,com.googlecode.multithreadedtc:multithreadedtc"
|
||||||
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
cp -pr web/docs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||||
|
rm -rf web/docs
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%doc LICENSE.txt README.txt
|
||||||
|
%{_javadir}/*
|
||||||
|
%{_mavenpomdir}/*
|
||||||
|
|
||||||
|
%pre javadoc
|
||||||
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
||||||
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%doc LICENSE.txt
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Jul 24 2020 leiju <leiju4@huawei.com> - 1.01-1
|
||||||
|
- Package init
|
||||||
4
multithreadedtc.yaml
Normal file
4
multithreadedtc.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: NA
|
||||||
|
src_repo: NA
|
||||||
|
tag_prefix: NA
|
||||||
|
seperator: NA
|
||||||
Loading…
x
Reference in New Issue
Block a user