Name: jcip-annotations Version: 1 Release: 29.20060626%{?dist} Summary: Java annotations for multithreaded software License: CC-BY URL: http://www.jcip.net/ Source0: http://jcip.net.s3-website-us-east-1.amazonaws.com/%{name}-src.jar Source1: http://mirrors.ibiblio.org/pub/mirrors/maven2/net/jcip/%{name}/1.0/%{name}-1.0.pom # Add temporary dependency on javapackages-local, for %%add_maven_depmap macro # See https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject.org/thread/R3KZ7VI5DPCMCELFIVJQ4AXB2WQED35C/ BuildRequires: javapackages-local # There is no point in building native libraries, as the sources contain only # annotation definitions, so no code would be generated. BuildArch: noarch BuildRequires: java-devel >= 1.5.0, jpackage-utils Requires: java-headless >= 1.5.0, jpackage-utils %description This package provides class, field, and method level annotations for describing thread-safety policies. These annotations are relatively unintrusive and are beneficial to both users and maintainers. Users can see immediately whether a class is thread-safe, and maintainers can see immediately whether thread-safety guarantees must be preserved. Annotations are also useful to a third constituency: tools. Static code-analysis tools may be able to verify that the code complies with the contract indicated by the annotation, such as verifying that a class annotated with @Immutable actually is immutable. %package javadoc Summary: Javadoc for jcip-annotations %description javadoc Javadoc documentation for the jcip-annotations package. On systems where javadoc is sinjdoc, this package contains nothing useful since sinjdoc does not understand annotations. %prep %setup -q -c # Get rid of the manifest created upstream with ant rm -fr META-INF # Fix DOS line endings sed -i 's/\r//' net/jcip/annotations/package.html %build mkdir classes find . -name '*.java' | xargs %javac -g -source 1.8 -target 1.8 -d classes cd classes %jar cf ../%{name}.jar net cd .. %javadoc -Xdoclint:none -d docs -source 1.8 net.jcip.annotations %install mkdir -p %{buildroot}%{_javadir} mv %{name}.jar %{buildroot}%{_javadir}/%{name}.jar # install maven metadata mkdir -p %{buildroot}/%{_mavenpomdir} cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom %add_maven_depmap -a com.github.stephenc.jcip:jcip-annotations # install javadoc mkdir -p %{buildroot}%{_javadocdir}/%{name} cp -pr docs/* %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %files javadoc %{_javadocdir}/%{name} %changelog * Fri Jul 10 2020 Jiri Vanek - 1-29.20060626 - Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 * Sat May 23 2020 Richard Fearn - 1-28.20060626 - Enable building with JDK 11: use source/target 1.8 * Wed Jan 29 2020 Fedora Release Engineering - 1-27.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Thu Jul 25 2019 Fedora Release Engineering - 1-26.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Fri Feb 01 2019 Fedora Release Engineering - 1-25.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Jul 13 2018 Fedora Release Engineering - 1-24.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Wed Feb 07 2018 Fedora Release Engineering - 1-23.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Sat Sep 16 2017 Richard Fearn - 1-22.20060626 - Remove unnecessary Group: tags * Fri Jul 28 2017 Richard Fearn - 1-21.20060626 - Add temporary dependency on javapackages-local, for %%add_maven_depmap macro * Wed Jul 26 2017 Fedora Release Engineering - 1-20.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 1-19.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 1-18.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Aug 25 2015 Richard Fearn - 1-17.20060626 - jcip-annotations-javadoc no longer depends on jcip-annotations * Wed Jul 01 2015 Richard Fearn - 1-16.20060626 - Disable doclint when building Javadoc * Wed Jun 17 2015 Fedora Release Engineering - 1-15.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Nov 10 2014 Mikolaj Izdebski - 1-14.20060626 - Add alias for com.github.stephenc.jcip:jcip-annotations * Tue Jun 10 2014 Richard Fearn - 1-13.20060626 - Switch to .mfiles * Sun Jun 08 2014 Fedora Release Engineering - 1-12.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sun Mar 16 2014 Richard Fearn - 1-11.20060626 - Change java dependency to java-headless (bug #1068255) * Sun Feb 23 2014 Richard Fearn - 1-10.20060626 - Remove jpackage-utils dependency from jcip-annotations-javadoc * Sun Feb 23 2014 Richard Fearn - 1-9.20060626 - Update source URL * Sat Aug 03 2013 Fedora Release Engineering - 1-8.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 1-7.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Mon Nov 26 2012 Mikolaj Izdebski - 1-6.20060626 - Update to current packaging guidelines - Resolves: rhbz#880283 * Thu Jul 19 2012 Fedora Release Engineering - 1-5.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Fri Jan 13 2012 Fedora Release Engineering - 1-4.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Feb 09 2011 Fedora Release Engineering - 1-3.20060626 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Dec 3 2010 Stanislav Ochotnicky - 1-2.20060626 - Fix maven metadata and pom filename (Resolves rhbz#655807) - Use versionless jars and javadoc - Few other packaging fixes * Wed Jan 6 2010 Jerry James - 1-1.20060626 - Add maven depmap - Upstream uploaded a new source jar with a trivial difference - Fix the version-release number * Fri Jul 24 2009 Fedora Release Engineering - 0-20060628.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Wed Feb 25 2009 Fedora Release Engineering - 0-20060627.4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon May 5 2008 Jerry James - 0-20060626.4 - Don't package source or HTML files in the jar * Fri Apr 18 2008 Jerry James - 0-20060626.3 - Changes required by new Java packaging guidelines * Wed Nov 14 2007 Jerry James - 0-20060626.2 - Don't make the javadocs appear in a docs subdirectory * Tue Sep 18 2007 Jerry James - 0-20060626.1 - Initial RPM