]> git.pld-linux.org Git - packages/sysfsutils.git/blob - sysfsutils.spec
- simplified (define _includedir instead of moving files)
[packages/sysfsutils.git] / sysfsutils.spec
1 Summary:        System utilities package
2 Summary(pl):    Pakiet narzêdzi systemowych
3 Name:           sysfsutils
4 Version:        1.3.0
5 Release:        3
6 License:        LGPL v2.1/GPL v2
7 Group:          Applications/System
8 Source0:        http://dl.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz
9 # Source0-md5:  d11c99271531be3c1e6d36b53968cd2b
10 URL:            http://linux-diag.sourceforge.net/Sysfsutils.html
11 BuildRequires:  autoconf >= 2.50
12 BuildRequires:  automake
13 BuildRequires:  libtool
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _includedir     %{_prefix}/include/sysfs
17
18 %description
19 This package's purpose is to provide a set of utilities for
20 interfacing with sysfs, a virtual filesystem in Linux kernel versions
21 2.5+ that provides a tree of system devices. While a filesystem is a
22 very useful interface, the authors decided to provide a stable
23 programming interface that will hopefully make it easier for
24 applications to query system devices and their attributes.
25
26 This package currently includes:
27 - libsysfs: a library for accessing system devices.
28 - lsbus: a small application to query system bus information.
29 - systool: an application to view system device information by bus,
30   class, and topology.
31
32 %description -l pl
33 Celem tego pakietu jest dostarczenie zestawu narzêdzi do wspó³pracy z
34 sysfs - wirtualnym systemem plików j±der Linuksa w wersji 2.5+
35 udostêpniaj±cym drzewo urz±dzeñ systemowych. O ile system plików jest
36 bardzo u¿ytecznym interfejsem, autorzy zdecydowali siê dostarczyæ
37 stabilny interfejs programistyczny, u³atwiaj±cy aplikacjom odpytywanie
38 siê o urz±dzenia systemowe i ich atrybuty.
39
40 Ten pakiet zawiera:
41 - libsysfs - bibliotekê do dostêpu do urz±dzeñ systemowych,
42 - lsbus - ma³± aplikacjê do odczytywania informacji o szynach
43   systemowych,
44 - systool - aplikacjê do przegl±dania informacji o urz±dzeniach
45   systemowych wed³ug szyny, klasy i topologii.
46
47 %package devel
48 Summary:        Header files for sysfs library
49 Summary(pl):    Pliki nag³ówkowe biblioteki sysfs
50 Group:          Development/Libraries
51 Requires:       %{name} = %{version}-%{release}
52
53 %description devel
54 Header files for sysfs library.
55
56 %description devel -l pl
57 Pliki nag³ówkowe biblioteki sysfs.
58
59 %package static
60 Summary:        Static sysfs library
61 Summary(pl):    Statyczna biblioteka sysfs
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 Static sysfs library.
67
68 %description static -l pl
69 Statyczna biblioteka sysfs.
70
71 %prep
72 %setup -q
73
74 %build
75 %{__libtoolize}
76 %{__aclocal}
77 %{__autoconf}
78 %{__autoheader}
79 %{__automake}
80 %configure
81 %{__make}
82
83 %install
84 rm -rf $RPM_BUILD_ROOT
85
86 %{__make} install \
87         DESTDIR=$RPM_BUILD_ROOT
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post   -p /sbin/ldconfig
93 %postun -p /sbin/ldconfig
94
95 %files
96 %defattr(644,root,root,755)
97 # COPYING contains only note, not actual GPL/LGPL texts
98 %doc AUTHORS COPYING ChangeLog NEWS README TODO
99 %attr(755,root,root) %{_bindir}/*
100 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
101 %{_mandir}/man1/*
102
103 %files devel
104 %defattr(644,root,root,755)
105 %doc docs/libsysfs.txt
106 %attr(755,root,root) %{_libdir}/lib*.so
107 %{_libdir}/lib*.la
108 %{_includedir}
109
110 %files static
111 %defattr(644,root,root,755)
112 %{_libdir}/lib*.a
This page took 0.053042 seconds and 3 git commands to generate.