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