]> git.pld-linux.org Git - packages/OpenIPMI.git/blob - OpenIPMI.spec
- BR: swig-python
[packages/OpenIPMI.git] / OpenIPMI.spec
1 Summary:        IPMI abstraction layer
2 Summary(pl):    Warstwa abstrakcji IPMI
3 Name:           OpenIPMI
4 Version:        2.0.2
5 Release:        1
6 License:        LGPL (library), GPL (ipmicmd)
7 Group:          Libraries
8 Source0:        http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
9 # Source0-md5:  8ac7849e72fe849c5ce95e6dd8719ca3
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-perl >= 1.3.25
24 BuildRequires:  swig-python >= 1.3.25
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 OpenIPMI project aims to develop an open code base to allow access to
29 platform information using Intelligent Platform Management Interface
30 (IPMI).
31
32 %description -l pl
33 Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu
34 pozwalaj±cego na dostêp do informacji o platformie pzy u¿yciu
35 interfejsu IPMI (Intelligent Platform Management Interface -
36 interfejsu inteligentnego zarz±dzania platform±)
37
38 %package devel
39 Summary:        Development part of OpenIPMI Toolkit libraries
40 Summary(pl):    Programistyczna cze¶æ bibliotek OpenIPMI
41 Group:          Development/Libraries
42 Requires:       %{name} = %{version}-%{release}
43
44 %description devel
45 Development part of OpenIPMI libraries.
46
47 %description devel -l pl
48 Programistyczna cze¶æ bibliotek OpenIPMI.
49
50 %package static
51 Summary:        Static OpenIPMI libraries
52 Summary(pl):    Statyczne biblioteki OpenIPMI
53 Group:          Development/Libraries
54 Requires:       %{name}-devel = %{version}-%{release}
55
56 %description static
57 Static OpenIPMI Toolkit libraries.
58
59 %description static -l pl
60 Statyczne biblioteki OpenIPMI.
61
62 %package -n perl-%{name}
63 Summary:        Perl interface to OpenIPMI
64 Summary(pl):    Perlowy interfejs do OpenIPMI
65 Group:          Development/Languages/Perl
66 Requires:       %{name} = %{version}-%{release}
67
68 %description -n perl-%{name}
69 Perl interface to OpenIPMI.
70
71 %description -n perl-%{name} -l pl
72 Perlowy interfejs do OpenIPMI.
73
74 %package -n python-%{name}
75 Summary:        Python interface to OpenIPMI
76 Summary(pl):    Pythonowy interfejs do OpenIPMI
77 Group:          Development/Languages/Python
78 Requires:       %{name} = %{version}-%{release}
79 %pyrequires_eq  python-libs
80
81 %description -n python-%{name}
82 Python interface to OpenIPMI.
83
84 %description -n perl-%{name} -l pl
85 Pythonowy interfejs do OpenIPMI.
86
87 %prep
88 %setup -q
89 %patch0 -p1
90
91 %build
92 %{__libtoolize}
93 %{__aclocal}
94 %{__autoconf}
95 %{__automake}
96 CPPFLAGS="-I/usr/include/ncurses"
97 %configure
98 %{__make}
99
100 %install
101 rm -rf $RPM_BUILD_ROOT
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT \
105         PYTHON_INSTALL_DIR=%{py_sitedir}
106
107 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.py
108
109 %clean
110 rm -rf $RPM_BUILD_ROOT
111
112 %post   -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
114
115 %files
116 %defattr(644,root,root,755)
117 %doc ChangeLog FAQ README* TODO
118 %attr(755,root,root) %{_bindir}/*
119 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
120 %{_mandir}/man[178]/*
121
122 %files devel
123 %defattr(644,root,root,755)
124 %attr(755,root,root) %{_libdir}/lib*.so
125 %{_libdir}/*.la
126 %{_includedir}/%{name}
127 %{_pkgconfigdir}/*.pc
128
129 %files static
130 %defattr(644,root,root,755)
131 %{_libdir}/lib*.a
132
133 %files -n perl-%{name}
134 %defattr(644,root,root,755)
135 %{perl_vendorarch}/OpenIPMI.pm
136 %dir %{perl_vendorarch}/auto/OpenIPMI
137 %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so
138
139 %files -n python-%{name}
140 %defattr(644,root,root,755)
141 %attr(755,root,root) %{py_sitedir}/*.so
142 %{py_sitedir}/*.py[oc]
This page took 0.084202 seconds and 3 git commands to generate.