Add documentation

remotes/origin/f15^2
Gregor Tätzner 2012-01-22 12:43:50 +01:00
parent 5c381367be
commit cd214dd472
3 changed files with 9215 additions and 11 deletions

4709
unison-2.40.63-manual.html Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -28,7 +28,7 @@
Name: unison%{ver_compat_name} Name: unison%{ver_compat_name}
Version: %{ver_compat}%{ver_noncompat} Version: %{ver_compat}%{ver_noncompat}
Release: 4%{?dist} Release: 6%{?dist}
Summary: Multi-master File synchronization tool Summary: Multi-master File synchronization tool
@ -37,6 +37,11 @@ License: GPLv3+
URL: http://www.cis.upenn.edu/~bcpierce/unison URL: http://www.cis.upenn.edu/~bcpierce/unison
Source0: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/unison-%{version}/unison-%{version}.tar.gz Source0: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/unison-%{version}/unison-%{version}.tar.gz
Source1: unison.png Source1: unison.png
Source2: http://www.cis.upenn.edu/~bcpierce/unison/download/releases/unison-%{ver_compat}%{ver_noncompat}/unison-%{ver_compat}%{ver_noncompat}-manual.html
#Add documentation, already fixed in trunk (upstream)
Patch1: %{name}-missing-documentation.patch
ExcludeArch: sparc64 s390 s390x ExcludeArch: sparc64 s390 s390x
BuildRequires: ocaml BuildRequires: ocaml
@ -66,9 +71,12 @@ Note that this package contains Unison version %{ver_compat}, and
will never be upgraded to a different major version. Other packages will never be upgraded to a different major version. Other packages
exist if you require a different major version. exist if you require a different major version.
%prep %prep
%setup -q -n unison-%{version} %setup -q -n unison-%{version}
%patch1 -p1 -b .documentation
cat > %{name}.desktop <<EOF cat > %{name}.desktop <<EOF
[Desktop Entry] [Desktop Entry]
Type=Application Type=Application
@ -82,15 +90,20 @@ StartupNotify=true
Categories=Utility; Categories=Utility;
EOF EOF
%build %build
make NATIVE=true UISTYLE=gtk2 THREADS=true make NATIVE=true UISTYLE=gtk2 THREADS=true
%install %install
mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_bindir}
cp -p unison %{buildroot}%{_bindir}/unison-%{ver_compat} cp -p unison %{buildroot}%{_bindir}/unison-%{ver_compat}
mkdir -p %{buildroot}%{_datadir}/pixmaps mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -p %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png cp -p %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
#additional documentation
cp -p %{SOURCE2} unison-manual.html
desktop-file-install --dir %{buildroot}%{_datadir}/applications \ desktop-file-install --dir %{buildroot}%{_datadir}/applications \
%{name}.desktop %{name}.desktop
@ -102,6 +115,7 @@ alternatives \
%{_bindir}/unison-%{ver_compat} \ %{_bindir}/unison-%{ver_compat} \
%{ver_priority} %{ver_priority}
%postun %postun
if [ $1 -eq 0 ]; then if [ $1 -eq 0 ]; then
alternatives --remove unison \ alternatives --remove unison \
@ -109,26 +123,33 @@ if [ $1 -eq 0 ]; then
fi fi
exit 0 exit 0
%files %files
%defattr(-,root,root,-) %doc COPYING NEWS README unison-manual.html
%doc COPYING NEWS README
%{_bindir}/unison-%{ver_compat} %{_bindir}/unison-%{ver_compat}
%{_datadir}/applications/%{name}.desktop %{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png %{_datadir}/pixmaps/%{name}.png
%changelog %changelog
* Sun Jan 22 2012 Gregor Tätzner <brummbq@fedoraproject.com> - 2.40.63-6
- Patch built-in documentation.
* Sat Jan 21 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 2.40.63-5
- Add unison-manual.html.
* Fri Jan 13 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 2.40.63-4 * Fri Jan 13 2012 Gregor Tätzner <brummbq@fedoraproject.org> - 2.40.63-4
- remove ocaml minimum version - Remove ocaml minimum version.
- add Requires and provides scripts - Add Requires and provides scripts.
* Tue Sep 27 2011 Gregor Taetzner <brummbq@fedoraproject.org> - 2.40.63-3 * Tue Sep 27 2011 Gregor Tätzner <brummbq@fedoraproject.org> - 2.40.63-3
- vendor tag removed - Remove vendor tag.
* Sun Sep 04 2011 Gregor Taetzner <gregor@freenet.de> - 2.40.63-2 * Sun Sep 04 2011 Gregor Tätzner <brummbq@fedoraproject.org> - 2.40.63-2
- remove xorg-x11-font-utils Requirement - Remove xorg-x11-font-utils Requirement.
- enable THREADS=true - Enable THREADS=true.
* Thu Aug 30 2011 Gregor Taetzner <gregor@freenet.de> - 2.40.63-1 * Thu Aug 30 2011 Gregor Tätzner <brummbq@fedoraproject.org> - 2.40.63-1
- Version bump. - Version bump.
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27.57-13 * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.27.57-13