summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Seabra <rms@1407.org>2012-09-23 13:39:53 +0000
committerRui Seabra <rms@1407.org>2012-09-23 13:39:53 +0000
commit58f5ec5047fcc32540176c3d4f0f4e3b959fddea (patch)
tree63a47bf46dba8756fac562ac4996303ecdde2cfe
parent6ac749104c0d34b40013e26243a4dfd75a153593 (diff)
Add rpm support
SVN revision: 77023
-rw-r--r--legacy/ephysics/Makefile.am3
-rw-r--r--legacy/ephysics/configure.ac1
-rw-r--r--legacy/ephysics/ephysics.spec.in66
3 files changed, 69 insertions, 1 deletions
diff --git a/legacy/ephysics/Makefile.am b/legacy/ephysics/Makefile.am
index 4964416e33..8fac0f3ee8 100644
--- a/legacy/ephysics/Makefile.am
+++ b/legacy/ephysics/Makefile.am
@@ -33,6 +33,7 @@ COPYING \
33COPYING_ARTS \ 33COPYING_ARTS \
34autogen.sh \ 34autogen.sh \
35ephysics.pc.in \ 35ephysics.pc.in \
36ephysics.spec \
36README 37README
37 38
38pkgconfigdir = $(libdir)/pkgconfig 39pkgconfigdir = $(libdir)/pkgconfig
@@ -45,4 +46,4 @@ endif
45 46
46doc: 47doc:
47 @echo "entering doc/" 48 @echo "entering doc/"
48 make -C doc doc \ No newline at end of file 49 make -C doc doc
diff --git a/legacy/ephysics/configure.ac b/legacy/ephysics/configure.ac
index 28fc19e449..e064b5f42f 100644
--- a/legacy/ephysics/configure.ac
+++ b/legacy/ephysics/configure.ac
@@ -220,6 +220,7 @@ AC_SUBST(requirement_ephysics)
220 220
221AC_OUTPUT([ 221AC_OUTPUT([
222ephysics.pc 222ephysics.pc
223ephysics.spec
223Makefile 224Makefile
224data/Makefile 225data/Makefile
225data/logo_images/Makefile 226data/logo_images/Makefile
diff --git a/legacy/ephysics/ephysics.spec.in b/legacy/ephysics/ephysics.spec.in
new file mode 100644
index 0000000000..0a18043f59
--- /dev/null
+++ b/legacy/ephysics/ephysics.spec.in
@@ -0,0 +1,66 @@
1%{!?_rel:%{expand:%%global _rel 0.enl%{?dist}}}
2%define _missing_doc_files_terminate_build 0
3
4Summary: ephysics library
5Name: @PACKAGE@
6Version: @VERSION@
7Release: %{_rel}
8License: MIT
9Group: System Environment/Libraries
10Source: http://download.enlightenment.org/releases/%{name}-%{version}.tar.gz
11Packager: %{?_packager:%{_packager}}%{!?_packager:Rui Miguel Seabra <rms@1407.org>}
12Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:The Enlightenment Project (http://www.enlightenment.org/)}
13Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
14URL: http://www.enlightenment.org/
15BuildRoot: %{_tmppath}/%{name}-%{version}-root
16
17%description
18EPhysics is a library that manages Ecore, Evas and Bullet Physics into
19an easy to use way. It's a kind of wrapper, a glue, between these libraries.
20It's not intended to be a physics library (we already have many out there).
21
22%package devel
23Summary: EPhysics headers, static libraries, documentation and test programs
24Group: System Environment/Libraries
25Requires: %{name} = %{version}
26
27%description devel
28Headers, static libraries, test programs and documentation for EPhysics
29
30%prep
31%setup -q
32
33%build
34%{configure} --prefix=%{_prefix}
35%{__make} %{?_smp_mflags} %{?mflags}
36
37%install
38%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
39
40%clean
41test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
42
43%post
44/sbin/ldconfig
45
46%postun
47/sbin/ldconfig
48
49%files
50%defattr(-, root, root)
51%doc AUTHORS COPYING README
52%{_bindir}/*
53%{_libdir}/*.so.*
54%dir %{_datadir}/ephysics/
55%{_datadir}/ephysics/*.edj
56%{_datadir}/ephysics/*.png
57
58%files devel
59%defattr(-, root, root)
60%{_includedir}/*
61%{_libdir}/*.a
62%{_libdir}/*.so
63%{_libdir}/*.la
64%{_libdir}/pkgconfig/*
65
66%changelog