diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c98b3c6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +/access-modifier-1.4.tar.gz +/LICENSE.txt +/access-modifier-1.7.tar.gz diff --git a/access-modifier-annotation.spec b/access-modifier-annotation.spec new file mode 100644 index 0000000..4eea9ba --- /dev/null +++ b/access-modifier-annotation.spec @@ -0,0 +1,108 @@ +%global shortname access-modifier + +Name: access-modifier-annotation +Version: 1.7 +Release: 6%{?dist} +Summary: Java annotation for custom access modifiers + +# License is specified in pom file +License: MIT +URL: https://github.com/kohsuke/access-modifier +Source0: https://github.com/kohsuke/%{shortname}/archive/%{shortname}-%{version}.tar.gz +# License text copied from http://www.opensource.org/licenses/mit-license.php +Source1: LICENSE.txt + +BuildArch: noarch + +BuildRequires: maven-local +BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.maven:maven-plugin-api) +BuildRequires: mvn(org.apache.maven:maven-project) +BuildRequires: mvn(org.apache.maven.scm:maven-scm-manager-plexus) +BuildRequires: mvn(org.apache.maven.scm:maven-scm-provider-gitexe) +BuildRequires: mvn(org.jenkins-ci:annotation-indexer) +BuildRequires: mvn(org.kohsuke.metainf-services:metainf-services) +BuildRequires: mvn(org.kohsuke:pom:pom:) +BuildRequires: mvn(org.ow2.asm:asm-debug-all) +BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) + +%description +Allows applications to define custom access modifiers programmatically, +to be enforced at compile time in the opt-in basis. Obviously, +there's no runtime check either - this is strictly a voluntary annotations. +This mechanism is useful for actually making sure that deprecated features +are not used (without actually removing such declarations, which would break +binary compatibility.) + +%package -n access-modifier-checker +Summary: Maven plugin for checking custom access modifiers + +%description -n access-modifier-checker +This package contains Maven plugin for checking custom access modifiers. + +%package javadoc +Summary: Javadoc for %{name} + +%description javadoc +This package contains the API documentation for %{name}. + + +%prep +%setup -q -n %{shortname}-%{shortname}-%{version} + +cp %{SOURCE1} LICENSE + +%mvn_package :access-modifier-checker access-modifier-checker + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc LICENSE +%files -n access-modifier-checker -f .mfiles-access-modifier-checker +%files javadoc -f .mfiles-javadoc +%doc LICENSE + +%changelog +* Wed Feb 07 2018 Fedora Release Engineering - 1.7-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.7-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Wed Jun 15 2016 Mikolaj Izdebski - 1.7-3 +- Add missing build-requires + +* Wed Feb 03 2016 Fedora Release Engineering - 1.7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Mon Jun 29 2015 Michal Srb - 1.7-1 +- Update to 1.7 + +* Tue Jun 16 2015 Fedora Release Engineering - 1.4-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Tue Jun 09 2015 Michal Srb - 1.4-6 +- Move access-modifier-checker to subpackage + +* Mon Jun 08 2015 Michal Srb - 1.4-5 +- Utilize pom_change_dep + +* Sat Jun 07 2014 Fedora Release Engineering - 1.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Tue Mar 04 2014 Stanislav Ochotnicky - 1.4-3 +- Use Requires: java-headless rebuild (#1067528) + +* Sat Aug 03 2013 Fedora Release Engineering - 1.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Thu May 09 2013 Michal Srb - 1.4-1 +- Initial package + diff --git a/dead.package b/dead.package deleted file mode 100644 index 5204a84..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Orphaned for 6+ weeks diff --git a/sources b/sources new file mode 100644 index 0000000..2200ed9 --- /dev/null +++ b/sources @@ -0,0 +1,2 @@ +7d5b03b556811d959a94d9336ba04fe5 LICENSE.txt +2176c61d1aaa6ca10e1d9776aa4b5007 access-modifier-1.7.tar.gz