From fd0578a955241fc60c0ea12dd46703dc7c85fc14 Mon Sep 17 00:00:00 2001 From: Caolan McNamara Date: Jun 30 2008 17:23:49 +0000 Subject: *** empty log message *** --- diff --git a/.cvsignore b/.cvsignore index e69de29..2183561 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +libloader-0.3.7.tar.gz diff --git a/import.log b/import.log new file mode 100644 index 0000000..5e70cc9 --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +libloader-0_3_7-1_fc9:HEAD:libloader-0.3.7-1.fc9.src.rpm:1214846666 diff --git a/libloader.spec b/libloader.spec new file mode 100644 index 0000000..e45be5f --- /dev/null +++ b/libloader.spec @@ -0,0 +1,95 @@ +# Use rpmbuild --without gcj to disable native bits +%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0} + +Name: libloader +Version: 0.3.7 +Release: 1%{?dist} +Summary: Resource Loading Framework +License: LGPLv2+ +Group: System Environment/Libraries +Source: http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.tar.gz +URL: http://reporting.pentaho.org/ +BuildRequires: ant, java-devel, jpackage-utils, jcommon +Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: java, jpackage-utils, jcommon +%if %{with_gcj} +BuildRequires: java-gcj-compat-devel >= 1.0.31 +Requires(post): java-gcj-compat >= 1.0.31 +Requires(postun): java-gcj-compat >= 1.0.31 +%else +BuildArch: noarch +%endif + +%description +LibLoader is a general purpose resource loading framework. It has been +designed to allow to load resources from any physical location and to +allow the processing of that content data in a generic way, totally +transparent to the user of that library. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Documentation +Requires: %{name} = %{version}-%{release} +Requires: jpackage-utils + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q +find . -name "*.jar" -exec rm -f {} \; +build-jar-repository -s -p lib jcommon-1.0.12 + +%build +ant compile javadoc +for file in README.txt licence-LGPL.txt ChangeLog.txt; do + tr -d '\r' < $file > $file.new + mv $file.new $file +done + +%install +rm -rf $RPM_BUILD_ROOT + +mkdir -p $RPM_BUILD_ROOT%{_javadir} +cp -p %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar + +mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name} +cp -rp javadoc $RPM_BUILD_ROOT%{_javadocdir}/%{name} +%if %{with_gcj} +%{_bindir}/aot-compile-rpm +%endif + +%clean +rm -rf $RPM_BUILD_ROOT + +%post +%if %{with_gcj} +if [ -x %{_bindir}/rebuild-gcj-db ] +then + %{_bindir}/rebuild-gcj-db +fi +%endif + +%postun +%if %{with_gcj} +if [ -x %{_bindir}/rebuild-gcj-db ] +then + %{_bindir}/rebuild-gcj-db +fi +%endif + +%files +%defattr(0644,root,root,0755) +%doc licence-LGPL.txt README.txt ChangeLog.txt +%{_javadir}/*.jar +%if %{with_gcj} +%attr(-,root,root) %{_libdir}/gcj/%{name} +%endif + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name} + +%changelog +* Wed May 07 2008 Caolan McNamara 0.3.7-1 +- initial fedora import diff --git a/sources b/sources index e69de29..13f49a8 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +bc4b9732e3c898a2f1102062fd614f2b libloader-0.3.7.tar.gz