]> git.pld-linux.org Git - packages/libsmraw.git/blame - libsmraw.spec
- release 3 (by relup.sh)
[packages/libsmraw.git] / libsmraw.spec
CommitLineData
fbedd671
JB
1#
2# Conditional build:
3%bcond_without python # Python bindings
4#
5Summary: Library to access the storage media (SM) (split) RAW format
6Summary(pl.UTF-8): Biblioteka służąca do dostępu do surowego (dzielonego) formatu nośnika danych (SM)
7Name: libsmraw
8Version: 20150105
c1b9fb05 9Release: 3
fbedd671
JB
10License: LGPL v3+
11Group: Libraries
12Source0: https://github.com/libyal/libsmraw/archive/%{version}/%{name}-%{version}.tar.gz
13# Source0-md5: 0f40bc041ec5d22083cee46091ef6205
14Patch0: %{name}-system-libs.patch
15URL: https://github.com/libyal/libsmraw/
16BuildRequires: autoconf >= 2.59
17BuildRequires: automake >= 1.6
18BuildRequires: gettext-tools >= 0.18.1
19BuildRequires: libbfio-devel >= 20120426
20BuildRequires: libcdata-devel >= 20150102
21BuildRequires: libcerror-devel >= 20120425
22BuildRequires: libcfile-devel >= 20140503
23BuildRequires: libclocale-devel >= 20120425
24BuildRequires: libcnotify-devel >= 20120425
25BuildRequires: libcpath-devel >= 20120701
26BuildRequires: libcsplit-devel >= 20120701
27BuildRequires: libcstring-devel >= 20120425
28BuildRequires: libcsystem-devel >= 20141018
29BuildRequires: libcthreads-devel >= 20130509
30BuildRequires: libfcache-devel >= 20140601
31BuildRequires: libfdata-devel >= 20140915
32BuildRequires: libfuse-devel >= 2.6
33BuildRequires: libfvalue-devel >= 20130415
34BuildRequires: libhmac-devel >= 20130714
35BuildRequires: libuna-devel >= 20120425
36BuildRequires: libtool
37BuildRequires: openssl-devel >= 1.0
38BuildRequires: pkgconfig
39%{?with_python:BuildRequires: python-devel >= 1:2.5}
40BuildRequires: sed >= 4.0
41Requires: libbfio >= 20120426
42Requires: libcdata >= 20150102
43Requires: libcerror >= 20120425
44Requires: libcfile >= 20140503
45Requires: libclocale >= 20120425
46Requires: libcnotify >= 20120425
47Requires: libcpath >= 20120701
48Requires: libcsplit >= 20120701
49Requires: libcstring >= 20120425
50Requires: libcthreads >= 20130509
51Requires: libfcache >= 20140601
52Requires: libfdata >= 20140915
53Requires: libfvalue >= 20130415
54Requires: libuna >= 20120425
55BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56
57%description
58libsmraw is a library to access the storage media (SM) (split) RAW
59format.
60
61%description -l pl.UTF-8
62libsmraw to biblioteka służąca do dostępu do surowego (dzielonego)
63formatu nośnika danych (SM - Storage Media).
64
65%package devel
66Summary: Header files for libsmraw library
67Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsmraw
68Group: Development/Libraries
69Requires: %{name} = %{version}-%{release}
70Requires: libbfio-devel >= 20120426
71Requires: libcdata-devel >= 20150102
72Requires: libcerror-devel >= 20120425
73Requires: libcfile-devel >= 20140503
74Requires: libclocale-devel >= 20120425
75Requires: libcnotify-devel >= 20120425
76Requires: libcpath-devel >= 20120701
77Requires: libcsplit-devel >= 20120701
78Requires: libcstring-devel >= 20120425
79Requires: libcthreads-devel >= 20130509
80Requires: libfcache-devel >= 20140601
81Requires: libfdata-devel >= 20140915
82Requires: libfvalue-devel >= 20130415
83Requires: libuna-devel >= 20120425
84
85%description devel
86Header files for libsmraw library.
87
88%description devel -l pl.UTF-8
89Pliki nagłówkowe biblioteki libsmraw.
90
91%package static
92Summary: Static libsmraw library
93Summary(pl.UTF-8): Statyczna biblioteka libsmraw
94Group: Development/Libraries
95Requires: %{name}-devel = %{version}-%{release}
96
97%description static
98Static libsmraw library.
99
100%description static -l pl.UTF-8
101Statyczna biblioteka libsmraw.
102
103%package tools
104Summary: Tools for libsmraw library
105Summary(pl.UTF-8): Narzędzia do biblioteki smraw
106Group: Applications/System
107Requires: %{name} = %{version}-%{release}
108Requires: libcsystem >= 20141018
109Requires: libfuse >= 2.6
110Requires: libhmac >= 20130714
111
112%description tools
113Tools for libsmraw library.
114
115%description tools -l pl.UTF-8
116Narzędzia do biblioteki smraw.
117
118%package -n python-pysmraw
119Summary: Python bindings for libsmraw library
120Summary(pl.UTF-8): Wiązania Pythona do biblioteki libsmraw
121Group: Libraries/Python
122Requires: %{name} = %{version}-%{release}
123
124%description -n python-pysmraw
125Python bindings for libsmraw library.
126
127%description -n python-pysmraw -l pl.UTF-8
128Wiązania Pythona do biblioteki libsmraw.
129
130%prep
131%setup -q
132%patch0 -p1
133
134%build
135%{__gettextize}
136%{__sed} -i -e 's/ po\/Makefile.in//' configure.ac
137%{__libtoolize}
138%{__aclocal} -I m4
139%{__autoconf}
140%{__autoheader}
141%{__automake}
142%configure \
143 %{?with_python:--enable-python}
144%{__make}
145
146%install
147rm -rf $RPM_BUILD_ROOT
148
149%{__make} install \
150 DESTDIR=$RPM_BUILD_ROOT
151
152# obsoleted by pkg-config
153%{__rm} $RPM_BUILD_ROOT%{_libdir}/libsmraw.la
154
155%if %{with python}
156%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/pysmraw.{la,a}
157%endif
158
159%clean
160rm -rf $RPM_BUILD_ROOT
161
162%post -p /sbin/ldconfig
163%postun -p /sbin/ldconfig
164
165%files
166%defattr(644,root,root,755)
167%doc AUTHORS ChangeLog README
168%attr(755,root,root) %{_libdir}/libsmraw.so.*.*.*
169%attr(755,root,root) %ghost %{_libdir}/libsmraw.so.1
170
171%files devel
172%defattr(644,root,root,755)
173%attr(755,root,root) %{_libdir}/libsmraw.so
174%{_includedir}/libsmraw
175%{_includedir}/libsmraw.h
176%{_pkgconfigdir}/libsmraw.pc
177%{_mandir}/man3/libsmraw.3*
178
179%files static
180%defattr(644,root,root,755)
181%{_libdir}/libsmraw.a
182
183%files tools
184%defattr(644,root,root,755)
185%attr(755,root,root) %{_bindir}/smrawmount
186%attr(755,root,root) %{_bindir}/smrawverify
187%{_mandir}/man1/smrawmount.1*
188
189%if %{with python}
190%files -n python-pysmraw
191%defattr(644,root,root,755)
192%attr(755,root,root) %{py_sitedir}/pysmraw.so
193%endif
This page took 0.123172 seconds and 4 git commands to generate.