Skip to content

Commit

Permalink
package: move the one spec to be an EL7.2 "example"
Browse files Browse the repository at this point in the history
Since there could be different spec files for different distros,
move the one that was provided to examples/powerman_el72.spec to
be clear that it is just an example and that distro packagers could
use as a starting point for their own specs.

That said, try to keep the example functional for EL7.
  • Loading branch information
brianjmurrell committed Mar 9, 2017
1 parent fe7b708 commit 4ae6fe5
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ install-data-local:
-$(top_srcdir)/config/install-sh -o $(RUN_AS_USER) -m 755 -d \
$(DESTDIR)$(localstatedir)/run/powerman

EXTRA_DIST = DISCLAIMER powerman.spec
EXTRA_DIST = DISCLAIMER examples/powerman_el72.spec
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ AC_RUNAS
##
AC_CONFIG_FILES( \
Makefile \
powerman.spec \
examples/powerman_el72.spec \
libpowerman/Makefile \
libpowerman/libpowerman.pc \
liblsd/Makefile \
Expand Down
7 changes: 6 additions & 1 deletion powerman.spec.in → examples/powerman_el72.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires: tcp_wrappers-devel
BuildRequires: genders
BuildRequires: libgenders-devel
BuildRequires: curl-devel
BuildRequires: net-snmp-devel
BuildRequires: systemd
Expand Down Expand Up @@ -114,6 +114,11 @@ if [ -x /sbin/ldconfig ]; then /sbin/ldconfig %{_libdir}; fi

%changelog

* Wed Mar 08 2017 Brian J. Murrell <brian.murrell@intel.com> 2.3.25-1
- Move the powerman.spec to the examples dir and rename it to
powerman_el72.spec to indicate that this spec is just an example
that works on EL7.2

* Fri Oct 23 2015 Jim Garlick <garlick.jim@gmail.com> 2.3.24-1
- Don't package /var/run/powerman; let systemd manage this directory.

Expand Down

0 comments on commit 4ae6fe5

Please sign in to comment.