enlightenment.spec.in: Update spec file to work with current Git.

Add support for systemd detection/inclusion.  Update file lists.
Update/remove outdated build dependencies.  Remove unnecessary .la
files from final packages.
This commit is contained in:
Michael Jennings 2016-05-12 11:42:54 -07:00
parent 189dce81f9
commit b5ac82d748
1 changed files with 23 additions and 10 deletions

View File

@ -1,4 +1,13 @@
%define __os_install_post /usr/lib/rpm/brp-compress
%define debug_package %{nil}
%{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}} %{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
%define _missing_doc_files_terminate_build 0
%if %(systemctl --version | head -1 | cut -d' ' -f2) >= 209
%{expand:%%global have_systemd 1}
%endif
%{expand:%%global ac_enable_systemd --%{?have_systemd:en}%{!?have_systemd:dis}able-systemd}
Summary: The Enlightenment window manager Summary: The Enlightenment window manager
Name: @PACKAGE@ Name: @PACKAGE@
@ -12,8 +21,8 @@ Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.or
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
#BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel #BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel
BuildRequires: efl-devel >= @efl_version@, eeze-devel, edje-devel, edje-bin, emotion-devel BuildRequires: efl-devel >= @efl_version@
BuildRequires: xcb-devel, xcb-util-devel BuildRequires: libxcb-devel, xcb-util-devel
Prefix: %{_prefix} Prefix: %{_prefix}
BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRoot: %{_tmppath}/%{name}-%{version}-root
@ -25,7 +34,7 @@ Enlightenment is a window manager.
Summary: Development headers for Enlightenment. Summary: Development headers for Enlightenment.
Group: User Interface/Desktops Group: User Interface/Desktops
Requires: %{name} = %{version} Requires: %{name} = %{version}
Requires: efl-devel, edje-devel Requires: efl-devel >= @efl_version@
%description devel %description devel
Development headers for Enlightenment. Development headers for Enlightenment.
@ -36,15 +45,16 @@ Development headers for Enlightenment.
%build %build
%{configure} --prefix=%{_prefix} --with-profile=FAST_PC %{configure} --prefix=%{_prefix} %{ac_enable_systemd} --with-profile=FAST_PC CFLAGS="-O0 -ggdb3"
%{__make} %{?_smp_mflags} %{?mflags} %{__make} %{?_smp_mflags} %{?mflags}
%install %install
%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install %{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
test -x `which doxygen` && sh gendoc || : test -x `which doxygen` && sh gendoc || :
rm -f `find $RPM_BUILD_ROOT/usr/lib/enlightenment -name "*.a" -print` find $RPM_BUILD_ROOT%{_prefix} -name '*.la' -print0 | xargs -0 rm -f
rm -f `find $RPM_BUILD_ROOT/usr/lib/enlightenment -name "*.la" -print`
%{find_lang} %{name}
%clean %clean
@ -59,20 +69,23 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
/sbin/ldconfig /sbin/ldconfig
%files %files -f %{name}.lang
%defattr(-, root, root) %defattr(-, root, root)
%doc AUTHORS COPYING README %doc AUTHORS COPYING README
%dir %{_sysconfdir}/enlightenment %dir %{_sysconfdir}/enlightenment
%config(noreplace) %{_sysconfdir}/enlightenment/* %config(noreplace) %{_sysconfdir}/enlightenment/*
%config(noreplace) %{_sysconfdir}/xdg/menus/e-applications.menu %config(noreplace) %{_sysconfdir}/xdg/menus/e-applications.menu
%{_bindir}/emixer
%{_bindir}/enlightenment %{_bindir}/enlightenment
%{_bindir}/enlightenment_* %{_bindir}/enlightenment_*
#%{_bindir}/eap_to_desktop
%{_libdir}/%{name}/ %{_libdir}/%{name}/
%{_datadir}/%{name}/ %{_datadir}/%{name}/
%{_datadir}/locale/* %{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/e*
%{_datadir}/xsessions/%{name}.desktop %{_datadir}/xsessions/%{name}.desktop
%{_datadir}/applications/enlightenment_filemanager.desktop %if %{?have_systemd:1}0
%{_prefix}/lib/systemd/*/*.service
%endif
%files devel %files devel
%defattr(-, root, root) %defattr(-, root, root)