Debian Codegraph @

rpm/libg15.spec

raw
1 # libg15 rpm spec file
2 #
3 %define prefix /usr
4 Summary: library to control logitech G15 keyboards
5 Name: libg15
6 Version: 1.2.7
7 Release: 1
8 License: GPL
9 Group: Applications/System
10 Source: http://prdownloads.sourceforge.net/g15tools/libg15-1.2.7.tar.bz2
11 URL: http://sourceforge.net/projects/g15tools
12 Distribution: Linux
13 Vendor: NONE
14 Packager: Mike Lampard <[email protected]>
15 Buildroot: /var/tmp/libg15-%{PACKAGE_VERSION}-root
16 Requires: libusb
17 BuildRequires: libusb-devel
18 Provides: libg15
19
20 %description
21 libg15 controls the G15 keyboard, providing applications access
22 to the keyboard's LCD display, and the additional keys available
23 on this keyboard.
24
25 %package devel
26 Summary: libg15 controls the G15 keyboard and LCD.
27 Group: System Environment/Libraries
28 Requires: libusb
29 Requires: libg15
30 Provides: libg15-devel
31
32 %description devel
33 libg15 controls the G15 keyboard, providing applications access
34 to the keyboard's LCD display, and the additional keys available
35 on this keyboard.
36
37 %prep
38 %setup
39
40 %build
41 CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{prefix}
42 make
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 make DESTDIR=$RPM_BUILD_ROOT install
47
48 %clean
49 rm -rf $RPM_BUILD_ROOT
50 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
52
53 %files
54 %defattr(-, root, root)
55
56 %doc AUTHORS COPYING NEWS README
57 %{prefix}/lib/lib*.la
58 %{prefix}/lib/libg15.so*
59
60 %files devel
61 %defattr(-, root, root)
62
63 %doc AUTHORS COPYING NEWS README
64 %{prefix}/lib/lib*.a
65 %{prefix}/include/*