Clean up SPEC file and fix rpmlint complaints

This commit is contained in:
Simone Caronni 2013-06-10 11:33:03 +02:00
parent 1e0c6dbe08
commit 407da55d4c

View File

@ -1,38 +1,33 @@
Name: libssh Name: libssh
Version: 0.5.4 Version: 0.5.4
Release: 2%{?dist} Release: 3%{?dist}
Summary: A library implementing the SSH2 protocol (0xbadc0de version) Summary: A library implementing the SSH2 protocol (0xbadc0de version)
Group: System Environment/Libraries
License: LGPLv2+ License: LGPLv2+
#original URL: http://0xbadc0de.be/?part=libssh
URL: http://www.libssh.org/ URL: http://www.libssh.org/
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
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
BuildRequires: cmake
BuildRequires: openssl-devel BuildRequires: openssl-devel
BuildRequires: zlib-devel BuildRequires: zlib-devel
BuildRequires: cmake
%description %description
The ssh library was designed to be used by programmers needing a The ssh library was designed to be used by programmers needing a working SSH
working SSH implementation by the mean of a library. The complete implementation by the mean of a library. The complete control of the client is
control of the client is made by the programmer. With libssh, you can made by the programmer. With libssh, you can remotely execute programs, transfer
remotely execute programs, transfer files, use a secure and transparent files, use a secure and transparent tunnel for your remote programs. With its
tunnel for your remote programs. With its Secure FTP implementation, Secure FTP implementation, you can play with remote files easily, without
you can play with remote files easily, without third-party programs third-party programs others than libcrypto (from openssl).
others than libcrypto (from openssl).
%package devel %package devel
Summary: Development files for %{name} Summary: Development files for %{name}
Group: Development/Libraries Group: Development/Libraries
Requires: %{name} = %{version}-%{release} Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel %description devel
The %{name}-devel package contains libraries and header files for The %{name}-devel package contains libraries and header files for developing
developing applications that use %{name}. applications that use %{name}.
%prep %prep
%setup -q %setup -q
@ -44,33 +39,30 @@ cd obj
make make
%install %install
rm -rf $RPM_BUILD_ROOT
cd obj cd obj
make install DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=%{buildroot}
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} + find %{buildroot} -name '*.la' -delete
chmod 644 $RPM_BUILD_ROOT/usr/include/libssh/* #chmod 644 %{buildroot}%{_includedir}/libssh/*
install -d $RPM_BUILD_ROOT/usr/share install -d %{buildroot}%{_datadir}
mv $RPM_BUILD_ROOT/%{_libdir}/pkgconfig $RPM_BUILD_ROOT/usr/share mv %{buildroot}/%{_libdir}/pkgconfig %{buildroot}/usr/share
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%files %files
%defattr(-,root,root,-)
%doc AUTHORS BSD ChangeLog COPYING README %doc AUTHORS BSD ChangeLog COPYING README
%{_libdir}/*.so.* %{_libdir}/*.so.*
%files devel %files devel
%defattr(-,root,root,-) %{_datadir}/pkgconfig/*.pc
%{_includedir}/* %{_includedir}/*
%{_libdir}/*.so %{_libdir}/*.so
%{_usr}/share/pkgconfig/*.pc
%changelog %changelog
* Mon Jun 10 2013 Simone Caronni <negativo17@gmail.com> - 0.5.4-3
- Clean up SPEC file and fix rpmlint complaints.
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild