summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Jennings <mej@lbl.gov>2016-05-12 10:13:42 -0700
committerMichael Jennings <mej@lbl.gov>2016-05-12 10:17:32 -0700
commit59f222bc0adc3329a94c460b906be288a86e5840 (patch)
tree13362676b2ea0306ba3a819abb7e55dc12b6110c
parent7e94eb22b43c5b61fbdb40f109e8177cdc4eb1fc (diff)
spec/efl.spec.in: It's nicer when the spec file actually works.
Added support for systemd detection. Updated the file list. Build unoptimized and with debugging symbols, at least for now. And remove unnecessary *.la files from the packages.
-rw-r--r--spec/efl.spec.in60
1 files changed, 41 insertions, 19 deletions
diff --git a/spec/efl.spec.in b/spec/efl.spec.in
index a349e9a..631c9ab 100644
--- a/spec/efl.spec.in
+++ b/spec/efl.spec.in
@@ -1,6 +1,14 @@
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}}}
2%define _missing_doc_files_terminate_build 0 4%define _missing_doc_files_terminate_build 0
3 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}
11
4Summary: Enlightenment Foundation Libraries 12Summary: Enlightenment Foundation Libraries
5Name: efl 13Name: efl
6Version: @VERSION@ 14Version: @VERSION@
@@ -29,6 +37,10 @@ Provides: eio = %{version}-%{release}
29Obsoletes: eio < %{version}-%{release} 37Obsoletes: eio < %{version}-%{release}
30Provides: ecore = %{version}-%{release} 38Provides: ecore = %{version}-%{release}
31Obsoletes: ecore < %{version}-%{release} 39Obsoletes: ecore < %{version}-%{release}
40Provides: edje = %{version}-%{release}
41Obsoletes: edje < %{version}-%{release}
42Provides: elementary = %{version}-%{release}
43Obsoletes: elementary < %{version}-%{release}
32BuildRoot: %{_tmppath}/%{name}-%{version}-root 44BuildRoot: %{_tmppath}/%{name}-%{version}-root
33 45
34%description 46%description
@@ -56,6 +68,10 @@ Provides: eio-devel = %{version}-%{release}
56Obsoletes: eio-devel < %{version}-%{release} 68Obsoletes: eio-devel < %{version}-%{release}
57Provides: ecore-devel = %{version}-%{release} 69Provides: ecore-devel = %{version}-%{release}
58Obsoletes: ecore-devel < %{version}-%{release} 70Obsoletes: ecore-devel < %{version}-%{release}
71Provides: edje-devel = %{version}-%{release}
72Obsoletes: edje-devel < %{version}-%{release}
73Provides: elementary-devel = %{version}-%{release}
74Obsoletes: elementary-devel < %{version}-%{release}
59 75
60%description devel 76%description devel
61Headers, static libraries, test programs and documentation for EFL 77Headers, static libraries, test programs and documentation for EFL
@@ -66,14 +82,15 @@ Headers, static libraries, test programs and documentation for EFL
66 82
67 83
68%build 84%build
69%{configure} --prefix=%{_prefix} 85%{configure} --prefix=%{_prefix} %{ac_enable_systemd} CFLAGS="-O0 -ggdb3"
70### use this if you have build problems 86### use this if you have build problems
71#./configure --prefix=%{_prefix} 87#./configure --prefix=%{_prefix} %{ac_enable_systemd} CFLAGS="-O0 -ggdb3"
72%{__make} %{?_smp_mflags} %{?mflags} 88%{__make} %{?_smp_mflags} %{?mflags}
73 89
74 90
75%install 91%install
76%{__make} %{?mflags_install} -j1 DESTDIR=$RPM_BUILD_ROOT install 92%{__make} %{?mflags_install} -j1 DESTDIR=$RPM_BUILD_ROOT install
93find $RPM_BUILD_ROOT%{_prefix} -name '*.la' -print0 | xargs -0 rm -f
77 94
78%{find_lang} %{name} 95%{find_lang} %{name}
79 96
@@ -94,30 +111,35 @@ test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
94%defattr(-, root, root) 111%defattr(-, root, root)
95%doc AUTHORS README NEWS COPYING licenses/COPYING.BSD licenses/COPYING.LGPL licenses/COPYING.GPL licenses/COPYING.FTL 112%doc AUTHORS README NEWS COPYING licenses/COPYING.BSD licenses/COPYING.LGPL licenses/COPYING.GPL licenses/COPYING.FTL
96%{_bindir}/* 113%{_bindir}/*
97%{_libdir}/*.so.* 114%{_libdir}/*.so*
98%{_libdir}/evas/cserve2/loaders/*/linux-gnu-*/*.so 115%{_libdir}/e*/
99%{_libdir}/evas/modules/engines/*/linux-gnu-*/*.so 116%{_datadir}/applications/*.desktop
100%{_libdir}/evas/modules/image_loaders/*/linux-gnu-*/*.so 117%{_datadir}/dbus*/services/*
101%{_libdir}/evas/modules/image_savers/*/linux-gnu-*/*.so 118%{_datadir}/ecore*/
102%{_libdir}/ecore/*/*.so 119%{_datadir}/edje/
103%{_libdir}/ecore_evas/*/*/*/*.so 120%{_datadir}/eeze/
104%{_libexecdir}/* 121%{_datadir}/efreet/
122%{_datadir}/elementary/
123%{_datadir}/elua/
124%{_datadir}/embryo/
125%{_datadir}/emotion/
105%{_datadir}/eo/ 126%{_datadir}/eo/
127%{_datadir}/ethumb*/
128%{_datadir}/evas/
129%{_datadir}/icons/*
130%{_datadir}/gdb/auto-load%{_libdir}/lib*.py
131%{_datadir}/mime/packages/*.xml
132%if %{?have_systemd:1}0
133%{_prefix}/lib/systemd/*/*.service
134%endif
106 135
107%files devel 136%files devel
108%defattr(-, root, root) 137%defattr(-, root, root)
109%{_includedir}/* 138%{_includedir}/*
139%{_libdir}/cmake/*
110%{_libdir}/pkgconfig/* 140%{_libdir}/pkgconfig/*
111%{_libdir}/*.a
112%{_libdir}/*.la
113%{_libdir}/*.so
114%{_libdir}/ecore/*/*.la
115%{_libdir}/ecore_evas/*/*/*/*.la
116%{_libdir}/evas/cserve2/loaders/*/linux-gnu-*/*.la
117%{_libdir}/evas/modules/engines/*/linux-gnu-*/*.la
118%{_libdir}/evas/modules/image_loaders/*/linux-gnu-*/*.la
119%{_libdir}/evas/modules/image_savers/*/linux-gnu-*/*.la
120%{_datadir}/embryo/ 141%{_datadir}/embryo/
142%{_datadir}/eolian/
121%{_datadir}/evas/ 143%{_datadir}/evas/
122 144
123 145