From e39a4bf65a27d1d015a3212ad14317d4a34fbf63 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Thu, 6 Mar 2014 13:09:00 -0800 Subject: [PATCH] Initial packaging of apr-1.5.0. Change-Id: I5e7ea1db6e6b3c35f553dd3b766055276d25c2ea --- .gbs.conf | 3 +++ .gitignore | 28 ++++++++++++++++++++++++ Makefile.in | 3 ++- packaging/apr.changes | 4 ++++ packaging/apr.manifest | 5 +++++ packaging/apr.spec | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++ 6 files changed, 101 insertions(+), 1 deletion(-) create mode 100644 .gbs.conf create mode 100644 .gitignore create mode 100644 packaging/apr.changes create mode 100644 packaging/apr.manifest create mode 100644 packaging/apr.spec diff --git a/.gbs.conf b/.gbs.conf new file mode 100644 index 0000000..fa9fdc5 --- /dev/null +++ b/.gbs.conf @@ -0,0 +1,3 @@ +[general] +upstream_branch = upstream +upstream_tag = ${upstreamversion} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c58021f --- /dev/null +++ b/.gitignore @@ -0,0 +1,28 @@ +*.o +*.lo +*.la +*.so* +*.a +*~ +*#*# +config.log +config.status +Makefile +Makefile.in +.deps +INSTALL +missing +aclocal.m4 +ar-lib +autom4te.cache/ +compile +configure +depcomp +install-sh +libtool +ltmain.sh +.libs +stamp* +config.* +core* + diff --git a/Makefile.in b/Makefile.in index 2ccaaf3..41ceddb 100644 --- a/Makefile.in +++ b/Makefile.in @@ -18,7 +18,7 @@ APR_MAJOR_VERSION=@APR_MAJOR_VERSION@ INCDIR=./include OSDIR=$(top_srcdir)/include/arch/@OSDIR@ DEFOSDIR=$(INCDIR)/arch/@DEFAULT_OSDIR@ -INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) -I$(top_srcdir)/include/arch/@DEFAULT_OSDIR@ -I$(top_srcdir)/include -I$(top_srcdir)/include/private +INCLUDES=-I$(INCDIR) -I$(OSDIR) -I$(DEFOSDIR) -I$(top_srcdir)/include/arch/@DEFAULT_OSDIR@ -I$(top_srcdir)/include -I$(top_srcdir)/include/private -I$(top_blddir)/include/private # # Macros for target determination @@ -134,6 +134,7 @@ tools/gen_test_char@EXEEXT@: $(OBJECTS_gen_test_char) $(LINK_PROG) $(OBJECTS_gen_test_char) $(ALL_LIBS) include/private/apr_escape_test_char.h: tools/gen_test_char@EXEEXT@ + $(APR_MKDIR) include/private tools/gen_test_char@EXEEXT@ > $@ LINK_PROG = $(LIBTOOL) $(LTFLAGS) --mode=link $(COMPILE) $(LT_LDFLAGS) \ diff --git a/packaging/apr.changes b/packaging/apr.changes new file mode 100644 index 0000000..24f673f --- /dev/null +++ b/packaging/apr.changes @@ -0,0 +1,4 @@ +* Thu Mar 06 2014 Ossama Othman ae6203a +- Initial packaging of apr-1.5.0. +- Initial import. + diff --git a/packaging/apr.manifest b/packaging/apr.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/apr.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/apr.spec b/packaging/apr.spec new file mode 100644 index 0000000..727a541 --- /dev/null +++ b/packaging/apr.spec @@ -0,0 +1,59 @@ +Name: apr +Version: 1.5.0 +Release: 0 +Summary: Apache Portable Runtime +License: Apache-2.0 +Group: Application Framework/Libraries +URL: http://apr.apache.org/ +Source: %name-%version.tar.xz +Source1001: apr.manifest +BuildRequires: autoconf >= 2.64, automake >= 1.11 +BuildRequires: libtool >= 2.2 + +%description +Software libraries that provide a predictable and consistent interface +to underlying platform-specific implementations. The primary goal is +to provide an API to which software developers may code and be assured +of predictable if not identical behaviour regardless of the platform +on which their software is built, relieving them of the need to code +special-case conditions to work around or take advantage of +platform-specific deficiencies or features. + +%package devel +Summary: Development files for the Apache Portable Runtime +Group: Application Framework/Libraries +Requires: %name = %version + +%description devel +Development files, including headers, for the APR library. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build +autoreconf +%configure --disable-static +make %{?_smp_mflags} + +%install +%make_install + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%manifest %{name}.manifest +%license LICENSE +%defattr(-,root,root) +%{_libdir}/*.so.* + +%files devel +%manifest %{name}.manifest +%defattr(-,root,root) +%{_bindir}/apr-1-config +%{_includedir}/*.h +%{_libdir}/apr.exp +%{_libdir}/*.so +%{_libdir}/pkgconfig/*.pc +%{_datadir}/build-1/* -- 2.7.4