spec: lint specfile
Fix some FedoraReview warnings, trim lines, use tabs only, .. Version: 9.2.1002-4
This commit is contained in:
parent
49dac4ccd8
commit
ff9cd905aa
@ -46,7 +46,7 @@ URL: http://jdbc.postgresql.org/
|
|||||||
|
|
||||||
Source0: http://jdbc.postgresql.org/download/%{name}-%{upstreamver}.src.tar.gz
|
Source0: http://jdbc.postgresql.org/download/%{name}-%{upstreamver}.src.tar.gz
|
||||||
# originally http://repo2.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/postgresql-8.4-701.jdbc4.pom:
|
# originally http://repo2.maven.org/maven2/postgresql/postgresql/8.4-701.jdbc4/postgresql-8.4-701.jdbc4.pom:
|
||||||
Source1: postgresql-jdbc.pom
|
Source1: %{name}.pom
|
||||||
|
|
||||||
%if ! %{gcj_support}
|
%if ! %{gcj_support}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -56,17 +56,16 @@ BuildRequires: jpackage-utils
|
|||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildRequires: ant-junit
|
BuildRequires: ant-junit
|
||||||
BuildRequires: junit
|
BuildRequires: junit
|
||||||
BuildRequires: findutils
|
|
||||||
# gettext is only needed if we try to update translations
|
# gettext is only needed if we try to update translations
|
||||||
#BuildRequires: gettext
|
#BuildRequires: gettext
|
||||||
%if %{gcj_support}
|
%if %{gcj_support}
|
||||||
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
BuildRequires: java-gcj-compat-devel >= 1.0.31
|
||||||
Requires(post): java-gcj-compat >= 1.0.31
|
Requires(post): java-gcj-compat >= 1.0.31
|
||||||
Requires(postun): java-gcj-compat >= 1.0.31
|
Requires(postun): java-gcj-compat >= 1.0.31
|
||||||
%endif
|
%endif
|
||||||
Requires: java
|
Requires: java
|
||||||
Requires(post): jpackage-utils
|
Requires(post): jpackage-utils
|
||||||
Requires(postun): jpackage-utils
|
Requires(postun): jpackage-utils
|
||||||
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
@ -97,8 +96,6 @@ export CLASSPATH=
|
|||||||
ant
|
ant
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
|
||||||
|
|
||||||
install -d $RPM_BUILD_ROOT%{_javadir}
|
install -d $RPM_BUILD_ROOT%{_javadir}
|
||||||
# Per jpp conventions, jars have version-numbered names and we add
|
# Per jpp conventions, jars have version-numbered names and we add
|
||||||
# versionless symlinks.
|
# versionless symlinks.
|
||||||
@ -118,13 +115,12 @@ popd
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Install the pom after inserting the correct version number
|
# Install the pom after inserting the correct version number
|
||||||
sed 's/UPSTREAM_VERSION/%{upstreamver}/g' %{SOURCE1} >JPP-postgresql-jdbc.pom
|
sed 's/UPSTREAM_VERSION/%{upstreamver}/g' %{SOURCE1} >JPP-%{name}.pom
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}/
|
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}/
|
||||||
install -m 644 JPP-postgresql-jdbc.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-postgresql-jdbc.pom
|
install -m 644 JPP-%{name}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
|
||||||
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
%add_maven_depmap JPP-%{name}.pom %{name}.jar
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%update_maven_depmap
|
%update_maven_depmap
|
||||||
@ -157,6 +153,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%changelog
|
%changelog
|
||||||
* Tue Aug 06 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.1002-4
|
* Tue Aug 06 2013 Pavel Raiskup <praiskup@redhat.com> - 9.2.1002-4
|
||||||
- don't use removed macro %%add_to_maven_depmap (#992816)
|
- don't use removed macro %%add_to_maven_depmap (#992816)
|
||||||
|
- lint: trim-lines, reuse %%{name} macro, fedora-review fixes
|
||||||
|
|
||||||
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.2.1002-3
|
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.2.1002-3
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user