diff --git a/sqlitebrowser.spec b/sqlitebrowser.spec new file mode 100644 index 0000000..673583d --- /dev/null +++ b/sqlitebrowser.spec @@ -0,0 +1,66 @@ +Name: sqlitebrowser +Version: 3.10.1 +Release: 1%{?dist} +Summary: Create, design, and edit SQLite database files + +License: GPLv3+ or MPLv2.0 +URL: https://github.com/%{name}/%{name} +Source0: https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: antlr-C++ +BuildRequires: cmake +BuildRequires: desktop-file-utils +BuildRequires: gcc-c++ +BuildRequires: libappstream-glib +BuildRequires: make +BuildRequires: sqlite-devel +BuildRequires: qt-devel +BuildRequires: qt5-qtbase-devel +BuildRequires: qt5-linguist + +Requires: hicolor-icon-theme + + +%description +SQLite Database Browser is a high quality, visual, open source tool to create, +design, and edit database files compatible with SQLite. + + +%prep +%autosetup -p1 + + +%build +# The cmake macro sets BUILD_SHARED_LIBS on; when off, the bundled libs are +# linked statically and our binary doesn't have any external dependencies +# that aren't already packaged for CentOS. +# https://cmake.org/cmake/help/v3.0/variable/BUILD_SHARED_LIBS.html +# To work with the default cmake macro, we'd need to also build packages +# for each of the bundled libraries (qhexedit, qcustomplot, qscintilla). +%cmake -DBUILD_SHARED_LIBS:BOOL=OFF -DENABLE_TESTING=1 . +%make_build + + +%install +%make_install +%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.desktop.appdata.xml +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop + + +%check +%make_build test + + +%files +%license LICENSE +%doc README.md +%{_bindir}/%{name} +%{_datadir}/appdata/%{name}.desktop.appdata.xml +%{_datadir}/applications/%{name}.desktop +%{_datadir}/icons/hicolor/256x256/apps/%{name}.png + + +%changelog +* Wed Aug 22 2018 Evan Linde - 3.10.1-1 +- Copy RPM spec from Fedora and adjust for CentOS 7 +