]> git.pld-linux.org Git - packages/OpenIPMI.git/blob - OpenIPMI.spec
7a89c8c5de24bcfdeb75267c58c82159c34c2cd1
[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:  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 Requires:       pkgconfig
44
45 %description devel
46 Development part of OpenIPMI libraries.
47
48 %description devel -l pl
49 Programistyczna cze¶æ bibliotek OpenIPMI.
50
51 %package static
52 Summary:        Static OpenIPMI libraries
53 Summary(pl):    Statyczne biblioteki OpenIPMI
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{version}-%{release}
56
57 %description static
58 Static OpenIPMI Toolkit libraries.
59
60 %description static -l pl
61 Statyczne biblioteki OpenIPMI.
62
63 %package -n perl-%{name}
64 Summary:        Perl interface to OpenIPMI
65 Summary(pl):    Perlowy interfejs do OpenIPMI
66 Group:          Development/Languages/Perl
67 Requires:       %{name} = %{version}-%{release}
68
69 %description -n perl-%{name}
70 Perl interface to OpenIPMI.
71
72 %description -n perl-%{name} -l pl
73 Perlowy interfejs do OpenIPMI.
74
75 %package -n python-%{name}
76 Summary:        Python interface to OpenIPMI
77 Summary(pl):    Pythonowy interfejs do OpenIPMI
78 Group:          Development/Languages/Python
79 Requires:       %{name} = %{version}-%{release}
80 %pyrequires_eq  python-libs
81
82 %description -n python-%{name}
83 Python interface to OpenIPMI.
84
85 %description -n perl-%{name} -l pl
86 Pythonowy interfejs do OpenIPMI.
87
88 %prep
89 %setup -q
90 %patch0 -p1
91
92 %build
93 %{__libtoolize}
94 %{__aclocal}
95 %{__autoconf}
96 %{__automake}
97 CPPFLAGS="-I/usr/include/ncurses"
98 %configure
99 %{__make}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103
104 %{__make} install \
105         DESTDIR=$RPM_BUILD_ROOT \
106         PYTHON_INSTALL_DIR=%{py_sitedir}
107
108 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.py
109
110 %clean
111 rm -rf $RPM_BUILD_ROOT
112
113 %post   -p /sbin/ldconfig
114 %postun -p /sbin/ldconfig
115
116 %files
117 %defattr(644,root,root,755)
118 %doc ChangeLog FAQ README* TODO
119 %attr(755,root,root) %{_bindir}/*
120 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
121 %{_mandir}/man[178]/*
122
123 %files devel
124 %defattr(644,root,root,755)
125 %attr(755,root,root) %{_libdir}/lib*.so
126 %{_libdir}/*.la
127 %{_includedir}/%{name}
128 %{_pkgconfigdir}/*.pc
129
130 %files static
131 %defattr(644,root,root,755)
132 %{_libdir}/lib*.a
133
134 %files -n perl-%{name}
135 %defattr(644,root,root,755)
136 %{perl_vendorarch}/OpenIPMI.pm
137 %dir %{perl_vendorarch}/auto/OpenIPMI
138 %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so
139
140 %files -n python-%{name}
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{py_sitedir}/*.so
143 %{py_sitedir}/*.py[oc]
This page took 0.031304 seconds and 2 git commands to generate.