Install source JAR for slf4j-simple
This commit is contained in:
parent
0d5c8b683b
commit
77808ced9f
25
slf4j.spec
25
slf4j.spec
@ -30,7 +30,7 @@
|
|||||||
|
|
||||||
Name: slf4j
|
Name: slf4j
|
||||||
Version: 1.7.21
|
Version: 1.7.21
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Simple Logging Facade for Java
|
Summary: Simple Logging Facade for Java
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -124,6 +124,12 @@ Summary: JUL to SLF4J bridge
|
|||||||
%description -n jul-to-slf4j
|
%description -n jul-to-slf4j
|
||||||
JUL to SLF4J bridge.
|
JUL to SLF4J bridge.
|
||||||
|
|
||||||
|
%package sources
|
||||||
|
Summary: SLF4J Source JARs
|
||||||
|
|
||||||
|
%description sources
|
||||||
|
SLF4J Source JARs.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
find . -name "*.jar" | xargs rm
|
find . -name "*.jar" | xargs rm
|
||||||
@ -133,7 +139,6 @@ cp -p %{SOURCE1} APACHE-LICENSE
|
|||||||
%pom_disable_module osgi-over-slf4j
|
%pom_disable_module osgi-over-slf4j
|
||||||
%pom_disable_module slf4j-android
|
%pom_disable_module slf4j-android
|
||||||
%pom_disable_module slf4j-migrator
|
%pom_disable_module slf4j-migrator
|
||||||
%pom_remove_plugin :maven-source-plugin
|
|
||||||
|
|
||||||
# Because of a non-ASCII comment in slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
|
# Because of a non-ASCII comment in slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
|
||||||
%pom_xpath_inject "pom:project/pom:properties" "
|
%pom_xpath_inject "pom:project/pom:properties" "
|
||||||
@ -170,6 +175,9 @@ cp -p %{SOURCE1} APACHE-LICENSE
|
|||||||
# Reported upstream: http://bugzilla.slf4j.org/show_bug.cgi?id=283
|
# Reported upstream: http://bugzilla.slf4j.org/show_bug.cgi?id=283
|
||||||
sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resources/META-INF/MANIFEST.MF
|
sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resources/META-INF/MANIFEST.MF
|
||||||
|
|
||||||
|
# Source JARs for are required by Maven 3.4.0
|
||||||
|
%mvn_package :::sources: sources
|
||||||
|
|
||||||
%mvn_package :%{name}-parent __noinstall
|
%mvn_package :%{name}-parent __noinstall
|
||||||
%mvn_package :%{name}-site __noinstall
|
%mvn_package :%{name}-site __noinstall
|
||||||
%mvn_package :%{name}-api
|
%mvn_package :%{name}-api
|
||||||
@ -191,8 +199,7 @@ rm -rf target/site/{.htaccess,apidocs}
|
|||||||
cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual
|
cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual
|
||||||
|
|
||||||
%files -f .mfiles
|
%files -f .mfiles
|
||||||
%doc LICENSE.txt APACHE-LICENSE
|
%license LICENSE.txt APACHE-LICENSE
|
||||||
%dir %{_javadir}/%{name}
|
|
||||||
|
|
||||||
%files jdk14 -f .mfiles-%{name}-jdk14
|
%files jdk14 -f .mfiles-%{name}-jdk14
|
||||||
%files log4j12 -f .mfiles-%{name}-log4j12
|
%files log4j12 -f .mfiles-%{name}-log4j12
|
||||||
@ -202,14 +209,20 @@ cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual
|
|||||||
%files -n log4j-over-slf4j -f .mfiles-log4j-over-slf4j
|
%files -n log4j-over-slf4j -f .mfiles-log4j-over-slf4j
|
||||||
%files -n jul-to-slf4j -f .mfiles-jul-to-slf4j
|
%files -n jul-to-slf4j -f .mfiles-jul-to-slf4j
|
||||||
|
|
||||||
|
%files sources -f .mfiles-sources
|
||||||
|
%license LICENSE.txt APACHE-LICENSE
|
||||||
|
|
||||||
%files javadoc -f .mfiles-javadoc
|
%files javadoc -f .mfiles-javadoc
|
||||||
%doc LICENSE.txt APACHE-LICENSE
|
%license LICENSE.txt APACHE-LICENSE
|
||||||
|
|
||||||
%files manual
|
%files manual
|
||||||
%doc LICENSE.txt APACHE-LICENSE
|
%license LICENSE.txt APACHE-LICENSE
|
||||||
%{_defaultdocdir}/%{name}-manual
|
%{_defaultdocdir}/%{name}-manual
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Nov 18 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.21-4
|
||||||
|
- Install source JARs in separate package
|
||||||
|
|
||||||
* Mon Oct 3 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.21-3
|
* Mon Oct 3 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.7.21-3
|
||||||
- Remove build-requires on perl
|
- Remove build-requires on perl
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user