template-specs: jira-plugin.spec (NEW) - template for jira plugins

pawelz pawelz at pld-linux.org
Thu May 27 13:19:48 CEST 2010


Author: pawelz                       Date: Thu May 27 11:19:48 2010 GMT
Module: template-specs                Tag: HEAD
---- Log message:
- template for jira plugins

---- Files affected:
template-specs:
   jira-plugin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: template-specs/jira-plugin.spec
diff -u /dev/null template-specs/jira-plugin.spec:1.1
--- /dev/null	Thu May 27 13:19:48 2010
+++ template-specs/jira-plugin.spec	Thu May 27 13:19:43 2010
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+%define		plugin	foobar
+%include	/usr/lib/rpm/macros.java
+Summary:	JIRA foobar plugin
+Name:		jira-plugin-%{plugin}
+Version:	-
+Release:	1
+License:	BSD
+Group:		Libraries/Java
+Source0:	-
+# Source0-md5:	-
+URL:		-
+BuildRequires:	rpm-javaprov
+BuildRequires:	rpmbuild(macros) >= 1.300
+# For "managed" type plugins
+Requires:	jira >= 4.1.1-2
+# For other plugins
+Requires:	jira
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		pluginsdir	%{_datadir}/jira/plugins
+
+# For "managed" type plugins, like greenhopper
+%define		pluginsdeploydir	%{_sharedstatedir}/jira/plugins/installed-plugins
+# For other plugins
+%define		pluginsdeploydir	%{_datadir}/jira/WEB-INF/lib
+
+%description
+JIRA plugins that allows to FOO and even BAR.
+
+%prep
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT{%{pluginsdeploydir},%{pluginsdir}}
+cp %{SOURCE0} $RPM_BUILD_ROOT%{pluginsdir}/plugin-%{plugin}-%{version}.jar
+ln -s %{pluginsdir}/plugin-%{plugin}-%{version}.jar $RPM_BUILD_ROOT%{pluginsdeploydir}/plugin-%{plugin}-%{version}.jar
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{pluginsdir}/plugin-%{plugin}-%{version}.jar
+%{pluginsdeploydir}/plugin-%{plugin}-%{version}.jar
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2010/05/27 11:19:43  pawelz
+- template for jira plugins
+
================================================================


More information about the pld-cvs-commit mailing list