summaryrefslogtreecommitdiff
path: root/legacy/eeze
diff options
context:
space:
mode:
authorMichael Jennings <mej@kainx.org>2011-02-02 03:12:08 +0000
committerMichael Jennings <mej@kainx.org>2011-02-02 03:12:08 +0000
commit5a1858d0668408796e3c6a85ab6a732785dd7027 (patch)
tree377e446c4827440236e28bab3d16a0254b95e176 /legacy/eeze
parentd909b912b40a1b50f7c50988de04203be12225fe (diff)
Add spec file. Don't install test program.
SVN revision: 56642
Diffstat (limited to 'legacy/eeze')
-rw-r--r--legacy/eeze/Makefile.am4
-rw-r--r--legacy/eeze/configure.ac1
-rw-r--r--legacy/eeze/eeze.spec.in75
-rw-r--r--legacy/eeze/src/bin/Makefile.am5
4 files changed, 83 insertions, 2 deletions
diff --git a/legacy/eeze/Makefile.am b/legacy/eeze/Makefile.am
index 0a8ca4309f..4d9f2c5390 100644
--- a/legacy/eeze/Makefile.am
+++ b/legacy/eeze/Makefile.am
@@ -17,6 +17,8 @@ ltconfig \
17ltmain.sh \ 17ltmain.sh \
18missing \ 18missing \
19eeze*doc*tar* \ 19eeze*doc*tar* \
20eeze.pc \
21eeze.spec \
20m4/l* 22m4/l*
21 23
22pkgconfigdir = $(libdir)/pkgconfig 24pkgconfigdir = $(libdir)/pkgconfig
@@ -29,6 +31,8 @@ README \
29$(pkgconfig_DATA) \ 31$(pkgconfig_DATA) \
30autogen.sh \ 32autogen.sh \
31eeze.pc.in \ 33eeze.pc.in \
34eeze.spec.in \
35eeze.spec \
32m4/efl_doxygen.m4 36m4/efl_doxygen.m4
33 37
34.PHONY: doc 38.PHONY: doc
diff --git a/legacy/eeze/configure.ac b/legacy/eeze/configure.ac
index bfe3417f73..1209230df4 100644
--- a/legacy/eeze/configure.ac
+++ b/legacy/eeze/configure.ac
@@ -159,6 +159,7 @@ src/Makefile
159src/lib/Makefile 159src/lib/Makefile
160src/bin/Makefile 160src/bin/Makefile
161eeze.pc 161eeze.pc
162eeze.spec
162]) 163])
163 164
164 165
diff --git a/legacy/eeze/eeze.spec.in b/legacy/eeze/eeze.spec.in
new file mode 100644
index 0000000000..b86f46ab63
--- /dev/null
+++ b/legacy/eeze/eeze.spec.in
@@ -0,0 +1,75 @@
1%{!?_rel:%{expand:%%global _rel 0.r%(svnversion | sed 's/[^0-9].*$//' || echo 0000)}}
2%define _missing_doc_files_terminate_build 0
3
4Summary: Device Convenience Library
5Name: @PACKAGE@
6Version: @VERSION@
7Release: %{_rel}
8License: BSD
9Group: System Environment/Libraries
10Source: http://download.enlightenment.org/releases/%{name}-%{version}.tar.gz
11Packager: %{?_packager:%{_packager}}%{!?_packager:Michael Jennings <mej@eterm.org>}
12Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
13Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
14BuildRequires: ecore-devel, libudev-devel
15URL: http://www.enlightenment.org/
16BuildRoot: %{_tmppath}/%{name}-%{version}-root
17
18%description
19Eeze is a library for manipulating devices through udev with a simple
20and fast api. It interfaces directly with libudev, avoiding such
21middleman daemons as udisks/upower or hal, to immediately gather
22device information the instant it becomes known to the system. This
23can be used to determine such things as:
24 * If a cdrom has a disk inserted
25 * The temperature of a cpu core
26 * The remaining power left in a battery
27 * The current power consumption of various parts
28 * Monitor in realtime the status of peripheral devices
29
30Each of the above examples can be performed by using only a single
31eeze function, as one of the primary focuses of the library is to
32reduce the complexity of managing devices.
33
34%package devel
35Summary: Development files for Eeze
36Group: System Environment/Libraries
37Requires: %{name} = %{version}
38Requires: ecore-devel, libudev-devel
39
40%description devel
41Headers, static libraries, test programs and documentation for Eeze
42
43%prep
44%setup -q
45
46%build
47%{configure} --prefix=%{_prefix}
48%{__make} %{?_smp_mflags} %{?mflags}
49
50%install
51%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
52
53%clean
54test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
55
56%post
57/sbin/ldconfig
58
59%postun
60/sbin/ldconfig
61
62%files
63%defattr(-, root, root)
64%doc AUTHORS COPYING README
65%{_libdir}/*.so.*
66
67%files devel
68%defattr(-, root, root)
69%{_includedir}/*
70%{_libdir}/*.a
71%{_libdir}/*.so
72%{_libdir}/*.la
73%{_libdir}/pkgconfig/*
74
75%changelog
diff --git a/legacy/eeze/src/bin/Makefile.am b/legacy/eeze/src/bin/Makefile.am
index 692c06bdfb..0724ff72f8 100644
--- a/legacy/eeze/src/bin/Makefile.am
+++ b/legacy/eeze/src/bin/Makefile.am
@@ -4,7 +4,8 @@ EEZE_CFLAGS = \
4-I$(top_srcdir)/src/lib \ 4-I$(top_srcdir)/src/lib \
5@EEZE_CFLAGS@ 5@EEZE_CFLAGS@
6 6
7EXTRA_PROGRAMS = eeze_udev_test 7noinst_PROGRAMS = @EEZE_UDEV_TEST_PRG@
8EXTRA_PROGRAMS = eeze_udev_test eeze_mount eeze_umount eeze_disk_ls
8 9
9if HAVE_EEZE_MOUNT 10if HAVE_EEZE_MOUNT
10 DISK_PROGS = eeze_mount eeze_umount eeze_disk_ls 11 DISK_PROGS = eeze_mount eeze_umount eeze_disk_ls
@@ -12,7 +13,7 @@ else
12 DISK_PROGS = 13 DISK_PROGS =
13endif 14endif
14 15
15bin_PROGRAMS = @EEZE_UDEV_TEST_PRG@ $(DISK_PROGS) 16bin_PROGRAMS = $(DISK_PROGS)
16 17
17eeze_udev_test_SOURCES = eeze_udev_test.c 18eeze_udev_test_SOURCES = eeze_udev_test.c
18eeze_udev_test_CPPFLAGS = -I$(top_srcdir)/src/lib @EEZE_CFLAGS@ 19eeze_udev_test_CPPFLAGS = -I$(top_srcdir)/src/lib @EEZE_CFLAGS@