summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2017-08-23 12:07:17 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2017-08-23 12:07:37 -0400
commit517b3a12569c295a03483b16f96cbd4e9528b4ba (patch)
treea881356bd57307454254ea93d844e4d8b258b8f6
parentad46d041a8614b9383e797b679c60ca2ded5354c (diff)
remove distro packaging files
let distros provide these, projects should not ref T4991
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac1
-rw-r--r--enlightenment.spec.in96
-rw-r--r--pkgbuild/.gitignore2
-rw-r--r--pkgbuild/PKGBUILD57
-rw-r--r--pkgbuild/enlightenment.install12
6 files changed, 1 insertions, 173 deletions
diff --git a/Makefile.am b/Makefile.am
index dba49f1..a03bc50 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -38,11 +38,7 @@ config.rpath \
38README \ 38README \
39AUTHORS \ 39AUTHORS \
40COPYING \ 40COPYING \
41enlightenment.spec.in \ 41enlightenment.pc
42enlightenment.spec \
43enlightenment.pc \
44pkgbuild/PKGBUILD \
45pkgbuild/enlightenment.install
46 42
47include m4/Makefile.mk 43include m4/Makefile.mk
48 44
diff --git a/configure.ac b/configure.ac
index 07021c4..893551a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1056,7 +1056,6 @@ AC_SUBST([SUID_LDFLAGS])
1056 1056
1057AC_OUTPUT([ 1057AC_OUTPUT([
1058Makefile 1058Makefile
1059enlightenment.spec
1060enlightenment.pc 1059enlightenment.pc
1061src/bin/e_fm_shared_types.h 1060src/bin/e_fm_shared_types.h
1062src/modules/everything/everything.pc 1061src/modules/everything/everything.pc
diff --git a/enlightenment.spec.in b/enlightenment.spec.in
deleted file mode 100644
index 69e729d..0000000
--- a/enlightenment.spec.in
+++ /dev/null
@@ -1,96 +0,0 @@
1%define __os_install_post /usr/lib/rpm/brp-compress
2%define debug_package %{nil}
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}
11
12Summary: The Enlightenment window manager
13Name: @PACKAGE@
14Version: @VERSION@
15Release: %{_rel}
16License: BSD
17Group: User Interface/Desktops
18URL: http://www.enlightenment.org/
19Source: ftp://ftp.enlightenment.org/pub/enlightenment/%{name}-%{version}.tar.gz
20Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
21Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
22Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
23#BuildSuggests: xorg-x11-devel, XFree86-devel, libX11-devel
24BuildRequires: efl-devel >= @efl_version@
25BuildRequires: libxcb-devel, xcb-util-devel
26Prefix: %{_prefix}
27BuildRoot: %{_tmppath}/%{name}-%{version}-root
28
29%description
30Enlightenment is a window manager.
31
32
33%package devel
34Summary: Development headers for Enlightenment.
35Group: User Interface/Desktops
36Requires: %{name} = %{version}
37Requires: efl-devel >= @efl_version@
38
39%description devel
40Development headers for Enlightenment.
41
42
43%prep
44%setup -q
45
46
47%build
48%{configure} --prefix=%{_prefix} %{ac_enable_systemd} --with-profile=FAST_PC CFLAGS="-O0 -ggdb3"
49%{__make} %{?_smp_mflags} %{?mflags}
50
51
52%install
53%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
54test -x `which doxygen` && sh gendoc || :
55find $RPM_BUILD_ROOT%{_prefix} -name '*.la' -print0 | xargs -0 rm -f
56
57%{find_lang} %{name}
58
59
60%clean
61test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
62
63
64%post
65/sbin/ldconfig
66
67
68%postun
69/sbin/ldconfig
70
71
72%files -f %{name}.lang
73%defattr(-, root, root)
74%doc AUTHORS COPYING README
75%dir %{_sysconfdir}/enlightenment
76%config(noreplace) %{_sysconfdir}/enlightenment/*
77%config(noreplace) %{_sysconfdir}/xdg/menus/e-applications.menu
78%{_bindir}/emixer
79%{_bindir}/enlightenment
80%{_bindir}/enlightenment_*
81%{_libdir}/%{name}/
82%{_datadir}/%{name}/
83%{_datadir}/applications/*.desktop
84%{_datadir}/pixmaps/e*
85%{_datadir}/xsessions/%{name}.desktop
86%if %{?have_systemd:1}0
87%{_prefix}/lib/systemd/*/*.service
88%endif
89
90%files devel
91%defattr(-, root, root)
92%{_includedir}/enlightenment/
93%{_libdir}/pkgconfig/*.pc
94
95
96%changelog
diff --git a/pkgbuild/.gitignore b/pkgbuild/.gitignore
deleted file mode 100644
index da5b08f..0000000
--- a/pkgbuild/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
1*.tar.xz
2pkg
diff --git a/pkgbuild/PKGBUILD b/pkgbuild/PKGBUILD
deleted file mode 100644
index 6905e16..0000000
--- a/pkgbuild/PKGBUILD
+++ /dev/null
@@ -1,57 +0,0 @@
1# Maintainer: Enlightenment Developers <enlightenment-devel@enlightenment.org>>
2pkgname=enlightenment
3[[ -d ../.git ]] && pkgname=$pkgname-git
4pkgver=0.18.0rc2.17432.569bc2e
5pkgrel=1
6pkgdesc="Enlightenment window manager - GIT development snapshot"
7arch=('i686' 'x86_64' 'arm')
8url="http://www.enlightenment.org"
9license=('BSD')
10depends=('elementary' 'xcb-util-keysyms' 'hicolor-icon-theme' 'pixman' 'mesa'
11 'desktop-file-utils' 'udisks2' 'ttf-font' 'bluez-libs' 'bluez4')
12optdepends=('connman: network module'
13 'acpid: power events on laptop lid close'
14 'gdb: create backtraces on crash')
15[[ -d ../.git ]] && makedepends=('git')
16provides=("enlightenment=$pkgver" "enlightenment17=$pkgver" 'notification-daemon')
17conflicts=('enlightenment<1.0' 'enlightenment17')
18backup=('etc/enlightenment/sysactions.conf'
19 'etc/xdg/menus/enlightenment.menu')
20options=('debug')
21install=enlightenment.install
22
23pkgver() {
24 cd "../.."
25
26 if [[ -d .git ]]; then
27 for _i in v_maj v_min v_mic; do
28 local v_ver=$v_ver.$(grep -m1 $_i configure.ac | sed 's/m4//' | grep -o "[[:digit:]]*")
29 done
30
31 v_ver=$(awk -F , -v v_ver=${v_ver#.} '/^AC_INIT/ {gsub(/v_ver/, v_ver); gsub(/[\[\] -]/, ""); print $2}' configure.ac)
32
33 printf "$v_ver.$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
34 else
35 ./configure --version | awk '/^enlightenment/ {gsub("-", ""); print $NF}'
36 fi
37}
38
39build() {
40 cd "../.."
41 export CFLAGS="$CFLAGS -fvisibility=hidden -fomit-frame-pointer"
42 [[ -e Makefile ]] && make clean distclean
43 [[ -e autogen.sh ]] && _configure=autogen.sh || _configure=configure
44 ./$_configure --prefix=/usr --sysconfdir=/etc --enable-wayland-clients --enable-wayland-egl
45 make
46}
47
48package() {
49 cd "../.."
50 make -j1 DESTDIR="$pkgdir" install
51 install -Dm644 AUTHORS "$pkgdir/usr/share/doc/${pkgname%-*}/AUTHORS"
52 install -Dm644 ChangeLog "$pkgdir/usr/share/doc/${pkgname%-*}/ChangeLog"
53 install -Dm644 NEWS "$pkgdir/usr/share/doc/${pkgname%-*}/NEWS"
54 install -Dm644 README "$pkgdir/usr/share/doc/${pkgname%-*}/README"
55 install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
56 ln -sf "../../licenses/$pkgname/COPYING" "$pkgdir/usr/share/doc/${pkgname%-*}/COPYING"
57}
diff --git a/pkgbuild/enlightenment.install b/pkgbuild/enlightenment.install
deleted file mode 100644
index 1182e76..0000000
--- a/pkgbuild/enlightenment.install
+++ /dev/null
@@ -1,12 +0,0 @@
1post_install() {
2 update-mime-database usr/share/mime > /dev/null
3 update-desktop-database -q
4}
5
6post_upgrade() {
7 post_install
8}
9
10post_remove() {
11 post_install
12}