1ccc76d
Name:             paranamer
1ccc76d
Version:          2.4.1
8620b80
Release:          10%{?dist}
1ccc76d
Summary:          Library for accessing non-private method parameter names at run-time
1ccc76d
Group:            Development/Libraries
1ccc76d
License:          BSD
1ccc76d
URL:              http://paranamer.codehaus.org
1ccc76d
1ccc76d
# git clone git://git.codehaus.org/paranamer-git.git paranamer-2.4.1
1ccc76d
# cd paranamer-2.4.1 && git checkout paranamer-2.4.1
1ccc76d
# find . -name '*.jar' -delete
1ccc76d
# rm -rf .git
1ccc76d
# cd .. && tar cafJ paranamer-2.4.1-CLEAN.tar.xz paranamer-2.4.1
1ccc76d
Source0:          paranamer-%{version}-CLEAN.tar.xz
1ccc76d
1ccc76d
BuildArch:        noarch
1ccc76d
1ccc76d
BuildRequires:    jpackage-utils
1ccc76d
BuildRequires:    java-devel
Stanislav Ochotnicky 921b468
BuildRequires:    maven-local
1ccc76d
BuildRequires:    maven-compiler-plugin
1ccc76d
BuildRequires:    maven-install-plugin
1ccc76d
BuildRequires:    maven-jar-plugin
1ccc76d
BuildRequires:    maven-javadoc-plugin
Marek Goldmann 48a1539
BuildRequires:    jmock
1ccc76d
1ccc76d
Requires:         jpackage-utils
1ccc76d
1ccc76d
%description
1ccc76d
It is a library that allows the parameter names of non-private methods
1ccc76d
and constructors to be accessed at runtime.
1ccc76d
1ccc76d
%package javadoc
1ccc76d
Summary:          Javadocs for %{name}
1ccc76d
Group:            Documentation
1ccc76d
Requires:         jpackage-utils
1ccc76d
1ccc76d
%description javadoc
1ccc76d
This package contains the API documentation for %{name}.
1ccc76d
1ccc76d
%prep
1ccc76d
%setup -q
1ccc76d
1ccc76d
chmod -x LICENSE.txt
1ccc76d
Marek Goldmann 48a1539
# Remove wagon extension
Marek Goldmann 48a1539
%pom_xpath_remove "pom:build/pom:extensions"
Marek Goldmann 48a1539
# Disable distribution module
Marek Goldmann 48a1539
%pom_disable_module paranamer-distribution
Marek Goldmann 48a1539
# Specify version in the plugin
Marek Goldmann 48a1539
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'paranamer-maven-plugin']" "<version>%{version}</version>" paranamer/pom.xml
Marek Goldmann 48a1539
1ccc76d
%build
Marek Goldmann 48a1539
# Test failures
Marek Goldmann 5934cf4
%mvn_build -f
1ccc76d
1ccc76d
%install
Marek Goldmann 5934cf4
%mvn_install
Marek Goldmann 5934cf4
Marek Goldmann 5934cf4
%files -f .mfiles
Marek Goldmann 5934cf4
%dir %{_javadir}/%{name}
1ccc76d
%doc LICENSE.txt
1ccc76d
Marek Goldmann 5934cf4
%files javadoc -f .mfiles-javadoc
1ccc76d
%doc LICENSE.txt
1ccc76d
1ccc76d
%changelog
8620b80
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-10
8620b80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
8620b80
Marek Goldmann 5934cf4
* Tue Jun 17 2014 Marek Goldmann <mgoldman@redhat.com> - 2.4.1-9
Marek Goldmann 5934cf4
- Switch to xmvn
Marek Goldmann 5934cf4
3ebd3e6
* Fri Jun 06 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-8
3ebd3e6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3ebd3e6
9c59090
* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 2.4.1-7
9c59090
- Use Requires: java-headless rebuild (#1067528)
9c59090
80343e1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-6
80343e1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
80343e1
Marek Goldmann 48a1539
* Wed Feb 20 2013 Marek Goldmann <mgoldman@redhat.com> - 2.4.1-5
Marek Goldmann 48a1539
- Using pom macros
Marek Goldmann 48a1539
- Fixed build by adding version to the plugin
Marek Goldmann 48a1539
7d54c60
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-4
7d54c60
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
7d54c60
Stanislav Ochotnicky 921b468
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 2.4.1-3
Stanislav Ochotnicky 921b468
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
Stanislav Ochotnicky 921b468
- Replace maven BuildRequires with maven-local
Stanislav Ochotnicky 921b468
758274a
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-2
758274a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
758274a
1ccc76d
* Mon Mar 12 2012 Marek Goldmann <mgoldman@redhat.com> 2.4.1-1
1ccc76d
- Upstream release 2.4.1
1ccc76d
- Cleanup in spec file
1ccc76d
1ccc76d
* Mon Mar 12 2012 Marek Goldmann <mgoldman@redhat.com> 2.2-2
1ccc76d
- Updated summary and url
1ccc76d
1ccc76d
* Tue Feb 21 2012 Marek Goldmann <mgoldman@redhat.com> 2.2-1
1ccc76d
- Initial packaging
1ccc76d