commit f346987d80fcbb60b09b3861ff27d0fe2b35253b Author: Gerard Ryan gerard@ryan.lt Date: Sat Nov 23 15:55:38 2013 +0000
Flesh out spec file
sources | 1 + tesla-concurrent-localrepo.spec | 36 ++++++++++++++++++++++++------------ 2 files changed, 25 insertions(+), 12 deletions(-) --- diff --git a/sources b/sources new file mode 100644 index 0000000..9a8d706 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +aabcf33f2f52dafdb385dd78028eac8b tesla-concurrent-localrepo-0.0.3-2fc6d1f.tar.gz diff --git a/tesla-concurrent-localrepo.spec b/tesla-concurrent-localrepo.spec index a31d4fe..c7ee933 100644 --- a/tesla-concurrent-localrepo.spec +++ b/tesla-concurrent-localrepo.spec @@ -1,15 +1,17 @@ +%global commit 2fc6d1faf8075000f9b82676b683a18c664a359d +%global shortcommit %(c=%{commit}; echo ${c:0:7}) + Name: tesla-concurrent-localrepo Version: 0.0.3 Release: 1%{?dist} Summary: Tesla : Concurrent Local Repository
-Group: Development/Libraries -License: -URL: -Source0: #FIXME -BuildArch: noarch +License: EPL +URL: https://github.com/tesla/%%7Bname%7D +Source0: https://github.com/tesla/%%7Bname%7D/archive/%%7Bcommit%7D/%%7Bname%7D-%%7Bv... +BuildArch: noarch
-BuildRequires: mvn(com.googlecode.multithreadedtc:multithreadedtc) +BuildRequires: mvn(edu.umd.cs:multithreadedtc) BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations) BuildRequires: mvn(org.eclipse.aether:aether-test-util) BuildRequires: mvn(io.tesla:tesla-filelock) @@ -17,13 +19,12 @@ BuildRequires: mvn(junit:junit) BuildRequires: maven-local
%description - - This extension for Aether contains a synchronization context that employs OS-level file locks to enable safe - concurrent access to the local repository across processes. +This extension for Aether contains a synchronization context that +employs OS-level file locks to enable safe concurrent access to the +local repository across processes.
%package javadoc -Group: Documentation Summary: Javadoc for %{name}
%description javadoc @@ -31,7 +32,17 @@ API documentation for %{name}.
%prep -%setup -q #You may need to update this according to your Source0 +%setup -q -n %{name}-%{commit} + +# Doesn't really need the parent and it's not packaged +%pom_remove_parent + +# Fedora has multithreadedtc with a differend gid +%pom_remove_dep com.googlecode.multithreadedtc:multithreadedtc +%pom_add_dep edu.umd.cs:multithreadedtc + +# Plugin prevents build +%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin
%build %mvn_build @@ -45,4 +56,5 @@ API documentation for %{name}. %files javadoc -f .mfiles-javadoc
%changelog -#FIXME +* Sat Nov 23 2013 Gerard Ryan galileo@fedoraproject.org - 0.0.3-1 +- Initial rpm