[packages/java-slf4j] - updated to 1.7.10 - package javadoc

qboosh qboosh at pld-linux.org
Fri Jan 30 22:04:07 CET 2015


commit 63d6865f9d335e728165ee8a31be05238039e411
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Jan 30 22:06:10 2015 +0100

    - updated to 1.7.10
    - package javadoc

 java-slf4j.spec | 45 +++++++++++++++++++++++++++++----------------
 1 file changed, 29 insertions(+), 16 deletions(-)
---
diff --git a/java-slf4j.spec b/java-slf4j.spec
index 3df1565..46ff0ba 100644
--- a/java-slf4j.spec
+++ b/java-slf4j.spec
@@ -1,19 +1,20 @@
 # TODO:
-# - javadocs?
+# - build from source
 # - tests?
 # - split into subpackages?
 
 %define		srcname		slf4j
 %include	/usr/lib/rpm/macros.java
 Summary:	Simple Logging Facade for Java
+Summary(pl.UTF-8):	Simple Logging Facade for Java - prosta fasada do logowania dla Javy
 Name:		java-%{srcname}
-Version:	1.7.5
+Version:	1.7.10
 Release:	1
 # the log4j-over-slf4j and jcl-over-slf4j submodules are ASL 2.0, rest is MIT
 License:	MIT and ASL 2.0
 Group:		Libraries/Java
 Source0:	http://www.slf4j.org/dist/%{srcname}-%{version}.tar.gz
-# Source0-md5:	0f9ff51370f54308f3fd52338363de25
+# Source0-md5:	dce921c782f761dd30607a4f4d631644
 URL:		http://www.slf4j.org/
 BuildRequires:	jpackage-utils
 BuildRequires:	rpm-javaprov
@@ -29,24 +30,23 @@ plug in the desired implementation at deployment time. SLF4J also
 allows for a gradual migration path away from Jakarta Commons Logging
 (JCL).
 
-Logging API implementations can either choose to implement the SLF4J
-interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively, it is
-possible (and rather easy) to write SLF4J adapters for the given API
-implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter..
+%description -l pl.UTF-8
+SLF4J (Simple Logging Facade for Java - prosta fasada do logowania dla
+Javy) ma służyć jako prosta fasada dla różnych API logujących,
+pozwalająca użytkownikowi końcowemu podłączyć pożądaną implementację w
+trakcie wdrożenia. SLF4J pozwala także na stopniową migrację ze
+szkieletu Jakarta Commons Logging (JCL).
 
 %package javadoc
-Summary:	API documentation for %{name}
+Summary:	API documentation for SFL4J
+Summary(pl.UTF-8):	Dokumentacja API biblioteki SFL4J
 Group:		Documentation
 
 %description javadoc
-This package provides %{summary}.
+API documentation for SFL4J.
 
-%package manual
-Summary:	Manual for %{name}
-Group:		Documentation
-
-%description manual
-This package provides documentation for %{name}.
+%description javadoc -l pl.UTF-8
+Dokumentacja API biblioteki SFL4J.
 
 %prep
 %setup -q -n %{srcname}-%{version}
@@ -55,7 +55,7 @@ This package provides documentation for %{name}.
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_javadir}
+install -d $RPM_BUILD_ROOT{%{_javadir},%{_javadocdir}}
 
 # jars
 for j in *%{version}.jar; do
@@ -64,17 +64,25 @@ for j in *%{version}.jar; do
 	ln -s $n-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/$n.jar
 done
 
+cp -rf site/apidocs $RPM_BUILD_ROOT%{_javadocdir}/slf4j-%{version}
+ln -sf slf4j-%{version} $RPM_BUILD_ROOT%{_javadocdir}/slf4j
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc LICENSE.txt README.md site/changes/*.txt
 %{_javadir}/jcl-over-slf4j-%{version}.jar
 %{_javadir}/jcl-over-slf4j.jar
 %{_javadir}/jul-to-slf4j-%{version}.jar
 %{_javadir}/jul-to-slf4j.jar
 %{_javadir}/log4j-over-slf4j-%{version}.jar
 %{_javadir}/log4j-over-slf4j.jar
+%{_javadir}/osgi-over-slf4j-%{version}.jar
+%{_javadir}/osgi-over-slf4j.jar
+%{_javadir}/slf4j-android-%{version}.jar
+%{_javadir}/slf4j-android.jar
 %{_javadir}/slf4j-api-%{version}.jar
 %{_javadir}/slf4j-api.jar
 %{_javadir}/slf4j-ext-%{version}.jar
@@ -91,3 +99,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_javadir}/slf4j-nop.jar
 %{_javadir}/slf4j-simple-%{version}.jar
 %{_javadir}/slf4j-simple.jar
+
+%files javadoc
+%defattr(644,root,root,755)
+%{_javadocdir}/slf4j-%{version}
+%{_javadocdir}/slf4j
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/java-slf4j.git/commitdiff/63d6865f9d335e728165ee8a31be05238039e411



More information about the pld-cvs-commit mailing list