packages: java-jgoodies-common/java-jgoodies-common.spec (NEW)=?UTF-8?Q?=20?=- new
megabajt
megabajt at pld-linux.org
Sat Mar 3 00:20:39 CET 2012
Author: megabajt Date: Fri Mar 2 23:20:39 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- new
---- Files affected:
packages/java-jgoodies-common:
java-jgoodies-common.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/java-jgoodies-common/java-jgoodies-common.spec
diff -u /dev/null packages/java-jgoodies-common/java-jgoodies-common.spec:1.1
--- /dev/null Sat Mar 3 00:20:39 2012
+++ packages/java-jgoodies-common/java-jgoodies-common.spec Sat Mar 3 00:20:34 2012
@@ -0,0 +1,103 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without javadoc # don't build javadoc
+
+%include /usr/lib/rpm/macros.java
+
+%define srcname jgoodies-common
+%define ver %(echo %{version} | tr . _)
+Summary: Common library shared by JGoodies libraries and applications
+Summary(pl.UTF-8): Wspólna biblioteka używana przez biblioteki i aplikacje JGoodies
+Name: java-%{srcname}
+Version: 1.3.0
+Release: 1
+License: BSD
+Group: Libraries/Java
+Source0: http://www.jgoodies.com/download/libraries/common/%{srcname}-%{ver}.zip
+# Source0-md5: 538e04b89e855a47103ed510210de27b
+URL: http://www.jgoodies.com/
+BuildRequires: ant
+BuildRequires: jdk
+BuildRequires: jpackage-utils
+BuildRequires: rpm-javaprov
+BuildRequires: rpmbuild(macros) >= 1.300
+BuildRequires: unzip
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+jgoodies-common is a common library shared by JGoodies libraries and
+applications.
+
+%description -l pl.UTF-8
+jgoodies-common jest wspólną biblioteką używaną przez biblioteki i
+aplikacje JGoodies.
+
+%package javadoc
+Summary: Online manual for %{srcname}
+Summary(pl.UTF-8): Dokumentacja online do %{srcname}
+Group: Documentation
+Requires: jpackage-utils
+
+%description javadoc
+Documentation for %{srcname}.
+
+%description javadoc -l pl.UTF-8
+Dokumentacja do %{srcname}.
+
+%description javadoc -l fr.UTF-8
+Javadoc pour %{srcname}.
+
+%prep
+%setup -q -n %{srcname}-%{version}
+
+# delete prebuild JAR
+%{__rm} *.jar
+
+%build
+%ant jar %{?with_javadoc:javadoc}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_javadir}
+
+# jars
+cp -a build/%{srcname}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}-%{version}.jar
+ln -s %{srcname}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{srcname}.jar
+
+# javadoc
+%if %{with javadoc}
+install -d $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+cp -a docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{srcname}-%{version}
+ln -s %{srcname}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{srcname} # ghost symlink
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post javadoc
+ln -nfs %{srcname}-%{version} %{_javadocdir}/%{srcname}
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE.txt README.html RELEASE-NOTES.txt
+%{_javadir}/%{srcname}.jar
+%{_javadir}/%{srcname}-%{version}.jar
+
+%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 <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2012/03/02 23:20:34 megabajt
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list