]> git.pld-linux.org Git - SPECS.git/blob - libldm.spec
SPECS updated Sat 31 Jul 20:26:02 CEST 2021
[SPECS.git] / libldm.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 %bcond_without  static_libs     # don't build static libraries
5 #
6 Summary:        A tool to manage Windows dynamic disks
7 Summary(pl.UTF-8):      Narzędzie do zarządzania dynamicznymi dyskami Windows
8 Name:           libldm
9 Version:        0.2.4
10 Release:        1
11 License:        LGPL v3+ (libldm), GPL v3+ (ldmtool)
12 Group:          Libraries
13 Source0:        https://github.com/mdbooth/libldm/archive/%{name}-%{version}.tar.gz
14 # Source0-md5:  e3fd10e378bc5334708544dcf58138da
15 URL:            https://github.com/mdbooth/libldm/
16 BuildRequires:  autoconf >= 2.68
17 BuildRequires:  automake >= 1.6
18 BuildRequires:  device-mapper-devel >= 1.0
19 BuildRequires:  glib2-devel >= 1:2.32.0
20 BuildRequires:  gtk-doc >= 1.14
21 BuildRequires:  json-glib-devel >= 0.14.0
22 BuildRequires:  libtool >= 2:2
23 BuildRequires:  libuuid-devel >= 2.21.0
24 BuildRequires:  libxslt-progs
25 BuildRequires:  pkgconfig
26 BuildRequires:  readline-devel
27 BuildRequires:  zlib-devel >= 1.2.5
28 Requires:       device-mapper >= 1.0
29 Requires:       glib2 >= 1:2.32.0
30 Requires:       json-glib >= 0.14.0
31 Requires:       libuuid >= 2.21.0
32 Requires:       zlib >= 1.2.5
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %description
36 libldm is a library for managing Microsoft Windows dynamic disks,
37 which use Microsoft's LDM metadata. It can inspect them, and also
38 create and remove device-mapper block devices which can be mounted. It
39 includes ldmtool, which exposes this functionality as a command-line
40 tool.
41
42 %description -l pl.UTF-8
43 libldm to biblioteka do zarządzania dyskami dynamicznymi Microsoft
44 Windows, wykorzystującymi metadane Microsoft LDM. Biblioteka potrafi
45 odczytywać informacje o nich, a także tworzyć i usuwać urządzenia
46 blokowe device-mappera, które następnie można zamontować. Pakiet
47 zawiera także program ldmtool, udostępniający funkcjonalność
48 biblioteki w postaci narzędzia linii poleceń.
49
50 %package devel
51 Summary:        Header files for libldm library
52 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libldm
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55 Requires:       device-mapper-devel >= 1.0
56 Requires:       glib2-devel >= 1:2.32.0
57 Requires:       json-glib-devel >= 0.14.0
58 Requires:       libuuid-devel >= 2.21.0
59 Requires:       zlib-devel >= 1.2.5
60
61 %description devel
62 Header files for libldm library.
63
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki libldm.
66
67 %package static
68 Summary:        Static libldm library
69 Summary(pl.UTF-8):      Statyczna biblioteka libldm
70 Group:          Development/Libraries
71 Requires:       %{name}-devel = %{version}-%{release}
72
73 %description static
74 Static libldm library.
75
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libldm.
78
79 %package apidocs
80 Summary:        libldm API documentation
81 Summary(pl.UTF-8):      Dokumentacja API biblioteki libldm
82 Group:          Documentation
83 Requires:       gtk-doc-common
84
85 %description apidocs
86 API documentation for libldm library.
87
88 %description apidocs -l pl.UTF-8
89 Dokumentacja API biblioteki libldm.
90
91 %prep
92 %setup -q -n %{name}-%{name}-%{version}
93
94 %build
95 sed -i -e 's/-Werror //' src/Makefile.*
96 %{__gtkdocize}
97 %{__libtoolize}
98 %{__aclocal} -I m4
99 %{__autoconf}
100 %{__autoheader}
101 %{__automake}
102 %configure \
103         %{?with_apidocs:--enable-gtk-doc} \
104         --disable-silent-rules \
105         %{!?with_static_libs:--disable-static} \
106         --with-html-dir=%{_gtkdocdir}
107 %{__make}
108
109 %install
110 rm -rf $RPM_BUILD_ROOT
111
112 %{__make} install \
113         DESTDIR=$RPM_BUILD_ROOT
114
115 # obsoleted by pkg-config
116 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libldm-1.0.la
117
118 %clean
119 rm -rf $RPM_BUILD_ROOT
120
121 %post   -p /sbin/ldconfig
122 %postun -p /sbin/ldconfig
123
124 %files
125 %defattr(644,root,root,755)
126 %attr(755,root,root) %{_bindir}/ldmtool
127 %attr(755,root,root) %{_libdir}/libldm-1.0.so.*.*.*
128 %attr(755,root,root) %ghost %{_libdir}/libldm-1.0.so.0
129 %{_mandir}/man1/ldmtool.1*
130
131 %files devel
132 %defattr(644,root,root,755)
133 %attr(755,root,root) %{_libdir}/libldm-1.0.so
134 %{_includedir}/ldm.h
135 %{_pkgconfigdir}/ldm-1.0.pc
136
137 %if %{with static_libs}
138 %files static
139 %defattr(644,root,root,755)
140 %{_libdir}/libldm-1.0.a
141 %endif
142
143 %if %{with apidocs}
144 %files apidocs
145 %defattr(644,root,root,755)
146 %{_gtkdocdir}/libldm
147 %endif
This page took 0.223495 seconds and 3 git commands to generate.