summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRui Seabra <rms@1407.org>2012-09-23 13:44:27 +0000
committerRui Seabra <rms@1407.org>2012-09-23 13:44:27 +0000
commit90e165c346759d806e9d71122922b44499da34d5 (patch)
tree2ae23355a70f06669ff253e80f9cd2225eb113ae
parenta0ac06e270db5ec36bf2a596ae28a60adbfe6080 (diff)
Add rpm spec support
SVN revision: 77024
-rw-r--r--Makefile.am1
-rw-r--r--configure.ac1
-rw-r--r--etrophy.spec.in65
3 files changed, 67 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index dd31d65..0a44821 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -31,6 +31,7 @@ AUTHORS \
31COPYING \ 31COPYING \
32autogen.sh \ 32autogen.sh \
33etrophy.pc.in \ 33etrophy.pc.in \
34etrophy.spec \
34README 35README
35 36
36pkgconfigdir = $(libdir)/pkgconfig 37pkgconfigdir = $(libdir)/pkgconfig
diff --git a/configure.ac b/configure.ac
index c24ab19..9ed0f4a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -175,6 +175,7 @@ AC_SUBST(requirement_etrophy)
175 175
176AC_OUTPUT([ 176AC_OUTPUT([
177etrophy.pc 177etrophy.pc
178etrophy.spec
178Makefile 179Makefile
179src/Makefile 180src/Makefile
180src/lib/Makefile 181src/lib/Makefile
diff --git a/etrophy.spec.in b/etrophy.spec.in
new file mode 100644
index 0000000..ac67211
--- /dev/null
+++ b/etrophy.spec.in
@@ -0,0 +1,65 @@
1%{!?_rel:%{expand:%%global _rel 0.r%(svnversion | sed 's/[^0-9].*$//' || echo 0000)}}
2%define _missing_doc_files_terminate_build 0
3
4Summary: ETrophy is a library that manages scores, trophies and unlockables.
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:Rui Miguel Silva 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
16Requires: eina, ecore
17BuildRequires: eina-devel, ecore-devel
18
19%description
20ETrophy is a library that manages scores, trophies and unlockables. It will
21store them and provide views to display them. Could be used by games based
22on EFL.
23
24%package devel
25Summary: Etrophy headers, static libraries, documentation and test programs
26Group: System Environment/Libraries
27Requires: %{name} = %{version}
28
29%description devel
30Headers, static libraries, test programs and documentation for Etrophy
31
32%prep
33%setup -q
34
35%build
36%{configure} --prefix=%{_prefix}
37%{__make} %{?_smp_mflags} %{?mflags}
38
39%install
40%{__make} %{?mflags_install} DESTDIR=$RPM_BUILD_ROOT install
41
42%clean
43test "x$RPM_BUILD_ROOT" != "x/" && rm -rf $RPM_BUILD_ROOT
44
45%post
46/sbin/ldconfig
47
48%postun
49/sbin/ldconfig
50
51%files
52%defattr(-, root, root)
53%doc AUTHORS COPYING README
54%{_libdir}/*.so.*
55%{_datadir}/etrophy/*
56
57%files devel
58%defattr(-, root, root)
59%{_includedir}/*
60%{_libdir}/*.a
61%{_libdir}/*.so
62%{_libdir}/*.la
63%{_libdir}/pkgconfig/*
64
65%changelog