]> git.pld-linux.org Git - packages/OpenIPMI.git/blob - OpenIPMI.spec
- needs modern gcc (at least 3.x) due to unnamed union
[packages/OpenIPMI.git] / OpenIPMI.spec
1 Summary:        IPMI abstraction layer
2 Summary(pl):    Warstwa abstrakcji IPMI
3 Name:           OpenIPMI
4 Version:        2.0.0
5 Release:        2
6 License:        LGPL (library), GPL (ipmicmd)
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
9 # Source0-md5:  03176ff27cdd3dbce6c0bab7ab4eb234
10 Patch0:         %{name}-link.patch
11 URL:            http://openipmi.sourceforge.net/
12 BuildRequires:  autoconf
13 BuildRequires:  automake
14 BuildRequires:  gcc >= 5:3.2
15 BuildRequires:  gdbm-devel
16 BuildRequires:  glib2-devel >= 2.0
17 BuildRequires:  libtool >= 1:1.4.2-9
18 BuildRequires:  ncurses-devel
19 BuildRequires:  net-snmp-devel
20 BuildRequires:  perl-devel
21 BuildRequires:  pkgconfig
22 BuildRequires:  popt-devel
23 BuildRequires:  swig
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 OpenIPMI project aims to develop an open code base to allow access to
28 platform information using Intelligent Platform Management Interface
29 (IPMI).
30
31 %description -l pl
32 Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu
33 pozwalaj±cego na dostêp do informacji o platformie pzy u¿yciu
34 interfejsu IPMI (Intelligent Platform Management Interface -
35 interfejsu inteligentnego zarz±dzania platform±)
36
37 %package devel
38 Summary:        Development part of OpenIPMI Toolkit libraries
39 Summary(pl):    Programistyczna cze¶æ bibliotek OpenIPMI
40 Group:          Development/Libraries
41 Requires:       %{name} = %{version}-%{release}
42
43 %description devel
44 Development part of OpenIPMI libraries.
45
46 %description devel -l pl
47 Programistyczna cze¶æ bibliotek OpenIPMI.
48
49 %package static
50 Summary:        Static OpenIPMI libraries
51 Summary(pl):    Statyczne biblioteki OpenIPMI
52 Group:          Development/Libraries
53 Requires:       %{name}-devel = %{version}-%{release}
54
55 %description static
56 Static OpenIPMI Toolkit libraries.
57
58 %description static -l pl
59 Statyczne biblioteki OpenIPMI.
60
61 %package -n perl-%{name}
62 Summary:        Perl interface to OpenIPMI
63 Summary(pl):    Perlowy interfejs do OpenIPMI
64 Group:          Development/Languages/Perl
65 Requires:       %{name} = %{version}-%{release}
66
67 %description -n perl-%{name}
68 Perl interface to OpenIPMI.
69
70 %description -n perl-%{name} -l pl
71 Perlowy interfejs do OpenIPMI.
72
73 %prep
74 %setup -q
75 %patch0 -p1
76
77 %build
78 %{__libtoolize}
79 %{__aclocal}
80 %{__autoconf}
81 %{__automake}
82 CPPFLAGS="-I/usr/include/ncurses"
83 %configure
84 %{__make}
85
86 %install
87 rm -rf $RPM_BUILD_ROOT
88
89 %{__make} install \
90         DESTDIR=$RPM_BUILD_ROOT
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post   -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc ChangeLog FAQ README* TODO
101 %attr(755,root,root) %{_bindir}/*
102 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
103 %{_mandir}/man[178]/*
104
105 %files devel
106 %defattr(644,root,root,755)
107 %attr(755,root,root) %{_libdir}/lib*.so
108 %{_libdir}/*.la
109 %{_includedir}/%{name}
110 %{_pkgconfigdir}/*.pc
111
112 %files static
113 %defattr(644,root,root,755)
114 %{_libdir}/lib*.a
115
116 %files -n perl-%{name}
117 %defattr(644,root,root,755)
118 %{perl_vendorarch}/OpenIPMI.pm
119 %dir %{perl_vendorarch}/auto/OpenIPMI
120 %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so
This page took 0.061432 seconds and 4 git commands to generate.