/[packages]/cauldron/libifp/current/SPECS/libifp.spec
ViewVC logotype

Contents of /cauldron/libifp/current/SPECS/libifp.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 357522 - (show annotations) (download)
Sat Jan 12 12:36:34 2013 UTC (8 years ago) by umeabot
File size: 2477 byte(s)
Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild
1 %define name libifp
2 %define version 1.0.0.2
3 %define release 8
4
5 %define major 4
6 %define libname %mklibname ifp %{major}
7 %define develname %mklibname -d ifp
8 %define sdevelname %mklibname -d -s ifp
9
10 Summary: iRiver driver library
11 Name: %{name}
12 Version: %{version}
13 Release: %mkrel %{release}
14 License: GPLv2+
15 Group: System/Libraries
16 Source0: %{name}-%{version}.tar.gz
17 Source1: libifp.hotplug
18 Source2: 10-libifp.rules
19 Patch0: libifp-1.0.0.2-human-readable.patch
20 Patch1: libifp-1.0.0.2-warn-not-error.patch
21 BuildRequires: libusb-devel
22 URL: http://ifp-driver.sourceforge.net/
23
24 %description
25 An interface for IRiver's flash-based portable music players
26
27 %package -n %{libname}
28 Summary: iRiver driver library
29 Group: System/Libraries
30
31 %description -n %{libname}
32 Libraries for iRiver driver
33
34 %package -n %{develname}
35 Summary: iRiver driver library development files
36 Group: Development/C
37 Provides: %{name}-devel = %{version}-%{release}
38 Requires: %{libname} = %{version}
39 Obsoletes: %mklibname -d ifp 4
40
41 %description -n %{develname}
42 This package includes the header files and shared libraries
43 necessary for developing programs which will access iRiver using
44 the %{name} library.
45
46 If you are going to develop programs which will access iRiver devices,
47 you should install this package.
48
49 %package -n %{sdevelname}
50 Summary: Static libraries for libifp
51 Group: Development/C
52 Provides: %{name}-static-devel = %{version}-%{release}
53 Requires: %{develname} = %{version}
54 Obsoletes: %mklibname -d -s ifp 4
55
56 %description -n %{sdevelname}
57 This package includes the static libraries necessary for developing
58 programs which will access iRiver devices using the %{name} library.
59
60 If you are going to develop programs which will access iRiver devices,
61 you should install this package.
62
63 %prep
64 %setup -q
65 %patch0 -p1 -b .df-h
66 %patch1 -p1 -b .warn
67
68 %build
69 %configure2_5x --with-libusb
70 %make
71
72 %install
73 rm -rf %{buildroot}
74 %makeinstall_std
75 install -D -m 0755 %{SOURCE1} %buildroot/sbin/libifp-hotplug
76 install -D -m 0644 %{SOURCE2} %buildroot%{_sysconfdir}/udev/rules.d/10-libifp.rules
77
78 %clean
79 rm -rf %{buildroot}
80
81 %files
82 %defattr(-,root,root)
83 %doc README ChangeLog TODO
84 %{_bindir}/ifpline
85 /sbin/*
86 %{_sysconfdir}/udev/rules.d/*.rules
87
88 %files -n %{libname}
89 %{_libdir}/libifp.so.%{major}*
90
91 %files -n %{develname}
92 %defattr(-,root,root)
93 %{_libdir}/libifp.so
94 %{_libdir}/libifp.la
95 %{_includedir}/ifp.h
96 %{_mandir}/man3/ifp.h.3*
97
98 %files -n %{sdevelname}
99 %defattr(-,root,root)
100 %{_libdir}/libifp.a

  ViewVC Help
Powered by ViewVC 1.1.28