diff --git a/README.md b/README.md index 953e3d3..454f986 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # screengrab +A program for fast creating screenshots, and easily publishing them on internet image hosting services. + diff --git a/screengrab.spec b/screengrab.spec new file mode 100644 index 0000000..61872c5 --- /dev/null +++ b/screengrab.spec @@ -0,0 +1,71 @@ +Name: screengrab +Version: 2.1.0 +Release: 1mamba +Summary: A program for fast creating screenshots, and easily publishing them on internet image hosting services +Group: Graphical Desktop/Applications/Graphics +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/lxqt/screengrab +Source: https://github.com/lxqt/screengrab.git/%{version}/screengrab-%{version}.tar.bz2 +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: ldconfig +BuildRequires: libICE-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libgcc +BuildRequires: libglib-devel +BuildRequires: libkwindowsystem-devel +BuildRequires: libqt5-devel +BuildRequires: libqtxdg-devel +BuildRequires: libstdc++6-devel +BuildRequires: libxcb-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +A program for fast creating screenshots, and easily publishing them on internet image hosting services. + +%debug_package + +%prep +%setup -q + +%build +%cmake -d build +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall -C build + +find %{buildroot}%{_datadir}/*/translations/ -name *.qm | \ +while read line; do + bn=`echo ${line}|cut -d_ -f2-3` + echo "%lang(${bn/.*}) ${line/*-root}" >> %{name}.lang +done + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.lang +%defattr(-,root,root) +%{_bindir}/screengrab +%dir %{_libdir}/screengrab +%{_libdir}/screengrab/libextedit.so +%{_libdir}/screengrab/libextedit.so.* +%{_datadir}/applications/screengrab.desktop +%{_datadir}/icons/hicolor/32x32/apps/screengrab.png +%{_datadir}/screengrab/screengrab.conf +%dir %{_docdir}/screengrab +%dir %{_docdir}/screengrab/html +%{_datadir}/doc/screengrab/html/* +%doc AUTHORS COPYING + +%changelog +* Mon Nov 09 2020 Silvan Calarco 2.1.0-1mamba +- package created using the webbuild interface