Changes of Revision 5
[-] | Added | pgadmin3.spec |
x 1
2 +# 3 +# spec file for package pgadmin3 (1.6.3 0) 4 +# 5 +# Copyright (c) 2003 SuSE Linux AG, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bug fixes or comments via http://www.suse.de/feedback/ 10 +# 11 +# norootforbuild 12 + 13 +Name: pgadmin3 14 +Summary: A management and administration tools for the PostgreSQL database 15 +License: Artistic License 16 +Group: Productivity/Databases/Tools 17 +Version: 1.8.4 18 +Release: 0 19 +URL: http://www.pgadmin.org/index.php 20 +Source0: %name-%{version}.tar.bz2 21 +Source1: %{name}.desktop 22 +Recommends: postgresql-server 23 +BuildRequires: postgresql postgresql-devel libxml2-devel libxslt-devel gcc-c++ wxGTK-devel update-desktop-files 24 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 25 +Patch: pgadmin3-1.8.2-rpmoptflags.patch 26 +%requires_eq postgresql 27 + 28 +%description 29 +pgAdmin III is an administration and management tool for the PostgreSQL database and derivative products such as EnterpriseDB, Mammoth PostgreSQL, Pervasive Postgres, and SRA PowerGres. It includes a graphical administration interface, an SQL query tool with grahical EXPLAIN, a procedural code editor, an SQL/shell/batch scheduling agent, Slony-I management, and much more. It is designed to answer the needs of most users, from writing simple SQL queries to developing complex databases. The graphical interface supports all PostgreSQL features and makes administration easy. 30 + 31 +%debug_package 32 + 33 +%prep 34 + 35 +%setup -q 36 +%patch 37 +%build 38 + 39 +autoreconf -fiv 40 + 41 +CFLAGS="%{optflags}" 42 +CXXFLAGS="%{optflags}" 43 +CFLAGS="$CFLAGS -fstack-protector" 44 +CXXFLAGS="$CXXFLAGS -fstack-protector" 45 + 46 +export CFLAGS 47 +export CXXFLAGS 48 + 49 +%configure --with-pic --disable-static 50 + 51 +%{__make} %{?jobs:-j%jobs} 52 + 53 +%install 54 + 55 +%{__make} DESTDIR=$RPM_BUILD_ROOT install 56 +%{__mkdir_p} $RPM_BUILD_ROOT/%{_prefix}/share/pixmaps/ 57 +%{__install} -m 644 ./pgadmin/include/images/elephant32.xpm $RPM_BUILD_ROOT/%{_prefix}/share/pixmaps/ 58 + 59 +find %buildroot%{_datadir}/%{name}/docs -type f -exec chmod 644 {} + 60 + 61 +%suse_update_desktop_file -i %{name} System Database 62 + 63 +%clean 64 +%{__rm} -rf $RPM_BUILD_ROOT 65 + 66 +%files 67 +%defattr(-, root, root) 68 +%{_bindir}/pgadmin3 69 +%{_bindir}/pgagent 70 +%dir /usr/share/pgadmin3 71 +%dir /usr/share/pgadmin3/branding 72 +%dir /usr/share/pgadmin3/docs 73 +%dir /usr/share/pgadmin3/i18n 74 +/usr/share/pgadmin3/i18n/* 75 +/usr/share/pgadmin3/pgagent.sql 76 +/usr/share/pgadmin3/branding/branding.ini 77 +#the code seems to expect docs to be here !! 78 +/usr/share/pgadmin3/docs/* 79 +/usr/share/applications/pgadmin3.desktop 80 +/usr/share/pixmaps/elephant32.xpm 81 +%doc BUGS CHANGELOG LICENSE README TODO 82 |