3 %bcond_without apidocs # do not build and package API docs
4 %bcond_without static_libs # don't build static libraries
6 Summary: Minimalist and read-only SMB client library
7 Summary(pl.UTF-8): Minimalistyczna biblioteka klienta SMB (tylko do odczytu)
11 License: LGPL v2.1+ or commercial
13 #Source0Download: https://github.com/videolabs/libdsm/releases
14 Source0: https://github.com/videolabs/libdsm/releases/download/v%{version}/%{name}-%{version}.tar.gz
15 # Source0-md5: f369fed56ec61f08951363157b45c276
16 URL: https://videolabs.github.io/libdsm/
17 #BuildRequires: autoconf >= 2.53
18 #BuildRequires: automake >= 1:1.6
19 %{?with_apidocs:BuildRequires: doxygen}
20 BuildRequires: libbsd-devel
21 BuildRequires: libtasn1-devel >= 3.0
22 #BuildRequires: libtool >= 2:2
23 Requires: libtasn1 >= 3.0
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 lib Defective SMb (libDSM) is a SMB protocol client implementation in
28 pure old C, with a lot less features than Samba but with a much
29 simpler, and a more permissive license (currently LGPL + proprietary).
31 %description -l pl.UTF-8
32 lib Defective SMb (libDSM) to implementacja klienta protokołu SMB w
33 czystym, starym C. Ma o wiele mniej możliwości niż Samba, ale jest
34 dużo prostsza i ma luźniejszą licencję (obecnie LGPL z opcją
38 Summary: Header files for liBDSM library
39 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki liBDSM
40 Group: Development/Libraries
41 Requires: %{name} = %{version}-%{release}
42 Requires: libtasn1-devel >= 3.0
45 Header files for liBDSM library.
47 %description devel -l pl.UTF-8
48 Pliki nagłówkowe biblioteki liBDSM.
51 Summary: Static liBDSM library
52 Summary(pl.UTF-8): Statyczna biblioteka liBDSM
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{version}-%{release}
57 Static liBDSM library.
59 %description static -l pl.UTF-8
60 Statyczna biblioteka liBDSM.
63 Summary: API documentation for liBDSM library
64 Summary(pl.UTF-8): Dokumentacja API biblioteki liBDSM
68 API documentation for liBDSM library.
70 %description apidocs -l pl.UTF-8
71 Dokumentacja API biblioteki liBDSM.
76 %{__sed} -ne '1,/^===/ p' COPYING > LICENSE
80 --disable-silent-rules \
81 %{!?with_static_libs:--disable-static}
89 rm -rf $RPM_BUILD_ROOT
92 DESTDIR=$RPM_BUILD_ROOT
94 # obsoleted by pkgconfig
95 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdsm.la
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS LICENSE NEWS
106 %attr(755,root,root) %{_bindir}/dsm
107 %attr(755,root,root) %{_bindir}/dsm_discover
108 %attr(755,root,root) %{_bindir}/dsm_inverse
109 %attr(755,root,root) %{_bindir}/dsm_lookup
110 %attr(755,root,root) %{_libdir}/libdsm.so.*.*.*
111 %attr(755,root,root) %ghost %{_libdir}/libdsm.so.3
114 %defattr(644,root,root,755)
115 %attr(755,root,root) %{_libdir}/libdsm.so
117 %{_pkgconfigdir}/libdsm.pc
119 %if %{with static_libs}
121 %defattr(644,root,root,755)
127 %defattr(644,root,root,755)