Enable EPEL 5, add doxygen docs

This commit is contained in:
Simone Caronni 2013-07-19 09:00:36 +02:00
parent 3f2f9bf85b
commit aa5040bffb

View File

@ -1,15 +1,21 @@
Name: libssh Name: libssh
Version: 0.5.4 Version: 0.5.4
Release: 4%{?dist} Release: 5%{?dist}
Summary: A library implementing the SSH2 protocol (0xbadc0de version) Summary: A library implementing the SSH2 protocol (0xbadc0de version)
License: LGPLv2+ License: LGPLv2+
URL: http://www.libssh.org/ URL: http://www.libssh.org/
Group: System Environment/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source0: https://red.libssh.org/attachments/download/41/libssh-0.5.4.tar.gz Source0: https://red.libssh.org/attachments/download/41/libssh-0.5.4.tar.gz
Source1: https://red.libssh.org/attachments/download/42/libssh-0.5.4.tar.asc Source1: https://red.libssh.org/attachments/download/42/libssh-0.5.4.tar.asc
Patch0: libssh-channel-close.patch Patch0: libssh-0.5.4-channel-close.patch
Patch1: libssh-0.5.4-disable-latex-documentation.patch
Patch2: libssh-0.5.4-fix-html-doc-generation.patch
Patch3: libssh-0.5.4-fix-typo.patch
BuildRequires: cmake BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
@ -22,8 +28,9 @@ Secure FTP implementation, you can play with remote files easily, without
third-party programs others than libcrypto (from openssl). third-party programs others than libcrypto (from openssl).
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release} Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
The %{name}-devel package contains libraries and header files for developing The %{name}-devel package contains libraries and header files for developing
@ -32,18 +39,25 @@ applications that use %{name}.
%prep %prep
%setup -q %setup -q
%patch0 -p1 -b .channel-close %patch0 -p1 -b .channel-close
%patch1 -p1 -b .disable-latex-documentation
%patch2 -p1 -b .fix-html-doc-generation
%patch3 -p1 -b .fix-typo
# Remove examples, they are not packaged and do not build on EPEL 5
sed -i -e 's|add_subdirectory(examples)||g' CMakeLists.txt
rm -fr examples
%build %build
mkdir obj mkdir obj
cd obj cd obj
%cmake .. %cmake ..
make make
make doc
%install %install
rm -rf %{buildroot}
cd obj cd obj
make install DESTDIR=%{buildroot} make install DESTDIR=%{buildroot}
find %{buildroot} -name '*.la' -delete find %{buildroot} -name '*.la' -delete
#chmod 644 %{buildroot}%{_includedir}/libssh/*
install -d %{buildroot}%{_datadir} install -d %{buildroot}%{_datadir}
mv %{buildroot}/%{_libdir}/pkgconfig %{buildroot}/usr/share mv %{buildroot}/%{_libdir}/pkgconfig %{buildroot}/usr/share
@ -51,16 +65,24 @@ mv %{buildroot}/%{_libdir}/pkgconfig %{buildroot}/usr/share
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%clean
rm -rf %{buildroot}
%files %files
%doc AUTHORS BSD ChangeLog COPYING README %doc AUTHORS BSD ChangeLog COPYING README
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%doc obj/doc/html
%{_datadir}/pkgconfig/*.pc %{_datadir}/pkgconfig/*.pc
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so %{_libdir}/*.so
%changelog %changelog
* Thu Jul 18 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-5
- Add EPEL 5 support.
- Add Debian patches to enable Doxygen documentation.
* Tue Jul 16 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-4 * Tue Jul 16 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-4
- Add patch for #982685. - Add patch for #982685.