Compare commits
3 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4af19db879 | ||
|
|
ab9fffd912 | ||
|
|
c40fa4e74d |
5 changed files with 211 additions and 21 deletions
0
.cvsignore → .gitignore
vendored
0
.cvsignore → .gitignore
vendored
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
||||||
# Makefile for source rpm: aduna-commons-concurrent
|
|
||||||
# $Id$
|
|
||||||
NAME := aduna-commons-concurrent
|
|
||||||
SPECFILE = $(firstword $(wildcard *.spec))
|
|
||||||
|
|
||||||
define find-makefile-common
|
|
||||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
||||||
|
|
||||||
ifeq ($(MAKEFILE_COMMON),)
|
|
||||||
# attept a checkout
|
|
||||||
define checkout-makefile-common
|
|
||||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
||||||
endef
|
|
||||||
|
|
||||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
||||||
endif
|
|
||||||
|
|
||||||
include $(MAKEFILE_COMMON)
|
|
||||||
68
aduna-commons-concurrent-2.6.0.pom
Normal file
68
aduna-commons-concurrent-2.6.0.pom
Normal file
|
|
@ -0,0 +1,68 @@
|
||||||
|
<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>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>info.aduna.commons</groupId>
|
||||||
|
<artifactId>aduna-commons</artifactId>
|
||||||
|
<version>16</version>
|
||||||
|
<relativePath>../../pom.xml</relativePath>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<artifactId>aduna-commons-concurrent</artifactId>
|
||||||
|
<version>2.6.0</version>
|
||||||
|
|
||||||
|
<name>Aduna Commons: Concurrent</name>
|
||||||
|
<description>Extensions to the Java Concurrency package</description>
|
||||||
|
|
||||||
|
<organization>
|
||||||
|
<name>Aduna</name>
|
||||||
|
<url>http://www.aduna-software.com/</url>
|
||||||
|
</organization>
|
||||||
|
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>Aduna BSD license</name>
|
||||||
|
<url>http://repo.aduna-software.org/legal/aduna-bsd.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
<comments>A BSD-style OSS license</comments>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.slf4j</groupId>
|
||||||
|
<artifactId>slf4j-api</artifactId>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
<build>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.felix</groupId>
|
||||||
|
<artifactId>maven-bundle-plugin</artifactId>
|
||||||
|
<extensions>true</extensions>
|
||||||
|
<configuration>
|
||||||
|
<instructions>
|
||||||
|
<Export-Package>info.aduna.concurrent,info.aduna.concurrent.locks</Export-Package>
|
||||||
|
</instructions>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</build>
|
||||||
|
|
||||||
|
<scm>
|
||||||
|
<connection>scm:svn:http://repo.aduna-software.org/svn/info.aduna/commons/concurrent/tags/2.6.0</connection>
|
||||||
|
<developerConnection>scm:svn:https://repo.aduna-software.org/svn/info.aduna/commons/concurrent/tags/2.6.0</developerConnection>
|
||||||
|
<url>http://repo.aduna-software.org/websvn/listing.php?repname=aduna&path=/info.aduna/commons/concurrent/branches/2.6?repname=aduna&path=/info.aduna/commons/concurrent/tags/2.6.0?repname=aduna&path=/info.aduna/commons/concurrent/branches/2.6?repname=aduna&path=/info.aduna/commons/concurrent/trunk/</url>
|
||||||
|
</scm>
|
||||||
|
|
||||||
|
</project>
|
||||||
142
aduna-commons-concurrent.spec
Normal file
142
aduna-commons-concurrent.spec
Normal file
|
|
@ -0,0 +1,142 @@
|
||||||
|
%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
|
||||||
|
|
||||||
|
Name: aduna-commons-concurrent
|
||||||
|
Version: 2.6.0
|
||||||
|
Release: 3%{?dist}
|
||||||
|
Summary: Extensions to the Java Concurrency package
|
||||||
|
|
||||||
|
Group: Development/Libraries
|
||||||
|
License: BSD
|
||||||
|
URL: http://www.aduna-software.com/
|
||||||
|
Source0: http://repo.aduna-software.org/maven2/releases/info/aduna/commons/%{name}/%{version}/%{name}-%{version}-sources.jar
|
||||||
|
Source1: http://repo.aduna-software.org/maven2/releases/info/aduna/commons/%{name}/%{version}/%{name}-%{version}.pom
|
||||||
|
|
||||||
|
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
|
||||||
|
|
||||||
|
BuildRequires: jpackage-utils >= 0:1.7.5
|
||||||
|
BuildRequires: aduna-commons-pom
|
||||||
|
BuildRequires: maven2-plugin-install
|
||||||
|
BuildRequires: maven2-plugin-jar
|
||||||
|
BuildRequires: maven2-plugin-resources
|
||||||
|
BuildRequires: maven-doxia-sitetools
|
||||||
|
BuildRequires: maven-surefire-maven-plugin
|
||||||
|
|
||||||
|
Requires: jpackage-utils >= 0:1.7.5
|
||||||
|
Requires(post): jpackage-utils >= 0:1.7.5
|
||||||
|
Requires(postun): jpackage-utils >= 0:1.7.5
|
||||||
|
|
||||||
|
Requires: aduna-commons-pom
|
||||||
|
Requires: slf4j
|
||||||
|
|
||||||
|
%if %{with_gcj}
|
||||||
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
||||||
|
Requires(post): java-gcj-compat >= 1.0.31
|
||||||
|
Requires(postun): java-gcj-compat >= 1.0.31
|
||||||
|
%else
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
|
%description
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
Group: Documentation
|
||||||
|
Requires: jpackage-utils >= 0:1.7.5
|
||||||
|
Requires: %{name} = %{version}-%{release}
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
%{summary}.
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -c -q
|
||||||
|
cp %SOURCE1 ./pom.xml
|
||||||
|
mkdir -p src/main/java
|
||||||
|
mv info src/main/java
|
||||||
|
|
||||||
|
|
||||||
|
%build
|
||||||
|
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
||||||
|
mkdir -p $MAVEN_REPO_LOCAL
|
||||||
|
|
||||||
|
mvn-jpp \
|
||||||
|
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
||||||
|
install javadoc:javadoc
|
||||||
|
|
||||||
|
|
||||||
|
%install
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_javadir}
|
||||||
|
|
||||||
|
install -m 644 target/%{name}-%{version}.jar \
|
||||||
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||||
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
||||||
|
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
|
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
|
(cd $RPM_BUILD_ROOT%{_javadocdir} && ln -sf %{name}-%{version} %{name})
|
||||||
|
|
||||||
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
||||||
|
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
|
|
||||||
|
%if %{with_gcj}
|
||||||
|
%{_bindir}/aot-compile-rpm
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%add_to_maven_depmap info.aduna.commons %{name} %{version} JPP %{name}
|
||||||
|
|
||||||
|
%clean
|
||||||
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post
|
||||||
|
%update_maven_depmap
|
||||||
|
%if %{with_gcj}
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%update_maven_depmap
|
||||||
|
%if %{with_gcj}
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_javadir}/*.jar
|
||||||
|
%{_mavendepmapfragdir}/*
|
||||||
|
%{_mavenpomdir}/*.pom
|
||||||
|
%if %{with_gcj}
|
||||||
|
%attr(-,root,root) %{_libdir}/gcj/%{name}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%defattr(-,root,root,-)
|
||||||
|
%{_javadocdir}/%{name}-%{version}
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Tue Feb 23 2010 Mary Ellen Foster <mefoster at gmail.com> 2.6.0-3
|
||||||
|
- Remove BuildRequirements that are pulled in by aduna-commons POM
|
||||||
|
- Require the main package in the javadoc
|
||||||
|
|
||||||
|
* Thu Feb 11 2010 Mary Ellen Foster <mefoster at gmail.com> 2.6.0-2
|
||||||
|
- Add BR maven-doxia-sitetools
|
||||||
|
- Fix changelog dates
|
||||||
|
|
||||||
|
* Wed Feb 10 2010 Mary Ellen Foster <mefoster at gmail.com> 2.6.0-1
|
||||||
|
- Update to 2.6.0 in preparation for review
|
||||||
|
|
||||||
|
* Tue Nov 17 2009 Mary Ellen Foster <mefoster at gmail.com> 2.4.0-1
|
||||||
|
- Initial package
|
||||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
||||||
|
5d57ae3f8e5930246bb3349161633639 aduna-commons-concurrent-2.6.0-sources.jar
|
||||||
Reference in a new issue