]> git.pld-linux.org Git - packages/libmtp.git/blob - libmtp.spec
- added -static subpackage, cleanups
[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
5 License:        GPL v2
6 Group:          Applications
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 %configure
41 %{__make}
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45
46 %{__make} install \
47         DESTDIR=$RPM_BUILD_ROOT
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post   -p /sbin/ldconfig
53 %postun -p /sbin/ldconfig
54
55 %files
56 %defattr(644,root,root,755)
57 %doc AUTHORS ChangeLog README TODO
58 %attr(755,root,root) %{_libdir}/libmtp.so.*.*.*
59 %attr(755,root,root) %{_bindir}/*
60
61 %files devel
62 %defattr(644,root,root,755)
63 %attr(755,root,root) %{_libdir}/libmtp.so
64 %{_libdir}/libmtp.la
65 %{_includedir}/*
66 %{_pkgconfigdir}/*.pc
67
68 %files static
69 %defattr(644,root,root,755)
70 %{_libdir}/libmtp.a
This page took 0.060863 seconds and 4 git commands to generate.