forked from pool/sqlitebrowser
- Drop some build dependencies
* autotools are not used - Add macros for icons - Add correct dependencies for post/postun macros - Use cmake macros - Drop some conditional build dependencies for unsupported releases OBS-URL: https://build.opensuse.org/package/show/server:database/sqlitebrowser?expand=0&rev=17
This commit is contained in:
parent
c853264a83
commit
a6da1570ba
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Apr 10 09:28:05 UTC 2016 - mpluskal@suse.com
|
||||||
|
|
||||||
|
- Drop some build dependencies
|
||||||
|
* autotools are not used
|
||||||
|
- Add macros for icons
|
||||||
|
- Add correct dependencies for post/postun macros
|
||||||
|
- Use cmake macros
|
||||||
|
- Drop some conditional build dependencies for unsupported releases
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Apr 9 15:32:00 UTC 2016 - mailaender@opensuse.org
|
Sat Apr 9 15:32:00 UTC 2016 - mailaender@opensuse.org
|
||||||
|
|
||||||
|
@ -25,18 +25,17 @@ Group: Productivity/Office/Organizers
|
|||||||
Url: http://sqlitebrowser.org/
|
Url: http://sqlitebrowser.org/
|
||||||
Source0: https://github.com/sqlitebrowser/sqlitebrowser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
Source0: https://github.com/sqlitebrowser/sqlitebrowser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
||||||
Source1: sqlitebrowser.1
|
Source1: sqlitebrowser.1
|
||||||
BuildRequires: autoconf
|
|
||||||
BuildRequires: automake
|
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: gcc
|
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: hicolor-icon-theme
|
BuildRequires: hicolor-icon-theme
|
||||||
BuildRequires: sqlite3-devel
|
BuildRequires: sqlite3-devel
|
||||||
BuildRequires: update-desktop-files
|
BuildRequires: update-desktop-files
|
||||||
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
|
Requires(post): hicolor-icon-theme
|
||||||
|
Requires(post): update-desktop-files
|
||||||
|
Requires(postun): hicolor-icon-theme
|
||||||
|
Requires(postun): update-desktop-files
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version}
|
|
||||||
BuildRequires: update-desktop-files
|
|
||||||
%endif
|
|
||||||
%if 0%{?suse_version} > 1320
|
%if 0%{?suse_version} > 1320
|
||||||
BuildRequires: libqt5-linguist-devel
|
BuildRequires: libqt5-linguist-devel
|
||||||
BuildRequires: pkgconfig(Qt5Gui)
|
BuildRequires: pkgconfig(Qt5Gui)
|
||||||
@ -47,9 +46,6 @@ BuildRequires: pkgconfig(Qt5Widgets)
|
|||||||
%else
|
%else
|
||||||
BuildRequires: libqt4-devel
|
BuildRequires: libqt4-devel
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version} > 1100
|
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
SQLite Database Browser is a freeware, public domain, open source visual tool
|
SQLite Database Browser is a freeware, public domain, open source visual tool
|
||||||
@ -74,19 +70,18 @@ to:
|
|||||||
%setup -q
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CXXFLAGS="%optflags"
|
%cmake \
|
||||||
cmake \
|
%if 0%{?suse_version} > 1320
|
||||||
%if 0%{?suse_version} > 1320
|
-DUSE_QT5=true \
|
||||||
-DUSE_QT5=true \
|
%endif
|
||||||
%endif
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo
|
||||||
-DCMAKE_INSTALL_PREFIX=%{_prefix} .
|
make %{?_smp_mflags}
|
||||||
make %{?_smp_mflags} VERBOSE=1
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make DESTDIR=%{buildroot} install
|
%cmake_install
|
||||||
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/{applications,pixmaps}
|
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/{applications,pixmaps}
|
||||||
install -Dm644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/%{name}.1
|
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/%{name}.1
|
||||||
install -m644 images/%{name}.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
install -m 0644 images/%{name}.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
|
||||||
cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF
|
cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF
|
||||||
[Desktop Entry]
|
[Desktop Entry]
|
||||||
Categories=Application;Network;GNOME;GTK;System;X-SuSE-ServiceConfiguration;
|
Categories=Application;Network;GNOME;GTK;System;X-SuSE-ServiceConfiguration;
|
||||||
@ -98,23 +93,21 @@ Terminal=false
|
|||||||
Type=Application
|
Type=Application
|
||||||
Icon=%{name}
|
Icon=%{name}
|
||||||
EOF
|
EOF
|
||||||
%if 0%{?suse_version}
|
|
||||||
%suse_update_desktop_file %{name}
|
%suse_update_desktop_file %{name}
|
||||||
%endif
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1130
|
|
||||||
%post
|
%post
|
||||||
%desktop_database_post
|
%desktop_database_post
|
||||||
|
%icon_theme_cache_post
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%desktop_database_postun
|
%desktop_database_postun
|
||||||
%endif
|
%icon_theme_cache_postun
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.md LICENSE currentrelease
|
%doc README.md LICENSE currentrelease
|
||||||
%{_mandir}/man1/%{name}.1*
|
%{_mandir}/man1/%{name}.1%{ext_man}
|
||||||
%{_bindir}/*
|
%{_bindir}/%{name}
|
||||||
%{_datadir}/applications/*
|
%{_datadir}/applications/*
|
||||||
%dir %{_datadir}/appdata
|
%dir %{_datadir}/appdata
|
||||||
%{_datadir}/appdata/%{name}.desktop.appdata.xml
|
%{_datadir}/appdata/%{name}.desktop.appdata.xml
|
||||||
|
Loading…
Reference in New Issue
Block a user