]> git.pld-linux.org Git - packages/OpenIPMI.git/blob - OpenIPMI.spec
232cf99fe01ccb0dd5de7fd631bc98b769801b63
[packages/OpenIPMI.git] / OpenIPMI.spec
1 #
2 # TODO:
3 # - FHS compliance
4
5 Summary:        IPMI abstraction layer
6 Summary(pl):    Warstwa abstrakcji IPMI
7 Name:           OpenIPMI
8 Version:        2.0.1
9 Release:        0.99
10 License:        LGPL (library), GPL (ipmicmd)
11 Group:          Libraries
12 Source0:        http://dl.sourceforge.net/openipmi/%{name}-%{version}.tar.gz
13 # Source0-md5:  b5474114ff84a872c5075744201bc4f0
14 Patch0:         %{name}-link.patch
15 URL:            http://openipmi.sourceforge.net/
16 BuildRequires:  autoconf
17 BuildRequires:  automake
18 BuildRequires:  gcc >= 5:3.2
19 BuildRequires:  gdbm-devel
20 BuildRequires:  glib2-devel >= 2.0
21 BuildRequires:  libtool >= 1:1.4.2-9
22 BuildRequires:  ncurses-devel
23 BuildRequires:  net-snmp-devel
24 BuildRequires:  perl-devel
25 BuildRequires:  pkgconfig
26 BuildRequires:  popt-devel
27 BuildRequires:  swig
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 OpenIPMI project aims to develop an open code base to allow access to
32 platform information using Intelligent Platform Management Interface
33 (IPMI).
34
35 %description -l pl
36 Celem projektu OpenIPMI jest stworzenie otwartej podstawy kodu
37 pozwalaj±cego na dostêp do informacji o platformie pzy u¿yciu
38 interfejsu IPMI (Intelligent Platform Management Interface -
39 interfejsu inteligentnego zarz±dzania platform±)
40
41 %package devel
42 Summary:        Development part of OpenIPMI Toolkit libraries
43 Summary(pl):    Programistyczna cze¶æ bibliotek OpenIPMI
44 Group:          Development/Libraries
45 Requires:       %{name} = %{version}-%{release}
46
47 %description devel
48 Development part of OpenIPMI libraries.
49
50 %description devel -l pl
51 Programistyczna cze¶æ bibliotek OpenIPMI.
52
53 %package static
54 Summary:        Static OpenIPMI libraries
55 Summary(pl):    Statyczne biblioteki OpenIPMI
56 Group:          Development/Libraries
57 Requires:       %{name}-devel = %{version}-%{release}
58
59 %description static
60 Static OpenIPMI Toolkit libraries.
61
62 %description static -l pl
63 Statyczne biblioteki OpenIPMI.
64
65 %package -n perl-%{name}
66 Summary:        Perl interface to OpenIPMI
67 Summary(pl):    Perlowy interfejs do OpenIPMI
68 Group:          Development/Languages/Perl
69 Requires:       %{name} = %{version}-%{release}
70
71 %description -n perl-%{name}
72 Perl interface to OpenIPMI.
73
74 %description -n perl-%{name} -l pl
75 Perlowy interfejs do OpenIPMI.
76
77 %package -n python-%{name}
78 Summary:        Python interface to OpenIPMI
79 Summary(pl):    Pythonowy interfejs do OpenIPMI
80 Group:          Development/Languages/Python
81 Requires:       %{name} = %{version}-%{release}
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
108 rm -f $RPM_BUILD_ROOT%{py_sitescriptdir}/*.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_sitescriptdir}/*.so
143 %{py_sitescriptdir}/*.py[oc]
This page took 0.078756 seconds and 3 git commands to generate.