[zanata-api] initial commit
Patrick Huang
pahuang at fedoraproject.org
Fri Apr 26 00:01:49 UTC 2013
commit 4373e71b3dee18a14014af8534c1ae5f50544c99
Author: Patrick Huang <pahuang at redhat.com>
Date: Thu Apr 25 20:01:22 2013 -0400
initial commit
.gitignore | 1 +
sources | 1 +
zanata-api.spec | 132 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 134 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..535b6ba 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/api-2.2.0.zip
diff --git a/sources b/sources
index e69de29..d3afb34 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+c63a447e8d53fd9ecfe7b8529f49abc5 api-2.2.0.zip
diff --git a/zanata-api.spec b/zanata-api.spec
new file mode 100644
index 0000000..fa2cbc0
--- /dev/null
+++ b/zanata-api.spec
@@ -0,0 +1,132 @@
+%global shortname api
+%global submodule zanata-common-%{shortname}
+
+Name: zanata-%{shortname}
+Version: 2.2.0
+Release: 6%{?dist}
+Summary: Zanata API modules
+
+Group: Development/Libraries
+License: LGPLv2+
+URL: https://github.com/zanata/%{name}
+Source0: https://github.com/zanata/%{name}/archive/%{shortname}-%{version}.zip
+
+BuildArch: noarch
+
+BuildRequires: maven-local
+BuildRequires: maven-enforcer-plugin
+BuildRequires: maven-surefire-provider-testng
+
+# dependencies in pom
+BuildRequires: zanata-parent
+BuildRequires: hamcrest
+BuildRequires: testng
+
+# dependencies in zanata-common-api
+BuildRequires: hibernate-validator
+BuildRequires: jackson
+BuildRequires: apache-commons-lang
+BuildRequires: apache-commons-codec
+BuildRequires: resteasy
+%if 0%{?fedora} < 19
+BuildRequires: apache-james-project
+%endif
+BuildRequires: slf4j
+BuildRequires: jboss-annotations-1.1-api
+
+
+Requires: hibernate-validator
+Requires: jackson
+Requires: apache-commons-lang
+Requires: apache-commons-codec
+Requires: resteasy
+Requires: slf4j
+Requires: jboss-annotations-1.1-api
+
+Requires: jpackage-utils
+Requires: java
+
+%description
+Zanata API modules
+
+%package javadoc
+Summary: Javadocs for %{submodule}
+Group: Documentation
+Requires: jpackage-utils
+Requires: %{name}%{?_isa} = %{version}-%{release}
+
+%description javadoc
+This package contains the API documentation for %{submodule}.
+
+
+
+%prep
+%setup -q -n %{name}-%{shortname}-%{version}
+%pom_remove_plugin :maven-dependency-plugin %{submodule}
+
+%build
+
+# -Dmaven.local.debug=true
+#%mvn_build --skip-tests
+%if 0%{?fedora} > 19
+%mvn_build
+%endif
+%if 0%{?fedora} == 19
+%mvn_build --skip-tests
+%else
+mvn-rpmbuild package javadoc:aggregate -Dmaven.test.skip=true
+%endif
+
+%install
+%if 0%{?fedora} > 18
+%mvn_install
+%else
+mkdir -p $RPM_BUILD_ROOT%{_javadir}
+cp -p %{submodule}/target/%{submodule}*-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{submodule}.jar
+
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
+cp -rp target/site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/%{submodule}
+
+install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
+install -pm 644 pom.xml \
+ $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
+install -pm 644 %{submodule}/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{submodule}.pom
+
+%add_maven_depmap JPP-%{name}.pom
+%add_maven_depmap JPP-%{submodule}.pom %{submodule}.jar
+%endif
+
+%files -f .mfiles
+%if 0%{?fedora} > 18
+%dir %{_javadir}/%{name}
+%endif
+%doc README.txt
+
+%if 0%{?fedora} > 18
+%files javadoc -f .mfiles-javadoc
+%else
+%files javadoc
+%{_javadocdir}/%{submodule}
+%endif
+
+%changelog
+* Tue Apr 23 2013 Patrick Huang <pahuang at redhat.com> 2.2.0-6
+- Change license to LGPLv2+ and add subpackage requires according to review
+
+* Tue Apr 23 2013 Patrick Huang <pahuang at redhat.com> 2.2.0-5
+- Add BR apache-james-project for f19-
+
+* Mon Apr 22 2013 Patrick Huang <pahuang at redhat.com> 2.2.0-4
+- Disable test in f19 due to hamcrest compatibility bug
+
+* Mon Apr 22 2013 Patrick Huang <pahuang at redhat.com> 2.2.0-3
+- Add conditional build for f19-
+
+* Wed Apr 17 2013 Patrick Huang <pahuang at redhat.com> 2.2.0-2
+- Remove conditional build
+
+* Wed Feb 27 2013 Patrick Huang <pahuang at redhat.com> 2.2.0-1
+- Upstream update to version 2.2.0
+
+* Thu Feb 7 2013 Patrick Huang <pahuang at redhat.com> 2.1.0-1
+- Initial RPM package
More information about the scm-commits
mailing list