packages: unxstemplate/unxstemplate-DESTDIR.patch (NEW), unxstemplate/unxst...
paszczus
paszczus at pld-linux.org
Fri Jun 12 15:19:57 CEST 2009
Author: paszczus Date: Fri Jun 12 13:19:57 2009 GMT
Module: packages Tag: HEAD
---- Log message:
- initial
---- Files affected:
packages/unxstemplate:
unxstemplate-DESTDIR.patch (NONE -> 1.1) (NEW), unxstemplate.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/unxstemplate/unxstemplate-DESTDIR.patch
diff -u /dev/null packages/unxstemplate/unxstemplate-DESTDIR.patch:1.1
--- /dev/null Fri Jun 12 15:19:57 2009
+++ packages/unxstemplate/unxstemplate-DESTDIR.patch Fri Jun 12 15:19:51 2009
@@ -0,0 +1,27 @@
+diff -ur unxstemplate-1.0/makefile unxstemplate-1.0.new/makefile
+--- unxstemplate-1.0/makefile 2009-05-09 15:48:04.000000000 +0200
++++ unxstemplate-1.0.new/makefile 2009-06-12 15:18:32.719580874 +0200
+@@ -11,7 +11,8 @@
+
+ CFLAGS= -Wall -DLinux
+ LIBS= -lmysqlclient.a -lz -lssl
+-
++libdir = @libdir@
++includedir = @includedir@
+
+
+ all: libtemplate.a
+@@ -26,8 +27,8 @@
+ rm -f *.o *.a
+
+ install: libtemplate.a template.h
+- mkdir -p /usr/lib/openisp
+- mkdir -p /usr/include/openisp
+- install libtemplate.a /usr/lib/openisp/libtemplate.a
+- install template.h /usr/include/openisp/template.h
++ mkdir -p $(DESTDIR)$(libdir)/openisp
++ mkdir -p $(DESTDIR)$(includedir)/openisp
++ install libtemplate.a $(DESTDIR)$(libdir)/openisp/libtemplate.a
++ install template.h $(DESTDIR)$(includedir)/openisp/template.h
+ rm libtemplate.a
+Tylko w unxstemplate-1.0.new/: makefile~
================================================================
Index: packages/unxstemplate/unxstemplate.spec
diff -u /dev/null packages/unxstemplate/unxstemplate.spec:1.1
--- /dev/null Fri Jun 12 15:19:57 2009
+++ packages/unxstemplate/unxstemplate.spec Fri Jun 12 15:19:51 2009
@@ -0,0 +1,51 @@
+# $Revision$, $Date$
+Summary: A small static library for unxsVZ templates
+Name: unxstemplate
+Version: 1.0
+Release: 1
+License: LGPL
+Group: Libraries
+Source0: http://unixservice.com/source/libs/%{name}-%{version}.tar.gz
+# Source0-md5: d29b0cbd6601197a99b04b216f78aedf
+URL: http://unixservice.com/unxstemplate
+Patch0: %{name}-DESTDIR.patch
+
+%description
+A library used by many unxsVZ C cgi programs for file and stream
+creation based on templates with simple {{var}} substitution and
+complex and multiline char data that is provided by externally defined
+functions that replace {{funcX}} in templates. These functions can
+recursively call other templates. Templates are stored in unxsVZ
+application MySQL tTemplate tables.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT \
+ libdir=%{_libdir} \
+ includedir=%{_includedir}
+%clean
+
+%files
+%defattr(644,root,root,755)
+%doc README LICENSE
+%{_libdir}/openisp/libtemplate.a
+%{_includedir}/openisp/template.h
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2009/06/12 13:19:51 paszczus
+- initial
+
================================================================
More information about the pld-cvs-commit
mailing list