[7180] | 1 | %define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0} |
---|
| 2 | |
---|
[521] | 3 | Summary: A library implementing the SSH2 protocol |
---|
| 4 | Summary(ja): SSH2 プロトコルを実装するためのライブラリ |
---|
| 5 | Name: libssh2 |
---|
[10048] | 6 | Version: 1.7.0 |
---|
[10070] | 7 | Release: 2%{?_dist_release} |
---|
[521] | 8 | |
---|
| 9 | Group: System Environment/Libraries |
---|
| 10 | License: BSD |
---|
| 11 | URL: http://www.libssh2.org/ |
---|
| 12 | Source0: http://downloads.sourceforge.net/libssh2/%{name}-%{version}.tar.gz |
---|
| 13 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root |
---|
| 14 | |
---|
| 15 | BuildRequires: openssl-devel |
---|
| 16 | BuildRequires: zlib-devel |
---|
| 17 | |
---|
| 18 | %description |
---|
| 19 | libssh2 is a library implementing the SSH2 protocol as defined by |
---|
| 20 | Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), |
---|
| 21 | SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, |
---|
| 22 | SECSH-DHGEX(04), and SECSH-NUMBERS(10). |
---|
| 23 | |
---|
| 24 | |
---|
| 25 | %package devel |
---|
| 26 | Summary: Development files for %{name} |
---|
| 27 | Summary(ja): %{name} の開発ファイル |
---|
| 28 | Group: Development/Libraries |
---|
| 29 | Requires: %{name} = %{version}-%{release} |
---|
| 30 | |
---|
| 31 | %description devel |
---|
| 32 | The %{name}-devel package contains libraries and header files for |
---|
| 33 | developing applications that use %{name}. |
---|
| 34 | |
---|
| 35 | %package docs |
---|
| 36 | Summary: Documentation for %{name} |
---|
| 37 | Summary(ja): %{name} のドキュメント |
---|
| 38 | Group: Development/Libraries |
---|
| 39 | Requires: %{name} = %{version}-%{release} |
---|
| 40 | |
---|
| 41 | %description docs |
---|
| 42 | The %{name}-docs package contains man pages and examples for |
---|
| 43 | developing applications that use %{name}. |
---|
| 44 | |
---|
[7180] | 45 | ## to build compat32 for x86_64 architecture support |
---|
| 46 | %package -n compat32-%{name} |
---|
| 47 | Summary: A library implementing the SSH2 protocol |
---|
| 48 | Summary(ja): SSH2 プロトコルを実装するためのライブラリ |
---|
| 49 | Group: System Environment/Libraries |
---|
[521] | 50 | |
---|
[7180] | 51 | %description -n compat32-%{name} |
---|
| 52 | libssh2 is a library implementing the SSH2 protocol as defined by |
---|
| 53 | Internet Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), |
---|
| 54 | SECSH-CONNECTION(23), SECSH-ARCH(20), SECSH-FILEXFER(06)*, |
---|
| 55 | SECSH-DHGEX(04), and SECSH-NUMBERS(10). |
---|
| 56 | |
---|
| 57 | |
---|
[521] | 58 | %prep |
---|
| 59 | %setup -q |
---|
| 60 | |
---|
| 61 | # make sure things are UTF-8... |
---|
| 62 | for i in ChangeLog NEWS ; do |
---|
| 63 | iconv --from=ISO-8859-1 --to=UTF-8 $i > new |
---|
| 64 | mv new $i |
---|
| 65 | done |
---|
| 66 | |
---|
| 67 | %build |
---|
| 68 | %configure --disable-static --enable-shared |
---|
| 69 | |
---|
| 70 | make %{?_smp_mflags} |
---|
| 71 | |
---|
| 72 | %install |
---|
| 73 | rm -rf %{buildroot} |
---|
| 74 | |
---|
| 75 | make install DESTDIR=%{buildroot} INSTALL="install -p" |
---|
| 76 | find %{buildroot} -name '*.la' -exec rm -f {} + |
---|
| 77 | |
---|
| 78 | # clean things up a bit for packaging |
---|
| 79 | ( cd example && make clean ) |
---|
| 80 | rm -rf example/simple/.deps |
---|
| 81 | find example/ -type f '(' -name '*.am' -o -name '*.in' ')' -exec rm -v {} + |
---|
| 82 | |
---|
| 83 | %check |
---|
| 84 | (cd tests && make check) |
---|
| 85 | |
---|
| 86 | %clean |
---|
| 87 | rm -rf %{buildroot} |
---|
| 88 | |
---|
| 89 | |
---|
| 90 | %post -p /sbin/ldconfig |
---|
| 91 | |
---|
| 92 | %postun -p /sbin/ldconfig |
---|
| 93 | |
---|
[7180] | 94 | %post -n compat32-%{name} -p /sbin/ldconfig |
---|
[521] | 95 | |
---|
[7180] | 96 | %postun -n compat32-%{name} -p /sbin/ldconfig |
---|
| 97 | |
---|
| 98 | |
---|
[521] | 99 | %files |
---|
| 100 | %defattr(-,root,root,-) |
---|
| 101 | %doc AUTHORS ChangeLog COPYING README NEWS |
---|
| 102 | %{_libdir}/*.so.* |
---|
| 103 | |
---|
| 104 | %files docs |
---|
| 105 | %defattr(-,root,root,-) |
---|
[10048] | 106 | %doc COPYING example/ docs/HACKING |
---|
[521] | 107 | %{_mandir}/man?/* |
---|
| 108 | |
---|
| 109 | %files devel |
---|
| 110 | %defattr(-,root,root,-) |
---|
| 111 | %doc COPYING |
---|
| 112 | %{_includedir}/* |
---|
| 113 | %{_libdir}/*.so |
---|
[2602] | 114 | %{_libdir}/pkgconfig/libssh2.pc |
---|
[521] | 115 | |
---|
[7180] | 116 | %if %{build_compat32} |
---|
| 117 | %files -n compat32-%{name} |
---|
| 118 | %defattr(-,root,root,-) |
---|
| 119 | %{_libdir}/*.so.* |
---|
| 120 | %endif |
---|
| 121 | |
---|
[521] | 122 | %changelog |
---|
[10070] | 123 | * Sat Mar 12 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.0-2 |
---|
| 124 | - rebuilt with openssl 1.0.2g |
---|
| 125 | |
---|
[10048] | 126 | * Fri Feb 26 2016 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.7.0-1 |
---|
| 127 | - new upstream release with security fixes |
---|
| 128 | |
---|
[7180] | 129 | * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.2-1 |
---|
| 130 | - new upstream reelase |
---|
| 131 | - add compat32 package |
---|
| 132 | |
---|
[2602] | 133 | * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.2.7-1 |
---|
| 134 | - new upstream release |
---|
| 135 | - fix %%files |
---|
| 136 | |
---|
[521] | 137 | * Tue Sep 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0-1 |
---|
| 138 | - initial build for Vine Linux |
---|
| 139 | |
---|
| 140 | * Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.0-4 |
---|
| 141 | - rebuilt with new openssl |
---|
| 142 | |
---|
| 143 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-3 |
---|
| 144 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
| 145 | |
---|
| 146 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-2 |
---|
| 147 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
| 148 | |
---|
| 149 | * Mon Feb 16 2009 Chris Weyl <cweyl@alumni.drew.edu> 1.0-1 |
---|
| 150 | - update to 1.0 |
---|
| 151 | |
---|
| 152 | * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.18-8 |
---|
| 153 | - rebuild with new openssl |
---|
| 154 | |
---|
| 155 | * Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.18-7 |
---|
| 156 | - Autorebuild for GCC 4.3 |
---|
| 157 | |
---|
| 158 | * Wed Dec 05 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-6 |
---|
| 159 | - rebuild for new openssl... |
---|
| 160 | |
---|
| 161 | * Tue Nov 27 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-5 |
---|
| 162 | - bump |
---|
| 163 | |
---|
| 164 | * Tue Nov 27 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-4 |
---|
| 165 | - add INSTALL arg to make install vs env. var |
---|
| 166 | |
---|
| 167 | * Mon Nov 26 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-3 |
---|
| 168 | - run tests; don't package test |
---|
| 169 | |
---|
| 170 | * Sun Nov 18 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-2 |
---|
| 171 | - split docs into -docs (they seemed... large.) |
---|
| 172 | |
---|
| 173 | * Tue Nov 13 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.18-1 |
---|
| 174 | - update to 0.18 |
---|
| 175 | |
---|
| 176 | * Sun Oct 14 2007 Chris Weyl <cweyl@alumni.drew.edu> 0.17-1 |
---|
| 177 | - update to 0.17 |
---|
| 178 | - many spec file changes |
---|
| 179 | |
---|
| 180 | * Wed May 23 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.15-0.2.20070506 |
---|
| 181 | - Fix release tag |
---|
| 182 | - Move manpages to -devel package |
---|
| 183 | - Add Examples dir to -devel package |
---|
| 184 | |
---|
| 185 | * Sun May 06 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 0.15-0.20070506.1 |
---|
| 186 | - Initial build |
---|