From 19338081a33f536ed17efae9cfb9657b9b409d7a Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:17:24 +0100 Subject: [PATCH] package created using the webbuild interface [release 1.2.1-1mamba;Wed Jan 15 2014] --- README.md | 2 ++ jgoodies-common.spec | 69 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 71 insertions(+) create mode 100644 jgoodies-common.spec diff --git a/README.md b/README.md index d4f14fe..f593e1a 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # jgoodies-common +Java JGoodies common library. + diff --git a/jgoodies-common.spec b/jgoodies-common.spec new file mode 100644 index 0000000..1c11445 --- /dev/null +++ b/jgoodies-common.spec @@ -0,0 +1,69 @@ +%define pkgver %(echo %version | tr . _) +Name: jgoodies-common +Version: 1.2.1 +Release: 1mamba +Summary: Java JGoodies common library +Group: System/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.jgoodies.com/ +Source: http://www.jgoodies.com/download/libraries/common/jgoodies-common-%{pkgver}.zip +License: BSD +## AUTOBUILDREQ-BEGIN +## AUTOBUILDREQ-END +BuildRequires: jpackage-utils +BuildRequires: apache-ant +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Java JGoodies common library. + +%package javadoc +Summary: Javadoc documentation for %{name} +Group: Documentation + +%description javadoc +This package contains the Javadoc documentation for JGoodies Common. + +%prep +%setup -q +for j in $(find . -name "*.jar"); do + mv $j $j.no +done + +%build +ant compile jar javadoc + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +install -p -d %{buildroot}%{_javadir} \ + %{buildroot}%{_javadocdir}/%{name}-%{version} +install -p -m 644 build/jgoodies-common.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar + +ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar + +cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version} + +cd %{buildroot}%{_javadocdir} +ln -s %{name}-%{version} %{name} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_javadir}/%{name}-%{version}.jar +%{_javadir}/%{name}.jar +%doc LICENSE.txt + +%files javadoc +%defattr(-,root,root) +%dir %{_javadocdir}/%{name} +%dir %{_javadocdir}/%{name}-%{version} +%{_javadocdir}/%{name}-%{version}/* +%doc README.html + +%changelog +* Wed Jan 15 2014 Silvan Calarco 1.2.1-1mamba +- package created using the webbuild interface