[jgoodies-common/f15/master] First import

Mohamed ElMorabity melmorabity at fedoraproject.org
Sun Feb 20 00:10:46 UTC 2011


commit c368ff105e3130a73badb8f654c83e034f434ad6
Author: Mohamed El Morabity <melmorabity at fedoraproject.org>
Date:   Sun Feb 20 01:10:47 2011 +0100

    First import

 .gitignore           |    1 +
 jgoodies-common.spec |   78 ++++++++++++++++++++++++++++++++++++++++++++++++++
 sources              |    1 +
 3 files changed, 80 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..ba6b1f2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/jgoodies-common-1_1_1.zip
diff --git a/jgoodies-common.spec b/jgoodies-common.spec
new file mode 100644
index 0000000..6faf929
--- /dev/null
+++ b/jgoodies-common.spec
@@ -0,0 +1,78 @@
+%global shortname common
+
+Name:           jgoodies-common
+Version:        1.1.1
+Release:        2%{?dist}
+Summary:        Common library shared by JGoodies libraries and applications
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://www.jgoodies.com/
+Source0:        http://www.jgoodies.com/download/libraries/%{shortname}/%{name}-%(tr "." "_" <<<%{version}).zip
+
+BuildRequires:  ant
+BuildRequires:  java-devel
+BuildRequires:  jpackage-utils
+Requires:       java
+Requires:       jpackage-utils
+BuildArch:      noarch
+
+%description
+The JGoodies Common library provides convenience code for other JGoodies
+libraries and applications.
+
+
+%package javadoc
+Summary:        Javadoc for %{name}
+Group:          Documentation
+Requires:       %{name} = %{version}-%{release}
+Requires:       jpackage-utils
+
+%description javadoc
+This package contains the API documentation for %{name}.
+
+
+%prep
+%setup -q
+
+# Delete prebuild JARs
+find -name "*.jar" -exec rm -f {} \;
+
+# Remove DOS line endings
+for file in LICENSE.txt RELEASE-NOTES.txt; do
+  sed 's|\r||g' $file > $file.new && \
+  touch -r $file $file.new && \
+  mv $file.new $file
+done
+
+
+%build
+ant \
+  jar \
+  javadoc
+
+
+%install
+install -Dpm 0644 build/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
+
+mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
+cp -a build/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}/
+
+
+%files
+%defattr(-,root,root,-)
+%doc LICENSE.txt README.html RELEASE-NOTES.txt
+%{_javadir}/*.jar
+
+
+%files javadoc
+%defattr(-,root,root,-)
+%{_javadocdir}/%{name}/
+
+
+%changelog
+* Sat Feb 19 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 1.1.1-2
+- Remove obsolete clean section and BuildRoot tag
+
+* Wed Feb 09 2011 Mohamed El Morabity <melmorabity at fedoraproject.org> - 1.1.1-1
+- Initial RPM release
diff --git a/sources b/sources
index e69de29..0bf42a3 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+48cd0511251611669e6bfedb1a34f0ea  jgoodies-common-1_1_1.zip


More information about the scm-commits mailing list