]> git.pld-linux.org Git - packages/OpenIPMI.git/blob - OpenIPMI.spec
d78d3ef1501f2406e1456fe31fbbc115e968fb62
[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:        0.99
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
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 %package -n python-%{name}
74 Summary:        Python interface to OpenIPMI
75 Summary(pl):    Pythonowy interfejs do OpenIPMI
76 Group:          Development/Languages/Python
77 Requires:       %{name} = %{version}-%{release}
78 %pyrequires_eq  python-libs
79
80 %description -n python-%{name}
81 Python interface to OpenIPMI.
82
83 %description -n perl-%{name} -l pl
84 Pythonowy interfejs do OpenIPMI.
85
86 %prep
87 %setup -q
88 %patch0 -p1
89
90 %build
91 %{__libtoolize}
92 %{__aclocal}
93 %{__autoconf}
94 %{__automake}
95 CPPFLAGS="-I/usr/include/ncurses"
96 %configure
97 %{__make}
98
99 %install
100 rm -rf $RPM_BUILD_ROOT
101
102 %{__make} install \
103         DESTDIR=$RPM_BUILD_ROOT \
104         PYTHON_INSTALL_DIR=%{py_sitedir}
105
106 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.py
107
108 %clean
109 rm -rf $RPM_BUILD_ROOT
110
111 %post   -p /sbin/ldconfig
112 %postun -p /sbin/ldconfig
113
114 %files
115 %defattr(644,root,root,755)
116 %doc ChangeLog FAQ README* TODO
117 %attr(755,root,root) %{_bindir}/*
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
119 %{_mandir}/man[178]/*
120
121 %files devel
122 %defattr(644,root,root,755)
123 %attr(755,root,root) %{_libdir}/lib*.so
124 %{_libdir}/*.la
125 %{_includedir}/%{name}
126 %{_pkgconfigdir}/*.pc
127
128 %files static
129 %defattr(644,root,root,755)
130 %{_libdir}/lib*.a
131
132 %files -n perl-%{name}
133 %defattr(644,root,root,755)
134 %{perl_vendorarch}/OpenIPMI.pm
135 %dir %{perl_vendorarch}/auto/OpenIPMI
136 %attr(755,root,root) %{perl_vendorarch}/auto/OpenIPMI/OpenIPMI.so
137
138 %files -n python-%{name}
139 %defattr(644,root,root,755)
140 %attr(755,root,root) %{py_sitedir}/*.so
141 %{py_sitedir}/*.py[oc]
This page took 0.046898 seconds and 2 git commands to generate.