Summary: Perforce to Bugzilla Bridge Name: p4bugzilla Version: 1.1 Release: 1 License: Apache 2.0 Vendor: Promptu Systems Corporation Packager: whunter@promptu.com Provides: %{name}-%{version}-%{release} Requires: jdk >= 1.5 BuildRequires: jdk >= 1.5 URL: http://www.promptu.com Source0: %{name}-%{version}.tar.gz Group: Applications/Daemons BuildRoot: %{_tmppath}/%{name} BuildArch: noarch AutoReqProv: no Prefix: /usr %description A bridge between Perforce and Bugzilla. It takes p4 check-in comments and adds them to bugs. %prep %setup -q %build ant clean jar %install rm -rf $RPM_BUILD_ROOT install -d -m 755 $RPM_BUILD_ROOT/opt/p4bugzilla-%{version} for jar in lib/*.jar build/p4bugzilla.jar; do install -m 444 $jar $RPM_BUILD_ROOT/opt/p4bugzilla-%{version}/`basename $jar` done install -d -m 755 $RPM_BUILD_ROOT/etc/init.d install -D -m 444 p4bugzilla.conf $RPM_BUILD_ROOT/etc install -D -m 755 p4bugzilla $RPM_BUILD_ROOT/etc/init.d %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %dir /opt/p4bugzilla-%{version} /opt/p4bugzilla-%{version}/* %config /etc/init.d/p4bugzilla %config /etc/p4bugzilla.conf %post chkconfig --add p4bugzilla %preun if [ "$1" = "0" ]; then chkconfig --del p4bugzilla fi %changelog * Thu Dec 1 2011 Warwick Hunter - 1.1-1 Support an optional # in front of a bug number because it's quite a common human convention. - Add a little more logging to try and determine why the bridge occasionally dies. p4 change 8043 * Wed Mar 16 2011 Warwick Hunter - 1.1-0 Small changes to the integration interface to make it work with Bugzilla 4.0 * Tue Aug 31 2010 Warwick Hunter - 1.0-1 Bugfix 13222. Changed the format of the comment added to Bugzilla to make the user more obvious. * Tue Jul 13 2010 Warwick Hunter - 1.0-0 Initial build.