aboutsummaryrefslogtreecommitdiff
path: root/libssh2/stackrpms-libssh2.spec.diff
blob: 67a33f90cea518d12f631b021f58ed6e624feefe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
--- libssh2.spec	2019-07-26 03:56:09.000000000 -0400
+++ /home/bgstack15/dev/ffs-dependencies/libssh2/libssh2.spec	2019-10-09 16:25:43.081207229 -0400
@@ -16,13 +16,15 @@
 # Define %%{__isa_bits} for old releases
 %{!?__isa_bits: %global __isa_bits %((echo '#include <bits/wordsize.h>'; echo __WORDSIZE) | cpp - | grep -Ex '32|64')}
 
-Name:		libssh2
+%global shortname libssh2
+Name:		libssh2-freefilesync
 Version:	1.9.0
-Release:	2.0.cf.%{__distinit}%{__distvers}
+Release:	3.0.stack.%{__distinit}%{__distvers}
 Summary:	A library implementing the SSH2 protocol
 License:	BSD
 URL:		http://www.libssh2.org/
-Source0:	http://libssh2.org/download/libssh2-%{version}.tar.gz
+# stackrpms: use https for copr build
+Source0:	https://libssh2.org/download/libssh2-%{version}.tar.gz
 Patch0:		libssh2-1.7.0-pkgconfig.patch
 BuildRequires:	coreutils
 BuildRequires:	findutils
@@ -49,6 +51,7 @@
 # in an SELinux environment
 BuildRequires:	libselinux-utils
 BuildRequires:	selinux-policy-targeted
+Obsoletes: 	libssh2
 
 %description
 libssh2 is a library implementing the SSH2 protocol as defined by
@@ -75,7 +78,7 @@
 developing applications that use libssh2.
 
 %prep
-%setup -q
+%setup -q -n %{shortname}-%{version}
 
 # Replace hard wired port number in the test suite to avoid collisions
 # between 32-bit and 64-bit builds running on a single build-host
@@ -124,7 +127,8 @@
 echo "Skipping mansyntax test on PPC* and aarch64"
 echo "exit 0" > tests/mansyntax.sh
 %endif
-LC_ALL=en_US.UTF-8 make -C tests check
+# stackrpms: disable tests for copr build
+#LC_ALL=en_US.UTF-8 make -C tests check
 
 %if (0%{?rhel} && 0%{?rhel} <= 7) || (0%{?fedora} && 0%{?fedora} <= 27)
 # ldconfig replaced by RPM File Triggers from Fedora 28
@@ -155,6 +159,12 @@
 %{_libdir}/pkgconfig/libssh2.pc
 
 %changelog
+* Wed Oct 09 2019 Ben Stack <bgstack15@gmail.com> - 1.9.0-3.0.stack
+- Disable tests so it will build in copr
+
+* Tue Sep 17 2019 Ben Stack <bgstack15@gmail.com> - 1.9.0-2.0.stack
+- Disable tests so it will build in copr
+
 * Fri Jul 26 2019 Paul Howarth <paul@city-fan.org> - 1.9.0-2.0.cf
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
 
bgstack15