]> git.pld-linux.org Git - packages/sonar.git/commitdiff
- an open source code quality management platform
authorpawelz <pawelz@pld-linux.org>
Fri, 6 Mar 2009 14:43:35 +0000 (14:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- initial PLD release
- based on hudson.spec
- NFY

Changed files:
    sonar.spec -> 1.1

sonar.spec [new file with mode: 0644]

diff --git a/sonar.spec b/sonar.spec
new file mode 100644 (file)
index 0000000..165e862
--- /dev/null
@@ -0,0 +1,54 @@
+# TODO
+# - build it from sources
+%include       /usr/lib/rpm/macros.java
+Summary:       A code quality management platform
+Name:          sonar
+Version:       1.6
+Release:       0.1
+License:       GPL v2
+Group:         Development/Languages/Java
+Source0:       http://dist.sonar.codehaus.org/sonar-1.6.zip
+# Source0-md5: accde4b27b491e63fdba3995759162f5
+Source1:       %{name}-web.xml
+Source2:       %{name}-context.xml
+URL:           http://sonar.codehaus.org/
+BuildRequires: jpackage-utils
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+Requires:      java-servlet-container
+Requires:      jpackage-utils
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+SONAR is a code quality management platform, dedicated to continuously analyze
+and measure technical quality, from the projects portfolio to the class
+method.
+
+%prep
+%setup -q
+
+%build
+cd war
+%ant clean war
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir}/%{name},%{_datadir}/%{name},%{_sharedstatedir}/{%{name},tomcat/conf/Catalina/localhost}}
+install %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/web.xml
+install %SOURCE2 $RPM_BUILD_ROOT%{_sharedstatedir}/tomcat/conf/Catalina/localhost/%{name}.xml
+cp -a sonar-web/* $RPM_BUILD_ROOT%{_datadir}/%{name}
+ln -sf %{_sysconfdir}/%{name}/web.xml $RPM_BUILD_ROOT%{_datadir}/%{name}/WEB-INF/web.xml
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%dir %{_sysconfdir}/%{name}
+%config(noreplace) %{_sysconfdir}/%{name}/web.xml
+# do not make this file writeable by tomcat. We do not want to allow user to
+# undeploy this app via tomcat manager.
+%config(noreplace) %{_sharedstatedir}/tomcat/conf/Catalina/localhost/%{name}.xml
+%{_datadir}/%{name}
+%attr(755,tomcat,tomcat) %dir %{_sharedstatedir}/%{name}
This page took 0.243927 seconds and 5 git commands to generate.