diff --git a/MultithreadedTC-1.01-source.zip b/MultithreadedTC-1.01-source.zip new file mode 100644 index 0000000..9b68312 Binary files /dev/null and b/MultithreadedTC-1.01-source.zip differ diff --git a/multithreadedtc-1.01.pom b/multithreadedtc-1.01.pom new file mode 100644 index 0000000..ecff9e1 --- /dev/null +++ b/multithreadedtc-1.01.pom @@ -0,0 +1,26 @@ + + + 4.0.0 + edu.umd.cs.mtc + multithreadedtc + 1.01 + MultithreadedTC + A framework for testing concurrent Java applications + http://code.google.com/p/multithreadedtc/ + + + The BSD License + http://www.opensource.org/licenses/bsd-license.php + repo + + + + + junit + junit + 3.8.1 + test + + + diff --git a/multithreadedtc-build.patch b/multithreadedtc-build.patch new file mode 100644 index 0000000..46b9f22 --- /dev/null +++ b/multithreadedtc-build.patch @@ -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 @@ + + + +- +- ++ ++ + + + + + ++ ++ ++ ++ ++ ++ + +- ++ + + + diff --git a/multithreadedtc.spec b/multithreadedtc.spec new file mode 100644 index 0000000..43ed19b --- /dev/null +++ b/multithreadedtc.spec @@ -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 - 1.01-1 +- Package init diff --git a/multithreadedtc.yaml b/multithreadedtc.yaml new file mode 100644 index 0000000..00bbaf0 --- /dev/null +++ b/multithreadedtc.yaml @@ -0,0 +1,4 @@ +version_control: NA +src_repo: NA +tag_prefix: NA +seperator: NA