1 # TODO: extra (pgtclsh, pgwish) - messy Makefile, requires libpgtcl in library path and with proper soname
2 Summary: pgtcl-ng - Tcl interface for PostgreSQL
3 Summary(pl.UTF-8): pgtcl-ng - interfejs Tcl dla PostgreSQL
8 Group: Development/Languages/Tcl
9 Source0: https://github.com/flightaware/Pgtcl/archive/v%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5: cc01148205fbf130f1a2930fdee00ec1
11 URL: https://flightaware.github.io/Pgtcl/
12 BuildRequires: postgresql-devel
13 BuildRequires: tcl-devel >= 8
15 Obsoletes: postgresql-tcl < 3.0.0
16 Obsoletes: tcl-libpgtcl < 3.0.0
17 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20 pgtcl is the Tcl interface for the PostgreSQL Database Management
21 System. It is a loadable Tcl module implementing commands which allow
22 an application to interact with a PostgreSQL database. pgtcl-ng is a
23 new revision of the pgtcl interface.
25 %description -l pl.UTF-8
26 pgtcl to interfejs Tcl do systemu baz danych PostgreSQL. Jest to
27 ładowalny moduł Tcl-a implementujący polecenia pozwalające aplikacji
28 współpracować z bazą danych PostgreSQL. pgtcl-ng to nowa wersja
32 Summary: C header file for pgtcl-ng interface
33 Summary(pl.UTF-8): Plik nagłówkowy C dla interfejsu pgtcl-ng
34 Group: Development/Languages/Tcl
35 Requires: %{name} = %{version}-%{release}
36 Requires: postgresql-devel
37 Obsoletes: postgresql-tcl-devel < 3.0.0
38 Obsoletes: postgresql-tcl-static < 3.0.0
39 Obsoletes: tcl-libpgtcl-devel < 3.0.0
42 C header file for pgtcl-ng interface.
44 %description devel -l pl.UTF-8
45 Plik nagłówkowy C dla interfejsu pgtcl-ng.
48 %setup -q -n Pgtcl-%{version}
58 rm -rf $RPM_BUILD_ROOT
61 DESTDIR=$RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
67 %defattr(644,root,root,755)
68 %doc LICENSE ChangeLog* README*
69 %dir %{_libdir}/pgtcl*.*
70 %attr(755,root,root) %{_libdir}/pgtcl*.*/libpgtcl*.so
71 %{_libdir}/pgtcl*.*/pkgIndex.tcl
72 %{_libdir}/pgtcl*.*/postgres-helpers.tcl
73 %{_mandir}/mann/PgGetConnectionId.n*
74 %{_mandir}/mann/pg_*.n*
77 %defattr(644,root,root,755)
78 %{_includedir}/pgtclId.h