Skip to content

Commit

Permalink
pgmodeler:
Browse files Browse the repository at this point in the history
- By comments of Volker Fröhlich, thanks.
- Copy icon into pixmaps.
- Move all libs into %%{_libdir}/%%{name} subdir.
  • Loading branch information
Hubbitus committed Nov 22, 2013
1 parent ee676e5 commit 3699bc2
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
4 changes: 2 additions & 2 deletions SOURCES/pgmodeler.desktop
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
[Desktop Entry]
Name=pgmodeler
GenericName=PostgreSQL ER Database Modeler
Comment=Program with nice Qt interface for visual modeling PostgreSQL database in terms on entity relationship model
Comment=Program with nice Qt interface for visual modeling PostgreSQL database in terms of entity relationship model
Exec=pgmodeler
Icon=/etc/pgmodeler/pgmodeler_logo.png
Icon=pgmodeler_logo
Terminal=false
Type=Application
Categories=KDE;Qt;Database;Development;
22 changes: 15 additions & 7 deletions SPECS/pgmodeler.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Name: pgmodeler
Version: 0.6.0_alpha
Release: 0.2%{?GITrev:.git.%{GITrev}}%{?dist}
Release: 0.3%{?GITrev:.git.%{GITrev}}%{?dist}
Summary: PostgreSQL Database Modeler

License: GPLv3
Expand Down Expand Up @@ -63,7 +63,6 @@ make %{?_smp_mflags} CXX="g++ -std=c++11"
# Official install target do almost nothing
#% make_install


mkdir -p %{buildroot}%{_bindir}
install -m755 -D build/%{name} %{buildroot}%{_bindir}/%{name}-bin
install -m755 -D build/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli-bin
Expand Down Expand Up @@ -108,8 +107,8 @@ EOF

chmod 0755 %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-cli

mkdir -p %{buildroot}%{_libdir}
cp -dp build/*.so* %{buildroot}%{_libdir}/
mkdir -p %{buildroot}%{_libdir}/%{name}/
cp -dp build/*.so* %{buildroot}%{_libdir}/%{name}/

mkdir -p %{buildroot}%{_includedir}/%{name}
cp -dp lib*/src/*.h %{buildroot}%{_includedir}/%{name}/
Expand All @@ -121,6 +120,10 @@ desktop-file-install --mode 644 \
--dir %{buildroot}%{_datadir}/applications/ \
%{SOURCE2}

# icon and menu-entry
install -p -dm 755 %{buildroot}%{_datadir}/pixmaps
install -p -m 644 conf/%{name}_logo.png %{buildroot}%{_datadir}/pixmaps

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig
Expand All @@ -132,18 +135,23 @@ desktop-file-install --mode 644 \
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-cli-bin
%{_libexecdir}/%{name}-ch
%{_libdir}/lib*.so.1*
%{_libdir}/%{name}/plugins
%{_libdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.bash
%{_datarootdir}/%{name}
%{_datadir}/pixmaps
%{_datadir}/applications/%{name}.desktop

%files devel
%{_libdir}/lib*.so
%{_libdir}/%{name}/lib*.so
%{_includedir}/%{name}

%changelog
* Sun Sep 29 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.0_alpha-0.3.git.ec8d48f
- By comments of Volker Fröhlich, thanks.
- Copy icon into pixmaps.
- Move all libs into %%{_libdir}/%%{name} subdir.

* Wed Aug 7 2013 Pavel Alexeev <Pahan@Hubbitus.info> - 0.6.0_alpha-0.2.git.ec8d48f
- Move config to ~/.config/%%{name} before use

Expand Down

0 comments on commit 3699bc2

Please sign in to comment.