[521] | 1 | Summary: sysfsutils, library interface to sysfs. |
---|
| 2 | Summary(ja): sysfs インタフェースライブラリおよびユーティリティ |
---|
| 3 | Name: sysfsutils |
---|
| 4 | Version: 2.1.0 |
---|
[3528] | 5 | Release: 3%{?_dist_release} |
---|
[521] | 6 | License: GPL/LGPL |
---|
| 7 | Group: Development/Tools |
---|
| 8 | |
---|
| 9 | Source0: http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.gz |
---|
| 10 | |
---|
| 11 | Buildroot: %{_tmppath}/%{name}-%{version}-root |
---|
| 12 | |
---|
| 13 | %description |
---|
| 14 | This package's purpose is to provide a set of utilities for interfacing |
---|
| 15 | with sysfs. |
---|
| 16 | |
---|
| 17 | The library is distributed under LGPL and utilities that come with it are |
---|
| 18 | under GPL. |
---|
| 19 | |
---|
| 20 | %package devel |
---|
| 21 | Summary: Static library and headers for sysfsutils |
---|
| 22 | Summary(ja): sysfsutils のスタティックライブラリおよびヘッダファイル |
---|
| 23 | Group: Development/Libraries |
---|
| 24 | Requires: sysfsutils = %{version} |
---|
| 25 | |
---|
| 26 | %description devel |
---|
| 27 | sysfsutils-devel provides the header files and static libraries required |
---|
| 28 | to build programs using the libsysfs API. |
---|
| 29 | |
---|
| 30 | %prep |
---|
| 31 | %setup -q |
---|
| 32 | |
---|
| 33 | %build |
---|
| 34 | %configure --disable-static |
---|
| 35 | %__make %{?_smp_mflags} |
---|
| 36 | |
---|
| 37 | %install |
---|
| 38 | rm -fr %{buildroot} |
---|
| 39 | |
---|
| 40 | %__make DESTDIR=$RPM_BUILD_ROOT install |
---|
| 41 | |
---|
| 42 | # remove unpackaged files |
---|
| 43 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.{a,la} |
---|
| 44 | find $RPM_BUILD_ROOT%{_bindir} -type f -not -name "systool" -exec rm -f \{\} \; |
---|
| 45 | |
---|
| 46 | %clean |
---|
| 47 | rm -rf $RPM_BUILD_ROOT |
---|
| 48 | |
---|
| 49 | |
---|
| 50 | %post -p /sbin/ldconfig |
---|
| 51 | |
---|
| 52 | %postun -p /sbin/ldconfig |
---|
| 53 | |
---|
| 54 | %files |
---|
| 55 | %defattr(-,root,root) |
---|
| 56 | %doc COPYING AUTHORS README NEWS CREDITS ChangeLog docs/libsysfs.txt cmd/GPL lib/LGPL |
---|
| 57 | %{_bindir}/systool |
---|
| 58 | %{_libdir}/libsysfs.so.* |
---|
| 59 | %{_mandir}/man1/systool.1* |
---|
| 60 | |
---|
| 61 | %files devel |
---|
| 62 | %defattr(-,root,root) |
---|
| 63 | %{_includedir}/sysfs/libsysfs.h |
---|
| 64 | %{_includedir}/sysfs/dlist.h |
---|
| 65 | %{_libdir}/libsysfs.so |
---|
| 66 | #{_libdir}/libsysfs.a |
---|
| 67 | |
---|
| 68 | |
---|
| 69 | %changelog |
---|
[3528] | 70 | * Sun Apr 17 2011 Shu KONNO <owa@bg.wakwak.com> 2.1.0-3 |
---|
| 71 | - rebuilt with rpm-4.8.1-3 |
---|
| 72 | |
---|
[521] | 73 | * Mon Apr 13 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.0-2 |
---|
| 74 | - spec in utf-8 |
---|
| 75 | - remove static library |
---|
| 76 | |
---|
| 77 | * Sun Jun 15 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.1.0-1 |
---|
| 78 | - applied new versioning policy |
---|
| 79 | |
---|
| 80 | * Tue Sep 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.1.0-0vl1 |
---|
| 81 | - new upstream release |
---|
| 82 | |
---|
| 83 | * Fri Mar 17 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.0-0vl1 |
---|
| 84 | - initial build |
---|
| 85 | |
---|