/[packages]/updates/6/pgmodeler/current/SPECS/pgmodeler.spec
ViewVC logotype

Contents of /updates/6/pgmodeler/current/SPECS/pgmodeler.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1151107 - (show annotations) (download)
Mon Sep 4 08:33:14 2017 UTC (6 years, 7 months ago) by ns80
File size: 2514 byte(s)
- new version 0.9.0
- rediff patch do-not-check-for-updates-by-default

1 Name: pgmodeler
2 Version: 0.9.0
3 Release: %mkrel 1
4 Summary: PostgreSQL Database Modeler
5
6 License: GPLv3
7 URL: http://www.pgmodeler.com.br/
8 Group: Development/Databases
9 Source0: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
10 # https://github.com/pgmodeler/pgmodeler/issues/618
11 Source1: %{name}.desktop
12 Source2: %{name}-mime-dbm.xml
13 Patch0: %{name}-0.9.0-mga-do-not-check-for-updates-by-default.patch
14
15 BuildRequires: qt5-devel
16 BuildRequires: pkgconfig(libxml-2.0)
17 BuildRequires: pkgconfig(libpq)
18 BuildRequires: pkgconfig(Qt5Svg)
19 BuildRequires: desktop-file-utils
20 BuildRequires: gettext
21
22 %description
23 PostgreSQL Database Modeler, or simply, pgModeler is an
24 open source tool for modeling databases that merges the classical
25 concepts of entity-relationship diagrams with specific features that
26 only PostgreSQL implements. The pgModeler translates the models created
27 by the user to SQL code and apply them onto database clusters (Version
28 9.x).
29
30 %package devel
31 Summary: Development files for %{name}
32 Group: System/Libraries
33 Requires: %{name} = %{version}
34
35 %description devel
36 The %{name}-devel package contains libraries and header files for
37 developing applications that use %{name}.
38
39 %prep
40 %setup -q
41
42 %autopatch -p1
43
44 %build
45 %qmake_qt5 -recursive \
46 PREFIX=%{_prefix} \
47 BINDIR=%{_bindir} \
48 PRIVATEBINDIR+=%{_libexecdir} \
49 PLUGINSDIR=%{_libdir}/%{name}/plugins \
50 SHAREDIR=%{_datadir}/%{name} \
51 DOCDIR=%{_docdir}/%{name} \
52 PRIVATELIBDIR+=%{_libdir}/%{name} \
53 %{name}.pro
54
55 %make
56
57 %install
58 %make_install INSTALL_ROOT=%{buildroot}
59
60 desktop-file-install --mode 644 \
61 --dir %{buildroot}%{_datadir}/applications/ %{SOURCE1}
62
63 install -p -dm 755 %{buildroot}%{_datadir}/icons
64 install -p -m 644 conf/%{name}_logo.png %{buildroot}%{_datadir}/icons
65
66 install -p -dm 755 %{buildroot}%{_datadir}/mime/packages
67 install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
68
69 rm -f %{buildroot}%{_datadir}/%{name}/conf/%{name}.conf.0000
70
71 mkdir -p %{buildroot}%{_libdir}/%{name}/plugins
72
73 %files
74 %doc CHANGELOG.md LICENSE README.md RELEASENOTES.md
75 %{_bindir}/%{name}
76 %{_bindir}/%{name}-cli
77 %{_libexecdir}/%{name}-ch
78 %{_libdir}/%{name}/lib*.so.*
79 %{_libdir}/%{name}/plugins
80 %{_datadir}/%{name}
81 %{_datadir}/icons/%{name}_logo.png
82 %{_datadir}/mime/packages/%{name}.xml
83 %{_datadir}/applications/%{name}.desktop
84
85 %files devel
86 %{_libdir}/%{name}/lib*.so
87

  ViewVC Help
Powered by ViewVC 1.1.30