swt2c / rpms / pgadmin3

Forked from rpms/pgadmin3 5 years ago
Clone
Blob Blame History Raw
Summary:	Graphical client for PostgreSQL
Name:		pgadmin3
Version:	1.0.2
Release:	3
License:	Artistic
Group:		Applications/Databases
Source: 	ftp://ftp.postgresql.org/pub/pgadmin3/release/src/pgadmin3-1.0.2.tar.gz
URL:		http://www.pgadmin.org/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:	wxGTK2-devel wxGTK2-stc wxGTK2-xrc postgresql-devel desktop-file-utils openssl-devel

%description
pgAdmin III is a comprehensive PostgreSQL database design
and management system for *nix and Windows systems.

%prep
%setup -q

%build
%configure
#Somehow doesn't link in these..
make %{?_smp_mflags} LDFLAGS="-lwx_gtk2-2.4 -lwx_gtk2_stc-2.4 -lwx_gtk2_xrc-2.4" all

%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

cp -f ./src/include/images/elephant48.xpm $RPM_BUILD_ROOT/%{_datadir}/%{name}/%{name}.xpm

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/applications

desktop-file-install --vendor fedora --dir $RPM_BUILD_ROOT/%{_datadir}/applications \
	--add-category X-Fedora\
	--add-category Application\
	--add-category System\
	./pkg/%{name}.desktop


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc LICENCE.txt BUGS.txt README.txt
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*

%changelog
* Thu Oct 07 2004 Nils O. Selåsdal <NOS|at|Utel.no> - 0:1.0.2-0.fdr.3
- include LICENCE.txt BUGS.txt README.txt
- Use master location in Source
- Don't --delete-original .desktop file.
* Thu Oct 07 2004 Nils O. Selåsdal <NOS|at|Utel.no> - 0:1.0.2-0.fdr.2
- Don't own _datadir/applications/
- Fedora -> fedora for .desktop file
- Use _smp_mflags for make
* Wed Oct 06 2004 Nils O. Selåsdal <NOS|at|Utel.no> - 0:1.0.2-0.fdr.1
- Initial RPM