Author: glen Date: Tue Apr 21 13:12:48 2009 GMT Module: SPECS Tag: HEAD ---- Log message: - new (need to relocate me to th as all java pkgs are fcked up for ac on HEAD)
---- Files affected: SPECS: opengrok.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/opengrok.spec diff -u /dev/null SPECS/opengrok.spec:1.1 --- /dev/null Tue Apr 21 15:12:48 2009 +++ SPECS/opengrok.spec Tue Apr 21 15:12:42 2009 @@ -0,0 +1,159 @@ +# $Revision$, $Date$ +%include /usr/lib/rpm/macros.java +Summary: A wicked fast source browser +Name: opengrok +Version: 0.7 +Release: 0.1 +License: CDDL +Group: Development/Languages/Java +Source0: http://opensolaris.org/os/project/opengrok/files/%{name}-%{version}-src.tar.gz +# Source0-md5: 131c14590db48da55fc5a1ff2509e878 +URL: http://opensolaris.org/os/project/opengrok/ +BuildRequires: java-sun +BuildRequires: jflex +BuildRequires: jpackage-utils +BuildRequires: rpm-javaprov +BuildRequires: rpmbuild(macros) >= 1.300 +Requires: jpackage-utils +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +OpenGrok is a fast and usable source code search and cross reference +engine. It helps you search, cross-reference and navigate your source +tree. It can understand various program file formats and version +control histories like Mercurial, Git, SCCS, RCS, CVS, Subversion, +Teamware, ClearCase, Perforce and Bazaar. In other words it lets you +grok (profoundly understand) the open source, hence the name OpenGrok. +It is written in Java. + +%package doc +Summary: Manual for %{name} +Summary(fr.UTF-8): Documentation pour %{name} +Summary(it.UTF-8): Documentazione di %{name} +Summary(pl.UTF-8): Podręcznik dla %{name} +Group: Documentation + +%description doc +Documentation for %{name}. + +%description doc -l fr.UTF-8 +Documentation pour %{name}. + +%description doc -l it.UTF-8 +Documentazione di %{name}. + +%description doc -l pl.UTF-8 +Dokumentacja do %{name}. + +%package javadoc +Summary: Online manual for %{name} +Summary(pl.UTF-8): Dokumentacja online do %{name} +Group: Documentation +Requires: jpackage-utils + +%description javadoc +Documentation for %{name}. + +%description javadoc -l pl.UTF-8 +Dokumentacja do %{name}. + +%description javadoc -l fr.UTF-8 +Javadoc pour %{name}. + +%package demo +Summary: Demo for %{name} +Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu %{name} +Group: Documentation +Requires: %{name} = %{epoch}:%{version}-%{release} + +%description demo +Demonstrations and samples for %{name}. + +%description demo -l pl.UTF-8 +Pliki demonstracyjne i przykłady dla pakietu %{name}. + +%package manual +Summary: Tutorial for %{name} +Group: Documentation + +%description manual +Manual for %{name}. + +%prep +%setup -q -n %{name}-%{version}-src +#%{__sed} -i -e 's,\r$,,' build.xml + +%build +export JAVA_HOME="%{java_home}" + +required_jars="jaxp_parser_impl" +CLASSPATH=$(build-classpath $required_jars) +export CLASSPATH + +export LC_ALL=en_US # source code not US-ASCII + +%ant +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_javadir} + +# jars +cp -a dist/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar +ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar + +# for jakarta packages: +for a in dist/*.jar; do + jar=${a##*/} + cp -a dist/$jar $RPM_BUILD_ROOT%{_javadir}/${jar%%.jar}-%{version}.jar + ln -s ${jar%%.jar}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/$jar +done + +# javadoc +%if %{with javadoc} +install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version} +cp -a dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version} +ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink +%endif + +# demo +install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} +cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} + +%clean +rm -rf $RPM_BUILD_ROOT + +%post javadoc +ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname} + +%files +%defattr(644,root,root,755) +%{_javadir}/*.jar + +%files doc +%defattr(644,root,root,755) +%doc docs/* + +%if 0 +%files demo +%defattr(644,root,root,755) +%{_examplesdir}/%{name}-%{version} +%endif + +%if %{with javadoc} +%files javadoc +%defattr(644,root,root,755) +%{_javadocdir}/%{srcname}-%{version} +%ghost %{_javadocdir}/%{srcname} +%endif + +%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) +%changelog +* %{date} PLD Team <[email protected]> +All persons listed below can be reached at <cvs_login>@pld-linux.org + +$Log$ +Revision 1.1 2009/04/21 13:12:42 glen +- new (need to relocate me to th as all java pkgs are fcked up for ac on HEAD) ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
