]> git.pld-linux.org Git - SPECS.git/blob - pgadmin4.spec
SPECS updated Sun 1 Aug 20:13:02 CEST 2021
[SPECS.git] / pgadmin4.spec
1 # TODO:
2 # - install py stuff
3 Summary:        Powerful administration and development platform for the PostgreSQL
4 Summary(pl.UTF-8):      Potężna platforma do administrowania i programowania bazy PostgreSQL
5 Name:           pgadmin4
6 Version:        3.3
7 Release:        0.1
8 License:        Artistic
9 Group:          Applications/Databases
10 Source0:        http://ftp.postgresql.org/pub/pgadmin/pgadmin4/v%{version}/source/%{name}-%{version}.tar.gz
11 # Source0-md5:  6dfd363dd2cf21efe35330c6e4a87f03
12 Source1:        %{name}.desktop
13 URL:            http://pgadmin3.org/
14 BuildRequires:  python3-devel
15 BuildRequires:  postgresql-backend-devel >= 8.3.0
16 BuildRequires:  postgresql-devel >= 8.3.0
17 BuildRequires:  qt5-qmake
18 BuildRequires: Qt5Core-devel
19 BuildRequires: Qt5Gui-devel
20 BuildRequires: Qt5Network-devel
21 BuildRequires: Qt5Widgets-devel
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 pgAdmin III is designed to answer the needs of all users, from writing
26 simple SQL queries to developing complex databases. The graphical
27 interface supports all PostgreSQL features and makes administration
28 easy. The application also includes a query builder, an SQL editor, a
29 server-side code editor and much more. pgAdmin III is released with an
30 installer and does not require any additional driver to communicate
31 with the database server.
32
33 %description -l pl.UTF-8
34 pgAdmin III został zaprojektowany jako odpowiedź na potrzeby
35 wszystkich użytkowników, od pisania prostych zapytań SQL do tworzenia
36 skomplikowanych baz danych. Graficzny interfejs obsługuje wszystkie
37 możliwości PostgreSQL-a i ułatwia administrowanie. Aplikacja zawiera
38 także narzędzie do budowania zapytań, edytor SQL, edytor kodu po
39 stronie serwera i wiele więcej. pgAdmin III został wydany z
40 instalatorem i nie wymaga żadnego dodatkowego sterownika do
41 komunikowania z serwerem baz danych.
42
43 %prep
44 %setup -q
45
46 %build
47 cd runtime
48
49 PYTHON_CONFIG=%{_bindir}/python3-config \
50 qmake-qt5
51 %{__make}
52
53 %install
54 rm -rf $RPM_BUILD_ROOT
55
56 install -d \
57         $RPM_BUILD_ROOT{%{_bindir},%{_desktopdir},%{_pixmapsdir}}
58
59 %{__make} -C runtime install \
60         DESTDIR=$RPM_BUILD_ROOT
61
62 install runtime/pgAdmin4 $RPM_BUILD_ROOT%{_bindir}/pgadmin4
63
64 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
65 cp -p runtime/pgAdmin4.png $RPM_BUILD_ROOT%{_pixmapsdir}/pgadmin4.png
66
67 %clean
68 rm -rf $RPM_BUILD_ROOT
69
70 %files
71 %defattr(644,root,root,755)
72 %doc LICENSE README docs/en_US
73 %attr(755,root,root) %{_bindir}/pgadmin4
74 %{_desktopdir}/pgadmin4.desktop
75 %{_pixmapsdir}/pgadmin4.png
This page took 0.407541 seconds and 3 git commands to generate.