]> git.pld-linux.org Git - SPECS.git/blob - libgssh.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libgssh.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        LibGSSH - friendly GIO wrapper for libssh
6 Summary(pl.UTF-8):      LibGSSH - przyjazne obudowanie GIO dla libssh
7 Name:           libgssh
8 Version:        2014.4
9 Release:        2
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        http://ftp.gnome.org/pub/GNOME/sources/libgssh/%{version}/%{name}-%{version}.tar.xz
13 # Source0-md5:  8aac1b015961682287bbf37ae324d66a
14 URL:            https://wiki.gnome.org/Projects/LibGSSH
15 BuildRequires:  autoconf >= 2.63
16 BuildRequires:  automake >= 1:1.11
17 BuildRequires:  glib2-devel >= 1:2.34.0
18 BuildRequires:  libgsystem-devel
19 BuildRequires:  libssh-devel >= 0.6
20 BuildRequires:  libtool >= 2:2.2.4
21 BuildRequires:  pkgconfig
22 BuildRequires:  tar >= 1:1.22
23 BuildRequires:  xz
24 Requires:       glib2 >= 1:2.34.0
25 Requires:       libssh >= 0.6
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 LibGSSH wraps libssh (0.6 or newer) with GIO-like friendly
30 asynchronous API.
31
32 %description -l pl.UTF-8
33 LibGSSH obudowuje libssh (w wersji 0.6 lub nowszej) w przyjazne,
34 asynchroniczne API w stylu GIO.
35
36 %package devel
37 Summary:        Header files for LibGSSH library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki LibGSSH
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       glib2-devel >= 1:2.34.0
42
43 %description devel
44 Header files for LibGSSH library.
45
46 %description devel -l pl.UTF-8
47 Pliki nagłówkowe biblioteki LibGSSH.
48
49 %package static
50 Summary:        Static LibGSSH library
51 Summary(pl.UTF-8):      Statyczna biblioteka LibGSSH
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static LibGSSH library.
57
58 %description static -l pl.UTF-8
59 Statyczna biblioteka LibGSSH.
60
61 %prep
62 %setup -q
63
64 %build
65 %{__libtoolize}
66 %{__aclocal} -I m4
67 %{__autoconf}
68 %{__autoheader}
69 %{__automake}
70 %configure \
71         --disable-silent-rules \
72         %{?with_static_libs:--enable-static}
73 %{__make}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 # obsoleted by pkg-config
82 %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %attr(755,root,root) %{_libdir}/libgssh-1.so.*.*.*
93 %attr(755,root,root) %ghost %{_libdir}/libgssh-1.so.1
94
95 %files devel
96 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/libgssh-1.so
98 %{_includedir}/libgssh-1
99 %{_pkgconfigdir}/libgssh-1.pc
100
101 %if %{with static_libs}
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libgssh-1.a
105 %endif
This page took 0.974583 seconds and 3 git commands to generate.