commit 3c8d61295c689d95d03decc60bfcae9ec9d44975
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Wed Mar 9 20:45:05 2016 +0100

    - new

 tcl-tdbc-postgres-man.patch | 20 +++++++++++++++++
 tcl-tdbc-postgres.spec      | 55 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
---
diff --git a/tcl-tdbc-postgres.spec b/tcl-tdbc-postgres.spec
new file mode 100644
index 0000000..5f45e40
--- /dev/null
+++ b/tcl-tdbc-postgres.spec
@@ -0,0 +1,55 @@
+Summary:       TDBC driver to access PostgreSQL databases
+Summary(pl.UTF-8):     Sterownik TDBC służący do dostępu do baz danych 
PostgreSQL
+Name:          tcl-tdbc-postgres
+Version:       1.0.4
+Release:       1
+License:       Tcl (BSD-like)
+Group:         Libraries
+Source0:       
http://downloads.sourceforge.net/tcl/tdbcpostgres%{version}.tar.gz
+# Source0-md5: 14186c69fc829b68805427f66aa78f0b
+Patch0:                %{name}-man.patch
+URL:           http://tdbc.tcl.tk/
+BuildRequires: tcl-devel >= 8.6
+BuildRequires: tcl-tdbc-devel >= %{version}
+Requires:      tcl >= 8.6
+Requires:      tcl-tdbc >= %{version}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tcl TDBC PostgreSQL module is the driver for Tcl Database Connectivity
+(TDBC) to access PostgreSQL databases.
+
+%description -l pl.UTF-8
+Moduł Tcl TDBC PostgreSQL to sterownik szkieletu Tcl Database
+Connectivity (TDBC) służący do dostępu do baz danych PostgreSQL.
+
+%prep
+%setup -q -n tdbcpostgres%{version}
+%patch0 -p1
+
+%build
+%configure
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+# internal headers
+%{__rm} $RPM_BUILD_ROOT%{_includedir}/{fakepq,pqStubs}.h
+
+# allow dependency generation
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/tdbcpostgres%{version}/*.so
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog README license.terms
+%dir %{_libdir}/tdbcpostgres%{version}
+%attr(755,root,root) 
%{_libdir}/tdbcpostgres%{version}/libtdbcpostgres%{version}.so
+%{_libdir}/tdbcpostgres%{version}/*.tcl
+%{_mandir}/mann/tdbc_postgres.n*
diff --git a/tcl-tdbc-postgres-man.patch b/tcl-tdbc-postgres-man.patch
new file mode 100644
index 0000000..2162c9e
--- /dev/null
+++ b/tcl-tdbc-postgres-man.patch
@@ -0,0 +1,20 @@
+--- tdbcpostgres1.0.4/Makefile.in.orig 2015-10-13 13:58:11.000000000 +0200
++++ tdbcpostgres1.0.4/Makefile.in      2016-03-09 20:38:51.691706841 +0100
+@@ -225,12 +225,11 @@
+ install-doc: doc
+       @$(INSTALL_DATA_DIR) $(DESTDIR)$(mandir)/mann
+       @echo "Installing documentation in $(DESTDIR)$(mandir)"
+-#   Not written yet!
+-#     @list='$(srcdir)/doc/*.n'; for i in $$list; do \
+-#         echo "Installing $$i"; \
+-#         rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
+-#         $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
+-#     done
++      @list='$(srcdir)/doc/*.n'; for i in $$list; do \
++          echo "Installing $$i"; \
++          rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
++          $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
++      done
+ 
+ test: binaries libraries
+       $(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcl-tdbc-postgres.git/commitdiff/3c8d61295c689d95d03decc60bfcae9ec9d44975

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to