summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@lbl.gov>2016-05-12 11:42:54 -0700
committerMichael Jennings <mej@lbl.gov>2016-05-12 11:46:35 -0700
commitb5ac82d7488fc9ba0aed41db6f54b6c3657744cd (patch)
treea4f9f64e9078c1ad8a5508e22a13157ce711d602
parent189dce81f97f2eefa4891fee4d8fa5dc50a886a6 (diff)
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.
-rw-r--r--enlightenment.spec.in33
1 files changed, 23 insertions, 10 deletions
diff --git a/enlightenment.spec.in b/enlightenment.spec.in
index 409804970..69e729dc4 100644
--- a/enlightenment.spec.in
+++ b/enlightenment.spec.in
@@ -1,4 +1,13 @@
1%define __os_install_post /usr/lib/rpm/brp-compress
2%define debug_package %{nil}
1%{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}} 3%{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
4%define _missing_doc_files_terminate_build 0
5
6%if %(systemctl --version | head -1 | cut -d' ' -f2) >= 209
7%{expand:%%global have_systemd 1}
8%endif
9
10%{expand:%%global ac_enable_systemd --%{?have_systemd:en}%{!?have_systemd:dis}able-systemd}
2 11
3Summary: The Enlightenment window manager 12Summary: The Enlightenment window manager
4Name: @PACKAGE@ 13Name: @PACKAGE@
@@ -12,8 +21,8 @@ Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.or
12Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)} 21Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
13Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}} 22Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
14#BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel 23#BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel
15BuildRequires: efl-devel >= @efl_version@, eeze-devel, edje-devel, edje-bin, emotion-devel 24BuildRequires: efl-devel >= @efl_version@
16BuildRequires: xcb-devel, xcb-util-devel 25BuildRequires: libxcb-devel, xcb-util-devel
17Prefix: %{_prefix} 26Prefix: %{_prefix}
18BuildRoot: %{_tmppath}/%{name}-%{version}-root 27BuildRoot: %{_tmppath}/%{name}-%{version}-root
19 28
@@ -25,7 +34,7 @@ Enlightenment is a window manager.
25Summary: Development headers for Enlightenment. 34Summary: Development headers for Enlightenment.
26Group: User Interface/Desktops 35Group: User Interface/Desktops
27Requires: %{name} = %{version} 36Requires: %{name} = %{version}
28Requires: efl-devel, edje-devel 37Requires: efl-devel >= @efl_version@
29 38
30%description devel 39%description devel
31Development headers for Enlightenment. 40Development headers for Enlightenment.
@@ -36,15 +45,16 @@ Development headers for Enlightenment.
36 45
37 46
38%build 47%build
39%{configure} --prefix=%{_prefix} --with-profile=FAST_PC 48%{configure} --prefix=%{_prefix} %{ac_enable_systemd} --with-profile=FAST_PC CFLAGS="-O0 -ggdb3"
40%{__make} %{?_smp_mflags} %{?mflags} 49%{__make} %{?_smp_mflags} %{?mflags}
41 50
42 51
43%install 52%install
44%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install 53%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
45test -x `which doxygen` && sh gendoc || : 54test -x `which doxygen` && sh gendoc || :
46rm -f `find $RPM_BUILD_ROOT/usr/lib/enlightenment -name "*.a" -print` 55find $RPM_BUILD_ROOT%{_prefix} -name '*.la' -print0 | xargs -0 rm -f
47rm -f `find $RPM_BUILD_ROOT/usr/lib/enlightenment -name "*.la" -print` 56
57%{find_lang} %{name}
48 58
49 59
50%clean 60%clean
@@ -59,20 +69,23 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
59/sbin/ldconfig 69/sbin/ldconfig
60 70
61 71
62%files 72%files -f %{name}.lang
63%defattr(-, root, root) 73%defattr(-, root, root)
64%doc AUTHORS COPYING README 74%doc AUTHORS COPYING README
65%dir %{_sysconfdir}/enlightenment 75%dir %{_sysconfdir}/enlightenment
66%config(noreplace) %{_sysconfdir}/enlightenment/* 76%config(noreplace) %{_sysconfdir}/enlightenment/*
67%config(noreplace) %{_sysconfdir}/xdg/menus/e-applications.menu 77%config(noreplace) %{_sysconfdir}/xdg/menus/e-applications.menu
78%{_bindir}/emixer
68%{_bindir}/enlightenment 79%{_bindir}/enlightenment
69%{_bindir}/enlightenment_* 80%{_bindir}/enlightenment_*
70#%{_bindir}/eap_to_desktop
71%{_libdir}/%{name}/ 81%{_libdir}/%{name}/
72%{_datadir}/%{name}/ 82%{_datadir}/%{name}/
73%{_datadir}/locale/* 83%{_datadir}/applications/*.desktop
84%{_datadir}/pixmaps/e*
74%{_datadir}/xsessions/%{name}.desktop 85%{_datadir}/xsessions/%{name}.desktop
75%{_datadir}/applications/enlightenment_filemanager.desktop 86%if %{?have_systemd:1}0
87%{_prefix}/lib/systemd/*/*.service
88%endif
76 89
77%files devel 90%files devel
78%defattr(-, root, root) 91%defattr(-, root, root)