[mingw-libssh2: 13/14] Spec clean up

Kalev Lember kalev at fedoraproject.org
Tue Mar 6 19:40:17 UTC 2012


commit ceaa125c7ae21505710719e506173a956fa660c2
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Tue Mar 6 21:37:10 2012 +0200

    Spec clean up

 mingw-libssh2.spec |   16 +++-------------
 1 files changed, 3 insertions(+), 13 deletions(-)
---
diff --git a/mingw-libssh2.spec b/mingw-libssh2.spec
index fcb7a30..346e686 100644
--- a/mingw-libssh2.spec
+++ b/mingw-libssh2.spec
@@ -1,8 +1,5 @@
 %global __strip %{_mingw32_strip}
 %global __objdump %{_mingw32_objdump}
-%global _use_internal_dependency_generator 0
-%global __find_requires %{_mingw32_findrequires}
-%global __find_provides %{_mingw32_findprovides}
 %define __debug_install_post %{_mingw32_debug_install_post}
 
 Name:           mingw-libssh2
@@ -14,11 +11,10 @@ License:        BSD
 Group:          Development/Libraries
 URL:            http://www.libssh2.org/
 Source0:        http://downloads.sourceforge.net/libssh2/libssh2-%{version}.tar.gz
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 BuildArch:      noarch
 
-BuildRequires:  mingw32-filesystem >= 49
+BuildRequires:  mingw32-filesystem
 BuildRequires:  mingw32-gcc
 BuildRequires:  mingw32-binutils
 BuildRequires:  mingw32-openssl
@@ -51,7 +47,7 @@ Group:          Development/Libraries
 Static version of the MinGW Windows SSH2 library.
 
 
-%{_mingw32_debug_package}
+%{?_mingw32_debug_package}
 
 
 %prep
@@ -64,19 +60,13 @@ make %{?_smp_mflags}
 
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 
 # Remove man pages which duplicate native Fedora.
 rm -r $RPM_BUILD_ROOT%{_mingw32_mandir}/man3
 
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-
 %files -n mingw32-libssh2
-%defattr(-,root,root,-)
 %doc COPYING
 %{_mingw32_bindir}/libssh2-1.dll
 %{_mingw32_libdir}/libssh2.dll.a
@@ -87,13 +77,13 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %files -n mingw32-libssh2-static
-%defattr(-,root,root,-)
 %{_mingw32_libdir}/libssh2.a
 
 
 %changelog
 * Tue Mar 06 2012 Kalev Lember <kalevlember at gmail.com> - 1.1-9
 - Renamed the source package to mingw-libssh2 (#800434)
+- Spec clean up
 
 * Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.1-8
 - Rebuild against the mingw-w64 toolchain


More information about the scm-commits mailing list