Guidelines fixes.

Rebuild for OSGi provides.
This commit is contained in:
Alexander Kurtakov 2011-09-15 23:26:08 +03:00
parent ba99e0d12e
commit b2fd24b0a7

View File

@ -30,7 +30,7 @@
Name: jsch
Version: 0.1.44
Release: 3%{?dist}
Release: 4%{?dist}
Epoch: 0
Summary: Pure Java implementation of SSH2
Group: Development/Libraries
@ -94,40 +94,35 @@ zip dist/lib/%{name}-*.jar META-INF/MANIFEST.MF
%install
# jars
rm -rf $RPM_BUILD_ROOT
install -Dpm 644 dist/lib/%{name}-*.jar \
$RPM_BUILD_ROOT%{_javadir}/%{name}.jar
# javadoc
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# examples
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
cp -pr examples/* $RPM_BUILD_ROOT%{_datadir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_datadir}/%{name}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{_javadir}/*.jar
%doc LICENSE.txt
%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}*
%doc LICENSE.txt
%files demo
%defattr(-,root,root,-)
%doc %{_datadir}/%{name}*
%doc LICENSE.txt
%changelog
* Thu Sep 15 2011 Alexander Kurtakov <akurtako@redhat.com> 0:0.1.44-4
- Guidelines fixes.
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:0.1.44-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild