]> git.pld-linux.org Git - packages/python-PyGreSQL.git/commitdiff
- adapterized and made spec %%debug ready or added using %%rpm*flags macros
authorJakub Bogusz <qboosh@pld-linux.org>
Wed, 2 May 2001 21:51:28 +0000 (21:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    python-PyGreSQL.spec -> 1.11

python-PyGreSQL.spec

index d29df0791e8f334df230c0e53f20226ed387b287..3856f65036cd02a0f7f2cbf4b06831908ce0b9a1 100644 (file)
@@ -4,29 +4,30 @@
 %define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
 %define python_compile python -c "import compileall; compileall.compile_dir('.')"
 
-Summary:       Python interface to PostgresSQL 
-Summary(pl):   Interfejs pomiêdzy jêzykiem Python a baz± danych PostgresSQL 
-Name:          python-PyGreSQL
-Release:       1
-Version:       3.1
-Copyright:     See description
-Group:         Applications/Databases/Interfaces
-Group(pl):     Aplikacje/Bazy Danych/Interfejsy
-Source:        ftp://ftp.druid.net/pub/distrib/%{module}-%{version}.tgz
-Source1:       python-Makefile.pre.in
-Source2:       Setup.in.PyGreSQL
-URL:           http://www.druid.net/pygresql
-BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-Requires:      python >= 1.5
-BuildRequires: python-devel >= 1.5
-BuildRequires: postgresql-devel >= 6.5.3
+Summary:       Python interface to PostgresSQL 
+Summary(pl):   Interfejs pomiêdzy jêzykiem Python a baz± danych PostgresSQL 
+Name:          python-PyGreSQL
+Release:       1
+Version:       3.1
+Copyright:     See description
+Group:         Applications/Databases/Interfaces
+Group(de):     Applikationen/Dateibanken/Schnittstellen
+Group(pl):     Aplikacje/Bazy danych/Interfejsy
+Source0:       ftp://ftp.druid.net/pub/distrib/%{module}-%{version}.tgz
+Source1:       python-Makefile.pre.in
+Source2:       Setup.in.PyGreSQL
+URL:           http://www.druid.net/pygresql
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Requires:      python >= 1.5
+BuildRequires: python-devel >= 1.5
+BuildRequires: postgresql-devel >= 6.5.3
 
 %description
 This package provides access to PostgresSQL data from Python
 
-Written by D'Arcy J.M. Cain, darcy@druid.net
-Based heavily on code written by Pascal Andre, andre@chimay.via.ecp.fr.
-Copyright (c) 1995, Pascal ANDRE (andre@via.ecp.fr)    
+Written by D'Arcy J.M. Cain, darcy@druid.net Based heavily on code
+written by Pascal Andre, andre@chimay.via.ecp.fr. Copyright (c) 1995,
+Pascal ANDRE (andre@via.ecp.fr)
 
 See documentation for the full Copyright notice.
 
@@ -34,35 +35,38 @@ See documentation for the full Copyright notice.
 Ten pakiet zapewnia dostêp do baz danych PostgreSQL z poziomu skryptów
 jêzyka Python.
 
-Autor: D'Arcy J.M. Cain, darcy@druid.net
-Oparte na kodzie napisanym przez Pascala Andre, andre@chimay.via.ecp.fr.
-Copyright (c) 1995, Pascal ANDRE (andre@via.ecp.fr)
+Autor: D'Arcy J.M. Cain, darcy@druid.net Oparte na kodzie napisanym
+przez Pascala Andre, andre@chimay.via.ecp.fr. Copyright (c) 1995,
+Pascal ANDRE (andre@via.ecp.fr)
 
 Pe³na informacja na temat praw autorskich znajduje siê w dokumentacji.
 
 %prep
-%setup -n PyGreSQL-3.1
-cp $RPM_SOURCE_DIR/python-Makefile.pre.in ./Makefile.pre.in
-cp $RPM_SOURCE_DIR/Setup.in.PyGreSQL Setup.in
+%setup -q -n PyGreSQL-3.1
+cp -f %{SOURCE1} ./Makefile.pre.in
+cp -f %{SOURCE2} Setup.in
 
 %build
 %{__make} -f Makefile.pre.in boot
-%{__make} OPT="$RPM_OPT_FLAGS"
+%{__make} OPT="%{rpmcflags}"
 
 %install
 rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}
+install -d $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}
 echo %{module} > $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}.pth
 
 %python_compile_opt
 %python_compile
 
-install -m 644 pg.py{c,o} $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}
+install pg.py{c,o} $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}
 install -m 755 _pgmodule.so $RPM_BUILD_ROOT%{python_sitepkgsdir}/%{module}
 
-gzip README README.linux Announce ChangeLog
+gzip -9nf README README.linux Announce ChangeLog
 tar czf tutorial.tar.gz tutorial
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %files
 %defattr(644,root,root,755)
 %doc {README,README.linux,tutorial.tar,Announce,ChangeLog}.gz
This page took 0.168865 seconds and 4 git commands to generate.