]> git.pld-linux.org Git - packages/libmtp.git/blob - libmtp.spec
- copy config.sub (should work on amd64)
[packages/libmtp.git] / libmtp.spec
1 Summary:        Implementation of Microsoft's Media Transfer Protocol (MTP)
2 Name:           libmtp
3 Version:        0.0.4
4 Release:        1.1
5 License:        GPL v2
6 Group:          Libraries
7 Source0:        http://dl.sourceforge.net/libmtp/%{name}-%{version}.tar.gz
8 # Source0-md5:  ed1ebef445055488e7c18fd5b728bc78
9 URL:            http://libmtp.sourceforge.net/
10 BuildRequires:  libtool
11 BuildRequires:  pkgconfig
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 libmtp is an implementation of Microsoft's Media Transfer Protocol
16 (MTP) in the form of a library suitable primarily for POSIX compliant
17 operating systems.
18
19 %package devel
20 Summary:        Header files for mtp library
21 Group:          Development/Libraries
22 Requires:       %{name} = %{version}-%{release}
23
24 %description devel
25 This is the package containing the header files for mtp library.
26
27 %package static
28 Summary:        Static mtp library
29 Group:          Development/Libraries
30 Requires:       %{name}-devel = %{version}-%{release}
31
32 %description static
33 Static mtp library.
34
35 %prep
36 %setup -q
37
38 %build
39
40 cp -f /usr/share/automake/config.sub .
41 %configure
42 %{__make}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %post   -p /sbin/ldconfig
54 %postun -p /sbin/ldconfig
55
56 %files
57 %defattr(644,root,root,755)
58 %doc AUTHORS ChangeLog README TODO
59 %attr(755,root,root) %{_libdir}/libmtp.so.*.*.*
60 %attr(755,root,root) %{_bindir}/*
61
62 %files devel
63 %defattr(644,root,root,755)
64 %attr(755,root,root) %{_libdir}/libmtp.so
65 %{_libdir}/libmtp.la
66 %{_includedir}/*
67 %{_pkgconfigdir}/*.pc
68
69 %files static
70 %defattr(644,root,root,755)
71 %{_libdir}/libmtp.a
This page took 0.101171 seconds and 4 git commands to generate.