Fridrich Strba 2019-02-06 18:39:44 +00:00 committed by Git OBS Bridge
parent c41a7977e2
commit d0a8590934
2 changed files with 21 additions and 25 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 6 18:36:28 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Cleanup of spec file
- Do not distribute sampleUses as documentation
- Fix javadoc group
-------------------------------------------------------------------
Wed Oct 31 02:14:05 UTC 2018 - Fridrich Strba <fstrba@suse.com>

View File

@ -26,7 +26,7 @@ Summary: Correctness annotations for Java code
# are licensed under CC-BY license, see: $ grep -r Creative .
License: BSD-3-Clause
Group: Development/Libraries/Java
Url: http://code.google.com/p/jsr-305/
URL: http://code.google.com/p/jsr-305/
# There has been no official release yet. This is a snapshot of the Subversion
# repository as of 10 Sep 2013. Use the following commands to generate the
# tarball:
@ -39,13 +39,12 @@ Source2: NOTICE-CC-BY.txt
BuildRequires: ant
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildArch: noarch
%package javadoc
Summary: Javadoc documentation for %{name}
Group: Development/Libraries/Java
Group: Documentation/HTML
%description
This package contains reference implementations, test cases, and other
@ -74,38 +73,28 @@ popd
%install
# jars
mkdir -p %{buildroot}%{_javadir}
cp -a ri/jsr-305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
install -dm 0755 %{buildroot}%{_javadir}
install -pm 0644 ri/jsr-305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/jsr305.jar
# poms
mkdir -p %{buildroot}%{_mavenpomdir}
cp -a ri/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar -a com.google.code.findbugs:jsr305
mkdir -p %{buildroot}%{_mavenpomdir}/%{name}
cp -a pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom
install -pm 0644 ri/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar -a com.google.code.findbugs:jsr305
# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -a ri/javadoc/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr ri/javadoc/* %{buildroot}%{_javadocdir}/%{name}
%fdupes -s %{buildroot}%{_javadocdir}
%files
%defattr(0644,root,root,0755)
%doc ri/LICENSE NOTICE-CC-BY sampleUses
%{_javadir}/%{name}.jar
%files -f .mfiles
%license ri/LICENSE NOTICE-CC-BY
%{_javadir}/jsr305.jar
%{_mavenpomdir}/*
%if %{defined _maven_repository}
%{_mavendepmapfragdir}/%{name}
%else
%{_datadir}/maven-metadata/%{name}.xml*
%endif
%files javadoc
%defattr(0644,root,root,0755)
%doc ri/LICENSE NOTICE-CC-BY
%license ri/LICENSE NOTICE-CC-BY
%{_javadocdir}/%{name}
%changelog