Skip to content

Commit

Permalink
Use /etc instead of /usr/etc for mesos and asciidoc as sysconfdir
Browse files Browse the repository at this point in the history
Change-Id: I440ffe5273f3ff9f601b1054e0011b2743474470
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/3715
Tested-by: gerrit-photon <[email protected]>
Reviewed-by: Alexey Makhalov <[email protected]>
  • Loading branch information
suezzelur authored and YustasSwamp committed Sep 8, 2017
1 parent 610f4ec commit 265aa32
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 14 deletions.
20 changes: 11 additions & 9 deletions SPECS/asciidoc/asciidoc.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: AsciiDoc is a human readable text document format
Name: asciidoc
Version: 8.6.9
Release: 3%{?dist}
Release: 4%{?dist}
License: GPLv2
URL: http://asciidoc.org/
Group: System Environment/Development
Expand All @@ -19,7 +19,7 @@ AsciiDoc is a human readable text document format that can be easily converted t

%build
export CFLAGS="%{optflags}"
./configure --prefix=%{_prefix}
./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}

make %{?_smp_mflags}

Expand All @@ -36,14 +36,16 @@ python tests/testasciidoc.py run

%files
%defattr(-,root,root)
/usr/bin/*
/usr/etc/*
/usr/share/man/*
%{_bindir}/*
%{_sysconfdir}/*
%{_mandir}/*

%changelog
* Tue Apr 25 2017 Priyesh Padmavilasom <[email protected]> 8.6.9-3
- Fix arch
* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> 8.6.9-2
- GA - Bump release of all rpms
* Wed Sep 06 2017 Anish Swaminathan <[email protected]> 8.6.9-4
- Use system sysconfdir
* Tue Apr 25 2017 Priyesh Padmavilasom <[email protected]> 8.6.9-3
- Fix arch
* Tue May 24 2016 Priyesh Padmavilasom <[email protected]> 8.6.9-2
- GA - Bump release of all rpms
* Fri Jun 5 2015 Touseef Liaqat <[email protected]> 8.6.9-1
- Initial build. First version
12 changes: 7 additions & 5 deletions SPECS/mesos/mesos.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Summary: Mesos
Name: mesos
Version: 1.2.0
Release: 5%{?dist}
Release: 6%{?dist}
License: Apache
URL: http://mesos.apache.org
Group: Applications/System
Expand All @@ -23,7 +23,7 @@ BuildRequires: apr-util-devel >= 1.5.4
BuildRequires: subversion >= 1.8.13
BuildRequires: subversion-devel >= 1.8.13
BuildRequires: cyrus-sasl >= 2.1.26
BuildRequires: which
BuildRequires: which
BuildRequires: python2 >= 2.6
BuildRequires: python2-libs
BuildRequires: python-xml
Expand Down Expand Up @@ -64,7 +64,8 @@ sed -i "/xlocale.h/d" 3rdparty/stout/include/stout/jsonify.hpp
--disable-silent-rules \
--prefix=%{_prefix} \
--bindir=%{_bindir} \
--libdir=%{_libdir}
--libdir=%{_libdir} \
--sysconfdir=%{_sysconfdir}
make

#%check
Expand All @@ -83,7 +84,7 @@ find %{buildroot}%{_libdir} -name '*.la' -delete
%{_sbindir}/mesos-*
%{_libdir}/libmesos*
%{_libexecdir}/mesos/mesos-*
%{_prefix}/etc/mesos/*
%{_sysconfdir}/mesos/*
%{_prefix}/share/mesos/*
%{_libdir}/libload_qos_controller-*.so
%{_libdir}/libload_qos_controller.so
Expand All @@ -101,10 +102,11 @@ find %{buildroot}%{_libdir} -name '*.la' -delete
%{_libdir}/libfixed_resource_estimator*
%{_libdir}/pkgconfig/mesos.pc
%{python2_sitelib}/*
%{_prefix}/etc/mesos/*
%exclude %{_libdir}/debug/

%changelog
* Wed Sep 06 2017 Anish Swaminathan <[email protected]> 1.2.0-6
- Use system sysconfdir
* Tue Aug 15 2017 Alexey Makhalov <[email protected]> 1.2.0-5
- Fix compilation issue for glibc-2.26
* Thu Aug 10 2017 Xiaolin Li <[email protected]> 1.2.0-4
Expand Down

0 comments on commit 265aa32

Please sign in to comment.