commit 6f63d0647a9aac354130fa876747e4f6c6c43be3
Author: Michal Srb <msrb(a)redhat.com>
Date: Mon May 6 08:12:12 2013 +0200
Initial import
.gitignore | 2 +
sezpoz.spec | 71 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
sources | 2 +
3 files changed, 75 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7006d6d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1,2 @@
+/sezpoz-1.9-sources.tar.gz
+/cddl.txt
diff --git a/sezpoz.spec b/sezpoz.spec
new file mode 100644
index 0000000..2a356f6
--- /dev/null
+++ b/sezpoz.spec
@@ -0,0 +1,71 @@
+Name: sezpoz
+Version: 1.9
+Release: 1%{?dist}
+Summary: Lightweight Java library that lets you perform modular service lookups
+
+License: CDDL
+URL:
http://sezpoz.java.net/
+# svn co
https://svn.java.net/svn/sezpoz~svn/tags/pom-%{version}
+# cd pom-%{version}
+# rm -Rf www/ perftest/ .svn/ demo/
+# cd ..
+# tar czvf sezpoz-%{version}-sources.tar.gz pom-%{version}/
+Source0: %{name}-%{version}-sources.tar.gz
+Source1:
https://netbeans.org/cddl.txt
+
+BuildRequires: maven-local
+BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin)
+BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
+
+BuildArch: noarch
+
+%description
+SezPoz is a lightweight and easy-to-learn library that lets you
+perform modular service lookups. It provides some of the same
+capabilities as (for example) java.util.ServiceLoader, but SezPoz
+has some special advantages. The service registrations are made
+just using type-checked Java annotations. There are no configuration
+files to edit.
+
+%package javadoc
+Summary: Javadoc for %{name}
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q -n pom-%{version}
+
+cp %{SOURCE1} LICENSE
+
+# These require jdk 1.5
+rm -Rf ./sezpoz/src/main/java/net/java/sezpoz/impl/Indexer5.java
+rm -Rf ./sezpoz/src/main/java/net/java/sezpoz/impl/IndexerFactory.java
+
+# We don't need demos (4 jars)
+%pom_disable_module demo
+
+
+%build
+# Tests don't work because of removed .java files (see prep section)
+%mvn_build -f
+
+%install
+%mvn_install
+
+
+%files -f .mfiles
+%doc LICENSE
+%files javadoc -f .mfiles-javadoc
+%doc LICENSE
+
+
+%changelog
+* Fri May 03 2013 Michal Srb <msrb(a)redhat.com> - 1.9-1
+- Update to latest version 1.9
+- Install license file
+
+* Thu May 02 2013 Michal Srb <msrb(a)redhat.com> - 1.5-1
+- Initial package
+
diff --git a/sources b/sources
index e69de29..c7b3d0b 100644
--- a/sources
+++ b/sources
@@ -0,0 +1,2 @@
+ea30e6a774b4fedc518d638efb4bcacc sezpoz-1.9-sources.tar.gz
+786f31583aef7862dabd13e78addd669 cddl.txt