Browse Source

OpenIPMI-2.0.25-1

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@11878 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 5 years ago
parent
commit
1539d208cf
1 changed files with 22 additions and 4 deletions
  1. 22 4
      O/OpenIPMI/OpenIPMI-vl.spec

+ 22 - 4
O/OpenIPMI/OpenIPMI-vl.spec

@@ -4,8 +4,8 @@
 Summary: IPMI (Intelligent Platform Management Interface) library and tools
 Summary(ja): IPMI (Intelligent Platform Management Interface) ライブラリおよびツール
 Name: OpenIPMI
-Version: 2.0.21
-Release: 3%{?_dist_release}
+Version: 2.0.25
+Release: 1%{?_dist_release}
 License: LGPLv2+ and GPLv2+ or BSD
 Group: System Environment/Base
 URL: http://sourceforge.net/projects/openipmi/
@@ -18,6 +18,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 BuildRequires: desktop-file-utils
 BuildRequires: gdbm-devel
 BuildRequires: glib2-devel
+BuildRequires: libedit-devel
 BuildRequires: ncurses-devel
 BuildRequires: net-snmp-devel
 BuildRequires: openssl-devel
@@ -30,7 +31,7 @@ BuildRequires: tkinter
 Requires(post): chkconfig
 Requires(preun): chkconfig
 
-Patch1: OpenIPMI-2.0.18-pthread-pkgconfig.patch
+Patch2: 0002-nobundle.patch
 
 Vendor: Project Vine
 Distribution: Vine Linux
@@ -93,11 +94,20 @@ and control IPMI-enabled devices.
 
 %prep
 %setup -q
-%patch1 -p1
+%patch2 -p1
+rm -rf ./libedit
 
 %build
+export EDIT_CFLAGS=`pkg-config --cflags libedit`
+export EDIT_LIBS=`pkg-config --libs libedit`
+
 export CFLAGS="-fPIC $RPM_OPT_FLAGS"
+
+autoreconf -vif
+
 %configure \
+  CFLAGS="-fPIC %{optflags} -z now -fno-strict-aliasing" \
+  LDFLAGS="%{?__global_ldflags} -Wl,--as-needed" \
   --with-pythoninstall=%{python_sitearch} \
   --disable-dependency-tracking \
   --with-tcl=no \
@@ -162,12 +172,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_bindir}/rmcp_ping
 %{_bindir}/sdrcomp
 %{_bindir}/solterm
+%{_bindir}/openipmi_eventd
 %{_mandir}/man1/ipmi_*
 %{_mandir}/man1/openipmicmd*
 %{_mandir}/man1/openipmish*
 %{_mandir}/man1/rmcp_ping*
 %{_mandir}/man1/solterm*
 %{_mandir}/man5/ipmi_*
+%{_mandir}/man1/openipmi_eventd*
 %{_mandir}/man7/ipmi_cmdlang*
 %{_mandir}/man7/openipmi_conparms*
 %{_mandir}/man8/ipmilan*
@@ -199,6 +211,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/applications/fedora-openipmigui.desktop
 
 %changelog
+* Wed Nov 07 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.25-1
+- updated to 2.0.25.
+- dropped Patch1 (fixed in upstream).
+- imported Patch2 from rawhide.
+- added BR:libedit-devel.
+
 * Fri May 06 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.21-3
 - rebuild with openssl-1.0.2